Systemix Documentation
Systemix is a set of security packages for Node.js: password hashing, encryption, signed tokens, IDs, env loading and rate limiting. The eight libraries have no dependencies.
Overview
The toolkit provides cryptographically secure utilities with zero external production dependencies:
- @systemix/env — Typed environment variable loading and validation with .env file support
- @systemix/password — Generate strong, customizable passwords with entropy calculation
- @systemix/passphrase — Create memorable passphrases from high-entropy word lists
- @systemix/token — Secure token generator with hex, base64, base64url, alphanumeric charsets
- @systemix/eslint — Shareable ESLint v10 flat configs for JS/TS, React, Express, Next.js
- @systemix/typescript — Shareable TypeScript configs for base, Express, and Next.js
- @systemix/runner — Minimal test runner with assert, assertThrows, createRunner, runSuites
All utilities use Node's built-in crypto for bias-free randomization and require Node.js 24.7+.
Quick Start
ts
pnpm add @systemix/env @systemix/password @systemix/passphrase @systemix/token
ts
import { load } from '@systemix/env'; import { generatePassword } from '@systemix/password'; import { generatePassphrase } from '@systemix/passphrase'; import { generateToken } from '@systemix/token'; const env = load({ PORT: { type: 'number', default: 3000 } }); const password = generatePassword({ length: 16, useSymbols: true }); const passphrase = generatePassphrase({ wordCount: 4, useTitleCase: true }); const token = generateToken({ byteLength: 32, charset: 'hex' });
Explore
- Env Loader — Typed env vars, validation, .env files
- Password Generator — API reference and usage
- Passphrase Generator — API reference and usage
- Token Generator — API reference and usage
- ESLint — Lint configs
- TypeScript — TSConfig presets
- Runner — Test runner
- Live Demos — Interactive playgrounds