The Security Library forModern Architectures

Kroxt is a premium, stack-aware authentication engine. Zero-config bootstrapping with npx kroxt init.

lib/auth.ts
npx kroxt init

? Choose your database adapter: mongoose

? Enable rate limiting defensive layer? Yes

? Create a boilerplate User model? Yes

✔ Created: src/lib/kroxt/auth.ts

✔ Created: src/lib/kroxt/user.model.ts

✔ Installed: kroxt, mongoose, dotenv

Core Ecosystem

Built for Scale.

01

Stack Agnostic

First-class support for Next.js, Nuxt, SvelteKit, Astro, Hono, Express, Koa, and Fastify—built organically from standard TypeScript.

02

Universal Adapters

Bring your own schema. Optimized out-of-the-box adapters for Prisma, Drizzle, Mongoose, and in-memory mock endpoints.

03

Global Revocation

Password-Linked Tokens natively embed hash fragments. Change a password to instantly invalidate all hijacked sessions.

04

IP Defense

Native Strike architecture throttles sequential brute-force stuffing without adding external Redis dependencies.

05

Policy Engine

Dynamic Dictionary and Regex guards automatically block weak payloads natively before hashing routines fire.

06

Argon2 Native

Integrated Argon2 Hashing with server-side peppering and salt-rotation natively handled before data persistence.