Introduction
Kuratchi SDK provides end-to-end authentication and multi-tenant organization databases for SvelteKit applications running on Cloudflare Workers.
Installation
Section titled “Installation”npm install kuratchi-sdkEnvironment Variables
Section titled “Environment Variables”Add these to your .env file:
# AuthKURATCHI_AUTH_SECRET=your-long-random-secret
# CloudflareCLOUDFLARE_ACCOUNT_ID=your-account-idCLOUDFLARE_API_TOKEN=your-api-tokenKURATCHI_GATEWAY_KEY=your-gateway-key
# Optional: OAuth providersGOOGLE_CLIENT_ID=...GOOGLE_CLIENT_SECRET=...GITHUB_CLIENT_ID=...GITHUB_CLIENT_SECRET=...Next Steps
Section titled “Next Steps”Once installed, head to Hooks Setup to configure the SDK in your SvelteKit app.