llmshieldr: Safety Guardrails for Large Language Model Workflows

A model-agnostic safety layer for developers building with large language model (LLM) applications. Maps starter controls to the Open Worldwide Application Security Project Top 10 for Large Language Model Applications 2025 risk categories <https://genai.owasp.org/llm-top-10/> via a modular rule engine. Supports regular-expression rules, lightweight natural language processing (NLP) intent checks, optional scanners, and semantic large language model reviewer checks on prompts, conversations, retrieved context, tool inputs and outputs, streaming chunks, and model outputs. Supports workflows with the 'Ollama' local web service <https://ollama.com/> via 'ellmer', remote reviewer endpoints, and other chat interfaces callable from 'R'. Intended as an experimental guardrail layer that teams should evaluate against their own workflows before relying on it in production.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: jsonlite, cli, rlang, digest, stringi
Suggests: ellmer, httr2, processx, filelock, htmltools, covr, lintr, plumber, shiny, testthat (≥ 3.0.0), knitr, rmarkdown, withr, dplyr, tokenizers, SnowballC
Published: 2026-05-28
DOI: 10.32614/CRAN.package.llmshieldr (may not be active yet)
Author: Indraneel Chakraborty ORCID iD [aut, cre, cph]
Maintainer: Indraneel Chakraborty <hello.indraneel at gmail.com>
BugReports: https://github.com/ineelhere/llmshieldr/issues
License: Apache License (≥ 2)
URL: https://www.indraneelchakraborty.com/llmshieldr/, https://github.com/ineelhere/llmshieldr, https://genai.owasp.org/llm-top-10/
NeedsCompilation: no
Citation: llmshieldr citation info
Materials: README
CRAN checks: llmshieldr results

Documentation:

Reference manual: llmshieldr.html , llmshieldr.pdf
Vignettes: Architecture (source, R code)
Custom Rules (source, R code)
Ecosystem Context (source, R code)
Evaluation and Evidence (source, R code)
Getting Started (source, R code)
Ollama and Local Strategies (source, R code)
Operations and Audit Logs (source, R code)
OWASP Coverage (source, R code)
Policy Design (source, R code)
RAG Pipeline (source, R code)
Threat Model (source, R code)

Downloads:

Package source: llmshieldr_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): llmshieldr_0.1.0.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=llmshieldr to link to this page.