Modern, secure authentication SPA and API for your apps. Built with React, Express, Drizzle ORM, shadcn/ui, and Vite.
- Username/password authentication with JWT (RS256, public/private key)
- Professional, responsive UI (shadcn/ui, React, Vite)
- Secure config, validation, and error handling
- Auto-migrating SQLite DB (Drizzle ORM)
- Programmatic migrations (no CLI needed)
- Install:
npx @microh-labs/auth # or clone and run: pnpm install && pnpm build && node . - First Run:
- Visit the setup page (
/setup) to configure branding and upload/generate your JWT keypair.
- Visit the setup page (
- Sign Up/Login:
- Use the web UI to create your first user and log in.
pnpm install
pnpm dev
# Open http://localhost:5173src/— Frontend (React, shadcn/ui, assets, components)src/db/— Drizzle ORM schema and DB logicapp.ts— Express backend (API, config, JWT, etc.)public/— Static assets
- Uses SQLite (
drizzle.db) - Migrations are run programmatically on server start (no CLI needed)
pnpm lint
pnpm build-
Publishing:
- Update version in
package.json - Build and publish to npm
- Update version in
-
Screenshots:
- See
/screenshots/for UI previews
- See
-
Entrypoint:
index.js(CLI) andapp.ts(server)
MIT — Chien Tran, microh-labs
