Kavach Documentation

Kavach is a drop-in authentication framework for SvelteKit with unified API across multiple platforms, declarative route protection, and pre-built UI components.

Quick Links

Features

  • Platform Agnostic

    Switch between Supabase, Firebase, Auth0, Amplify, or Convex by swapping one adapter

  • Declarative Protection

    Define route rules once; no scattered authentication checks

  • Type Safe

    Full TypeScript support with centralized types and unified session management

  • Pre-built Components

    Ready-to-use UI components for login, registration, and auth flows

Installation

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