Packages

Input Sanitization & Security Packages

Input sanitization, XSS prevention, and application-security utilities that clean untrusted input before it reaches your rendering or storage layer (DOMPurify).

123 packages

Packages in Input Sanitization & Security

42Health
Library npm

common-tags

A well-tested library of tagged template literal functions for cleaning up multiline strings, HTML, and lists in ES2015+ JavaScript.

2,024
MIT
Used by 3
48Health
Library PyPI

Flask-Limiter

Rate limiting for Flask applications with pluggable storage backends and per-route limits

1,207
MIT
Used by 3
74Health
SDK npm

react-hcaptcha

Drop-in React and Preact components for adding hCaptcha bot-protection challenges to any form.

649
MIT
Used by 3
45Health
Library PyPI

django-csp

Content-Security-Policy header management for Django, with per-view overrides and nonce support.

623
BSD 3
Used by 3
69Health
Library npm

fastify-helmet

Adds essential security HTTP headers to Fastify apps via a thin, Fastify-native wrapper around the helmet middleware.

464
MIT
Used by 3
62Health
Library PyPI

nh3

Rust-powered HTML sanitizer for Python that strips XSS while preserving safe markup, roughly 20x faster than bleach.

402
MIT
Used by 3
65Health
Library npm

string-strip-html

Strip HTML tags from strings without a full parser, safely handling mixed and templated markup.

214
MIT
Used by 3
38Health
SDK npm

react-turnstile

A minimal React component and hook for rendering Cloudflare Turnstile CAPTCHA challenges.

158
MIT
Used by 3
53Health
Library npm

safe-regex2

Detects catastrophic, exponential-time regular expressions before they can freeze your app.

56
MIT
Used by 3
71Health
Tool PyPI

Bandit

A static analysis tool that scans Python code for common security issues.

8,339
Apache 2.0
Used by 2
49Health
Library Go

base64Captcha

A flexible Go library for generating digit, string, math, Chinese-character, and audio CAPTCHAs encoded as base64 strings.

2,367
Apache 2.0
Used by 2
43Health
Library npm

csurf

CSRF token middleware for Express — archived by the Express team in 2025 and no longer maintained.

2,305
MIT
Used by 2
44Health
Library Composer

NelmioCorsBundle

Add configurable CORS headers to your Symfony application with per-URL rules.

1,926
MIT
Used by 2
56Health
Library Composer

Symfony Security CSRF

Generate and validate CSRF tokens to protect PHP applications against cross-site request forgery.

1,762
MIT
Used by 2
74Health
Library PyPI

django-axes

Track failed login attempts and lock out brute-force attackers on Django-powered sites.

1,700
MIT
Used by 2
39Health
Library PyPI

zxcvbn-python

A Python port of Dropbox's zxcvbn - realistic password strength estimation with crack-time estimates and specific improvement feedback.

718
MIT
Used by 2
73Health
Library Composer

Livewire Rate Limiting

Apply rate limiters to Laravel Livewire component actions with a single trait

407
MIT
Used by 2
39Health
Library npm

fast-redact

Very fast object redaction that censors sensitive keys before they reach your logs.

339
MIT
Used by 2
79Health
Library npm

vue-dompurify-html

A DOMPurify-backed replacement for Vue's v-html directive that sanitizes bound HTML to prevent XSS.

334
MIT
Used by 2
84Health
Library npm

free-email-domains

A continuously updated JSON list of free and disposable email domains for filtering signups and scoring leads.

289
MIT
Used by 2
36Health
Library npm

valid-url

Lightweight RFC 3986 URI and URL validation for Node.js, ported line-by-line from a battle-tested Perl module.

212
MIT
Used by 2
36Health
Library npm

nocache

Tiny Express/Connect middleware that sets HTTP headers to disable client-side response caching.

140
MIT
Used by 2
72Health
Library npm

near-membrane

A DOM membrane library for creating fast, secure sandboxed JavaScript environments in the browser.

133
MIT
Used by 2
30Health
Library npm

html-escaper

A tiny, zero-dependency utility that safely escapes and unescapes HTML entities in JavaScript strings.

112
MIT
Used by 2

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers