@mmailaender/convex-better-auth-svelte
v0.4.1
Published
A lightweight **Svelte/SvelteKit** adapter for [`get-convex/better-auth`](https://github.com/get-convex/better-auth). It makes authentication **idiomatic**, **type-safe**, and **SSR-ready** in your Convex app.
Downloads
1,121
Readme
Convex Better Auth – Svelte Adapter
A lightweight Svelte/SvelteKit adapter for get-convex/better-auth.
It makes authentication idiomatic, type-safe, and SSR-ready in your Convex app.
Getting started
Option 1 — Ready-to-ship components (recommended)
Start with production-ready Auth and Organization components built on top of Convex Better Auth.
All source code is copied into your project (shadcn-style) — you own and control every line.
- Includes full sign-in, sign-up, profile, and organization flows
- Choose what you need: user management only, user + organization, or both
- Enable or disable features through simple toggles or by editing the code
- Fully editable and themeable through your design system
- Saves weeks of setup time while keeping complete flexibility
Docs: Getting started →
Source: github.com/mmailaender/Convex-Better-Auth-UI →
Option 2 — Build from scratch
Use the convex-better-auth-svelte adapter to design every flow and UI element yourself.
We recommend choosing this path only if you have highly specific requirements where even the modular components aren’t a good starting point —
for example, experimental onboarding flows or a custom multi-tenant model.
- Start from the raw hooks and helpers of
convex-better-auth-svelte - Wire up sign-in, sign-up, orgs, and sessions manually
- Best for projects with unique data models or unconventional UX
Docs: SvelteKit integration →
Why this adapter
- Svelte-friendly API for Convex Better Auth
- Zero lock-in — your Convex, your data, your UI
- Works standalone or with ready-to-ship components
- Type-safe end-to-end integration via Convex
License
MIT
