Home/Compare/PROMPTPurify vs IB4LLMs

Comparison

PROMPTPurify vs IB4LLMs

Verdict

Pick PROMPTPurify if pROMPTPurify, licensed under MIT, provides an ai-safety solution with a focus on jailbreak-detection and prompt-injection-protection for LLM applications without relying on regex or signatures; pick IB4LLMs if iB4LLMs (IBProtector) is an LLM jailbreak defense method using the Information Bottleneck principle to prevent adversarial prompts while preserving key information.

Markdown twin · PROMPTPurify alternatives · IB4LLMs alternatives

GraphCanon updated 2w

PROMPTPurify logo

PROMPTPurify

securelayer7/PROMPTPurify

75pushed May 31, 2026
vs
IB4LLMs logo

IB4LLMs

zichuan-liu/IB4LLMs

25pushed Nov 7, 2024

Trust & integrity

SignalPROMPTPurifyIB4LLMs
Maintenance
Steady (70d since push)
As of 2w · github_public_v1
Dormant (635d since push)
As of 3w · github_public_v1
Provenance
Not a fork · Organization account
As of 2w · github_public_v1
Not a fork · Personal account
As of 3w · github_public_v1
OSV dependency advisories
Published findings
As of 1mo · osv@v1
Published findings
As of 1mo · osv@v1
deps.dev advisories
Not queried
deps.dev@v1
Not queried
deps.dev@v1
OpenSSF Scorecard
Not queried
openssf-scorecard@v1
Not queried
openssf-scorecard@v1

Tagline

PROMPTPurify
Prompt-injection guardrail for LLM applications
IB4LLMs
Protecting Your LLMs with Information Bottleneck

Stars

PROMPTPurify
75
IB4LLMs
25

Forks

PROMPTPurify
20
IB4LLMs
2

Open issues

PROMPTPurify
0
IB4LLMs
4

Language

PROMPTPurify
TypeScript
IB4LLMs
Python

Adopt for

PROMPTPurify
PROMPTPurify, licensed under MIT, provides an ai-safety solution with a focus on jailbreak-detection and prompt-injection-protection for LLM applications without relying on regex or signatures.
IB4LLMs
IB4LLMs (IBProtector) is an LLM jailbreak defense method using the Information Bottleneck principle to prevent adversarial prompts while preserving key information.

Persona

PROMPTPurify
-
IB4LLMs
-

Runtime

PROMPTPurify
-
IB4LLMs
-

License

PROMPTPurify
MIT
IB4LLMs
-

Last pushed

PROMPTPurify
May 31, 2026
IB4LLMs
Nov 7, 2024

Categories

PROMPTPurify
Evaluation & Observability, LLM Frameworks
IB4LLMs
Evaluation & Observability, LLM Frameworks

Trust and health

Maintenance

PROMPTPurify
Steady (60%)
IB4LLMs
Dormant (18%)

Days since push

PROMPTPurify
70d
IB4LLMs
635d

Open issues (now)

PROMPTPurify
0
IB4LLMs
4

Owner type

PROMPTPurify
Organization
IB4LLMs
User

Full report

PROMPTPurify
Trust report

Choose PROMPTPurify if…

  • PROMPTPurify is primarily TypeScript; IB4LLMs is Python.
  • Pricing: The SDK and model weights of PROMPTPurify come under the MIT license, allowing free usage. However, the full extent of features or services might require a premium setup..
  • Requirements: - This tool is built with TypeScript.; - Ensure familiarity with TypeScript for efficient integration..
  • Tags unique to PROMPTPurify: ai safety, ai-firewall, ai-security, application-security.
  • - When you require compact model solutions that outperform larger open-source guards.

When NOT to use PROMPTPurify

  • - Avoid using PROMPTPurify if your project requires regex or signature-based methods for security purposes, as this tool does not support them.
  • - Do not use it if you are looking for comprehensive AI-security solutions that extend beyond prompt injection and jailbreak detection.

Choose IB4LLMs if…

  • IB4LLMs is primarily Python; PROMPTPurify is TypeScript.
  • Pricing: License information unavailable; specific model pricing not provided..
  • Requirements: Dependencies include datasets==2.14.5, torch==2.1.1, transformers==4.40.1 among others..
  • Tags unique to IB4LLMs: evaluation scripts, finetuning, inference, information bottleneck.
  • When you need a specialized tool for guarding against jailbreaks in your language models without losing important data.

When NOT to use IB4LLMs

  • If you require a more generalized model protection approach that does not rely strictly on the Information Bottleneck principle.
  • When your environment lacks support for specific packages like `fschat==0.2.20` which is crucial and cannot be updated due to potential conflicts.

Explore

Sources

Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.

GitHub stars on cards: PROMPTPurify 75 · IB4LLMs 25 (synced Aug 9, 2026).

Common questions

What is the difference between PROMPTPurify and IB4LLMs?
PROMPTPurify: Prompt-injection guardrail for LLM applications. IB4LLMs: Protecting Your LLMs with Information Bottleneck. See the comparison table for live GitHub stats and shared categories.
When should I choose PROMPTPurify over IB4LLMs?
Choose PROMPTPurify over IB4LLMs when PROMPTPurify is primarily TypeScript; IB4LLMs is Python; Pricing: The SDK and model weights of PROMPTPurify come under the MIT license, allowing free usage. However, the full extent of features or services might require a premium setup.; Requirements: - This tool is built with TypeScript.; - Ensure familiarity with TypeScript for efficient integration.; Tags unique to PROMPTPurify: ai safety, ai-firewall, ai-security, application-security; - When you require compact model solutions that outperform larger open-source guards.
When should I choose IB4LLMs over PROMPTPurify?
Choose IB4LLMs over PROMPTPurify when IB4LLMs is primarily Python; PROMPTPurify is TypeScript; Pricing: License information unavailable; specific model pricing not provided.; Requirements: Dependencies include datasets==2.14.5, torch==2.1.1, transformers==4.40.1 among others.; Tags unique to IB4LLMs: evaluation scripts, finetuning, inference, information bottleneck; When you need a specialized tool for guarding against jailbreaks in your language models without losing important data.
When should I avoid PROMPTPurify?
- Avoid using PROMPTPurify if your project requires regex or signature-based methods for security purposes, as this tool does not support them. - Do not use it if you are looking for comprehensive AI-security solutions that extend beyond prompt injection and jailbreak detection.
When should I avoid IB4LLMs?
If you require a more generalized model protection approach that does not rely strictly on the Information Bottleneck principle. When your environment lacks support for specific packages like fschat==0.2.20 which is crucial and cannot be updated due to potential conflicts.
Is PROMPTPurify or IB4LLMs more popular on GitHub?
PROMPTPurify has more GitHub stars (75 vs 25). Stars measure visibility, not whether either tool fits your constraints.
Are PROMPTPurify and IB4LLMs open source?
Yes - both are open-source projects on GitHub.
Where can I find alternatives to PROMPTPurify or IB4LLMs?
GraphCanon lists graph-backed alternatives at PROMPTPurify alternatives and IB4LLMs alternatives (PROMPTPurify markdown twin, IB4LLMs markdown twin), ranked by typed relationship edges rather than popularity votes.
Is there a machine-readable version of this comparison?
Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
Which is better maintained, PROMPTPurify or IB4LLMs?
PROMPTPurify: Steady. IB4LLMs: Dormant. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
Where are the full trust reports for PROMPTPurify and IB4LLMs?
GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: PROMPTPurify trust report; IB4LLMs trust report.

Was this helpful?

Anonymous feedback helps us improve pages and translations.