Elestia Open Source Ratings

Web security libraries

Set safe headers, limit request rates and clean the HTML that users send. We rate 10; DOMPurify leads with 8.7 out of 10.

8.7DOMPurifyAny app that has to render HTML from users, markdown or third parties without opening an XSS hole, especially in the browser.4.99.08.37.18.68.1
8.2HelmetExpress, NestJS or Fastify (via @fastify/helmet) apps that want safe default security headers and a configurable CSP from one line of code.5.98.37.37.37.88.5
7.9express-rate-limitExpress (or Connect-style) apps that want per-client request limits with a few lines of config and an optional Redis store.4.97.78.16.76.68.0
7.6corsExpress or Connect APIs that a browser front end on another origin must call.5.37.56.98.97.68.3
7.4rate-limiter-flexibleBackend teams that need atomic rate limits shared across servers, a database store other than Redis, or limits outside Express.5.48.27.24.46.16.9
7.0Upstash RatelimitTeams on Vercel, Cloudflare Workers or other serverless platforms who need shared rate limits without managing a Redis connection.4.27.57.15.26.27.5
6.8sanitize-htmlNode back ends that must clean user HTML on the server without jsdom, and that need fine control over the tags and attributes they allow and how they are rewritten.4.46.97.16.76.25.6
6.1csrf-csrfExpress apps without server sessions, such as SPA backends, that need a maintained replacement for csurf.3.46.64.73.94.57.2
5.7ArcjetTeams on Next.js, Vercel or Fly.io that want managed bot protection and rate limiting from one SDK, and are willing to pay for a hosted service.4.76.66.72.94.56.8
5.0js-xssProjects that already use it, or that need a tiny HTML filter with a strict whitelist and no DOM, for low-risk content.4.35.54.76.04.76.0

The numbers

Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.

ProjectDownloads, 4 weeksIn a yearGitHub starsCommits, 12 monthsLast npm releaseAdvisories, 24 months
DOMPurify402M×6.918k353Nov 202626
Helmet92M×4.211k72Jul 20260
express-rate-limit388M×103.3k136Nov 20261
cors499M×5.16.2k10Jan 20260
rate-limiter-flexible19M×3.43.6k123Nov 20260
Upstash Ratelimit14M×122.1k24Nov 20260
sanitize-html73M×4.74.7k377Nov 202610
csrf-csrf1.1M×4.21973Nov 20260
Arcjet40k×2.5700648Nov 20260
js-xss31M×2.35.3k11Oct 20260