Auth that is just fine by default.
A lightweight, secure, framework and database agnostic authentication library.
Fine Auth is designed to be the "just right" solution for developers who need robust authentication without the complexity of massive frameworks. It provides a simple, secure, and flexible foundation that you can drop into any project.
It's not trying to replace everything. It's just... fine.
- Framework Agnostic: Works with Express, Hono, Fastify, Next.js, or raw Node.js/Bun.
- Database Agnostic: Bring your own database. We support PostgreSQL, and soon MongoDB, Prisma, and more.
- Secure by Default: Argon2id/Scrypt hashing, signed session tokens, and safe defaults.
- TypeScript: Built with TypeScript for excellent type safety and autocomplete.
- Lightweight: Zero large dependencies. Keep your bundle size small.
Modern authentication libraries often force you into a specific way of doing things. Fine Auth takes a different approach:
- Simplicity: The API should be intuitive and minimal.
- Control: You own your database connection and client.
- Transparency: No black magic. Understand exactly what's happening under the hood.
If you like the project, give it a star on GitHub!