GPTSafe/PromptGuard

Build production ready apps for GPT using Node.js & TypeScript

45
/ 100
Emerging

Provides prompt injection detection, content/language filtering, token limiting, and caching mechanisms to secure GPT applications against attacks and control costs. Validates inputs through configurable deny lists, built-in attack pattern matching, and token thresholds before queries reach the model. Integrates with OpenAI's token encoding system and exposes a simple async validation API for middleware integration into Node.js/TypeScript applications.

No commits in the last 6 months. Available on npm.

Stale 6m No Dependents
Maintenance 0 / 25
Adoption 11 / 25
Maturity 25 / 25
Community 9 / 25

How are scores calculated?

Stars

48

Forks

4

Language

TypeScript

License

Apache-2.0

Last pushed

May 08, 2023

Monthly downloads

32

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/GPTSafe/PromptGuard"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.