The official Better Auth adapter for the Lithia.js framework.
npm install @lithia-js/better-authThe high-performance Node.js framework powered by Rust.
Build APIs with magic, speed, and Type Safety by default.
Build your first Lithia app in seconds:
``bash`
npx create-lithia@latest my-app
cd my-app
npm run dev
Lithia uses a clean, file-based routing convention. No boilerplate, just focus on your logic.
`typescript
// routes/hello/route.get.ts
import type { RouteHandler } from "@lithia-js/core";
const Hello: RouteHandler = async (req, res) => {
const name = req.query.name || "World";
return res.json({ message: Hello, ${name}! });
}
export default Hello;
// Available at: GET /hello
`
* Intuitive Routing: Method-based file naming (.get.ts, .post.ts`) for automatic route registration.
* Native Performance: Core engine written in Rust for lightning-fast request handling.
* Full-stack Ready: Native support for WebSockets, Auth, and Drizzle ORM.
* Modern Stack: Ships with Biome and TypeScript pre-configured for the best DX.
Everything you need to know is at lithiajs.com/docs.
---
* Discussions: GitHub Discussions
* Contribution: We love PRs! See CONTRIBUTING.md
* Sponsor: Support the magic on OpenCollective
---
Lithia is MIT licensed. Built with ❤️ by Lucas Arch and the community.
---