@kueztech/sqlshield
v1.0.0
Published
Lightweight SQL sanitizer and query protection for Node.js and PostgreSQL. Block injections, enforce input validation, and rate-limit queries like a pro.
Maintainers
Readme
@kueztech/sqlshield
Lightweight SQL sanitizer and query shield for Node.js.
Protect your PostgreSQL queries with injection detection, input validation, and rate limiting — all in one minimal, zero-dependency package.
Features
- Scan SQL queries for unsafe keywords
- Block common injection patterns (e.g., DROP, --, OR 1=1)
- Validate input types, lengths, and regex patterns
- Rate-limit queries by table/IP
- Log blocked attempts with metadata
- Lightweight and fast — no dependencies
Installation
npm install @kueztech/sqlshield