Kavach Documentation

Drop-in authentication for SvelteKit — one unified API across all platforms, declarative route protection, and pre-built UI components.

Get started

Choose an adapter

What Kavach provides

Role-based route protection

Declare rules once in config — no scattered auth checks

Server-side session cookies

Secure httpOnly cookies, no client-side token exposure

Platform agnostic API

Swap adapters without touching your app code

Pre-built UI components

AuthPage, AuthProvider, login flows ready to use

Installation

npm install kavach @kavach/sentry @kavach/ui
Kavach — Authentication made simple llms.txt