# krakenjs/lusca

Application security for express apps.

Repository: https://github.com/krakenjs/lusca
Canonical: https://ross.abutalabs.com/products/lusca
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2025-01-31T15:54:18+00:00

## Health v2 (maintenance only)
Score: 25/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 4, release rhythm 8, longevity 100
- inputs: {"age_days": 4720, "days_push": 579, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1775, forks 119 (observed 2026-08-28T04:05:34.500559+00:00)

## What it is
Lusca is web application security middleware for Express/Node.js apps. It provides configurable protections including CSRF tokens, Content Security Policy, HSTS, X-Frame-Options, XSS protection, and referrer policy headers.

## Use cases
- add csrf protection to express app
- set content security policy headers in nodejs
- prevent clickjacking with x-frame-options
- enable hsts for express server
- harden express app security headers

## When to choose
- you use Express and want drop-in security middleware
- you need per-route CSRF allowlists/blocklists
- you want to configure individual security headers independently

## When to avoid
- you use a framework other than Express/Koa-style middleware
- you need a full security audit or vulnerability scanning tool
- your app already uses Helmet and its configuration suffices

## Facets
- artifact type: library
- maturity: maintenance
- function: security, middleware, web-framework
- domain: web-development, security, backend
- platform: -
- tags: express, csrf, csp, hsts, http-headers, xss-protection, nodejs, web-server

## Member repositories
- krakenjs/lusca (main) score 25

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:34.500559+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:25:21.000915+00:00, confidence not recorded.
  - readme: https://github.com/krakenjs/lusca (fetched 2026-08-28T04:05:34.500559+00:00, sha d5e9fb8edc2c)
  - registry_npm: https://registry.npmjs.org/lusca (fetched 2026-08-29T11:04:03.028710+00:00, sha bb4cefbf346e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
