Skip to content
aicoolies logo
Lucia logo

Lucia

Lightweight session management for TypeScript

Lucia is a lightweight open-source auth library for TypeScript providing session management primitives without abstracting the database layer. Gives developers core building blocks — session creation, validation, invalidation — while they own the schema and auth logic. Supports any database through a simple adapter. Works with Next.js, SvelteKit, Astro, Express, and Hono. For developers wanting full control over auth implementation with minimal overhead and zero vendor lock-in.

About Lucia

Minimalist auth providing session primitives. Full control over database schema and auth flows.

Session creation, validation, invalidation, cookie management. Build custom login flows on top.

Database-agnostic through simple adapters. Works with any TS/JS framework.

Focused purely on sessions — for developers who want to understand every part of their auth.

Pricing & Platform Specs

Pricing Summary

100% free and open-source TypeScript authentication library and educational resource under the MIT/0BSD license ($0/mo). Provides lightweight session management patterns, zero-dependency cryptographic utilities (Oslo), database session storage recipes, and OAuth 2.0/OIDC guides without subscription fees, usage caps, or proprietary cloud lock-in.

full pricing breakdown →

Supported Platforms

TypeScript, Node.js, any framework

Explore categories, tags & use cases

Open-source browser infrastructure for AI agents at scale

Steel is an open-source browser API purpose-built for AI agents, providing managed headless browser sessions with anti-bot bypass, proxy rotation, CAPTCHA solving, and session persistence. It handles the infrastructure layer that browser automation agents like Browser Use and Stagehand run on top of. Self-hostable or available as a cloud service. Over 6,000 GitHub stars.

freemiumOpen Source

Open-source background jobs and AI workflows for TypeScript

Trigger.dev is an open-source platform for building and deploying background jobs, AI agents, and long-running workflows in TypeScript. It eliminates serverless timeouts with durable task execution, automatic retries, queue-based concurrency control, and elastic scaling. Used by 30,000+ developers at companies like MagicSchool and Icon.com, it processes hundreds of millions of agent runs monthly. Backed by a $16M Series A led by Dalton Caldwell's Standard Capital fund.

freemiumOpen Source

Open-source PaaS alternative to Vercel, Heroku, and Netlify

Dokploy is a free open-source platform-as-a-service for self-hosting applications without cloud vendor lock-in. It provides automated deployments from Git repositories, built-in SSL certificates, database provisioning, Docker and Docker Compose support, and a clean web dashboard for managing multiple applications on your own servers. With 18,000+ GitHub stars, it fills the gap for teams wanting Vercel-like deployment simplicity on their own infrastructure.

freemiumOpen Source

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Lucia?

Lucia is a lightweight open-source auth library for TypeScript providing session management primitives without abstracting the database layer. Gives developers core building blocks — session creation, validation, invalidation — while they own the schema and auth logic. Supports any database through a simple adapter. Works with Next.js, SvelteKit, Astro, Express, and Hono. For developers wanting full control over auth implementation with minimal overhead and zero vendor lock-in.

Is Lucia free?

Yes — Lucia is free to use. 100% free and open-source TypeScript authentication library and educational resource under the MIT/0BSD license ($0/mo). Provides lightweight session management patterns, zero-dependency cryptographic utilities (Oslo), database session storage recipes, and OAuth 2.0/OIDC guides without subscription fees, usage caps, or proprietary cloud lock-in.

Is Lucia open source?

Yes — Lucia is open source.

Is Lucia still maintained?

Yes — Lucia is active. Its listing was last verified on September 6, 2026.

What are the best Lucia alternatives?

The first editor-selected Lucia alternatives are Steel, Trigger.dev, Dokploy.