@lithia-js/better-auth
v1.0.0-canary.18
Published
The official Better Auth adapter for the Lithia.js framework.
Maintainers
Readme
🚀 Quick Start
Build your first Lithia app in seconds:
npx create-lithia@latest my-app
cd my-app
npm run dev🪄 Magic in Action
Lithia uses a clean, file-based routing convention. No boilerplate, just focus on your logic.
// 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✨ Features
- 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.
📖 Documentation
Everything you need to know is at lithiajs.com/docs.
🤝 Community & Support
- Discussions: GitHub Discussions
- Contribution: We love PRs! See CONTRIBUTING.md
- Sponsor: Support the magic on OpenCollective
License
Lithia is MIT licensed. Built with ❤️ by Lucas Arch and the community.
