Systemix Documentation

Systemix is a modular, high-performance toolkit for building secure and scalable JavaScript and TypeScript systems.

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 globalThis.crypto (Node.js crypto or Web Crypto API) for bias-free randomization.

Quick Start

pnpm add @systemix/env @systemix/password @systemix/passphrase @systemix/token
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