New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started
s

sana.afshani

npm

406

total weekly downloads

Packages

Current Co-maintainers

Former Co-maintainers

34 packages

@sanaafshani/warden-csr

Browser-side security as composable decorators: decorate() plus the KeyValueStore and Fetcher contracts. Zero dependencies.

@sanaafshani/warden-csr-access

Permission-gated UI for the browser, with React <Can> and useCan. Display only: the server enforces.

@sanaafshani/warden-csr-eslint-plugin

ESLint rules for browser security: no innerHTML or dangerouslySetInnerHTML, no unencrypted web storage, no unchecked URLs or unsafe target=_blank.

@sanaafshani/warden-csr-sanitize

XSS defence for the browser: DOMPurify HTML sanitising, Trusted Types, context-specific escaping and safe URLs, plus React <SafeHtml>.

@sanaafshani/warden-csr-sso

Browser client for backend-for-frontend (BFF) sessions: CSRF and token-refresh fetch decorators, safe returnTo, idle timeout, cross-tab logout.

@sanaafshani/warden-csr-storage

Encrypted browser storage from decorators: namespaced, expiring, AES-GCM encrypted localStorage and sessionStorage with non-extractable keys.

@sanaafshani/warden-ssr

Server-side security for Fetch-API handlers as composable decorators: chain(), defineDecorator, HttpError. Zero dependencies.

@sanaafshani/warden-ssr-access

Authorization for Fetch-API servers: role-based access control, ownership (IDOR) checks and a permission decorator.

@sanaafshani/warden-ssr-authn

Authentication for Fetch-API servers: signed JWT session cookies, a provider-agnostic auth decorator, password policy, lockout and scrypt hashing.

@sanaafshani/warden-ssr-crypto

Server-side crypto on Web Crypto: AES-256-GCM field encryption, HMAC signing, signed URLs and webhook signature verification.

@sanaafshani/warden-ssr-csrf

CSRF protection for Fetch-API servers: exact Origin checks plus signed double-submit tokens, as a decorator.

@sanaafshani/warden-ssr-headers

Security headers, nonce-based CSP and exact-origin CORS as a decorator for Fetch-API servers.

@sanaafshani/warden-ssr-logging

Security logging for Fetch-API servers: a redacting JSON logger, a security-event sink and an error boundary that hides internals.

@sanaafshani/warden-ssr-ratelimit

Sliding-window rate limiting as a decorator for Fetch-API servers, with in-memory and Upstash Redis stores.

@sanaafshani/warden-ssr-ssrf

SSRF-safe outbound fetch for Node.js: host allowlist, private-address blocking and DNS pinning against rebinding.

@sanaafshani/warden-ssr-upload

File upload validation for Fetch-API servers: type detection by magic bytes, safe file names and a multipart decorator.

@sanaafshani/warden-ssr-validate

Request validation for Fetch-API servers: byte-capped body reading and Standard Schema (zod, valibot, arktype) decorators.

@wardenjs/csr

Browser-side security as composable decorators: decorate() plus the KeyValueStore and Fetcher contracts. Zero dependencies.

@wardenjs/csr-access

Permission-gated UI for the browser, with React <Can> and useCan. Display only: the server enforces.

@wardenjs/csr-eslint-plugin

ESLint rules for browser security: no innerHTML or dangerouslySetInnerHTML, no unencrypted web storage, no unchecked URLs or unsafe target=_blank.

@wardenjs/csr-sanitize

XSS defence for the browser: DOMPurify HTML sanitising, Trusted Types, context-specific escaping and safe URLs, plus React <SafeHtml>.

@wardenjs/csr-sso

Browser client for backend-for-frontend (BFF) sessions: CSRF and token-refresh fetch decorators, safe returnTo, idle timeout, cross-tab logout.

@wardenjs/csr-storage

Encrypted browser storage from decorators: namespaced, expiring, AES-GCM encrypted localStorage and sessionStorage with non-extractable keys.

@wardenjs/ssr

Server-side security for Fetch-API handlers as composable decorators: chain(), defineDecorator, HttpError. Zero dependencies.

@wardenjs/ssr-access

Authorization for Fetch-API servers: role-based access control, ownership (IDOR) checks and a permission decorator.