Skip to content

Introduction

Kuratchi SDK provides end-to-end authentication and multi-tenant organization databases for SvelteKit applications running on Cloudflare Workers.

Terminal window
npm install kuratchi-sdk

Add these to your .env file:

Terminal window
# Auth
KURATCHI_AUTH_SECRET=your-long-random-secret
# Cloudflare
CLOUDFLARE_ACCOUNT_ID=your-account-id
CLOUDFLARE_API_TOKEN=your-api-token
KURATCHI_GATEWAY_KEY=your-gateway-key
# Optional: OAuth providers
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...

Once installed, head to Hooks Setup to configure the SDK in your SvelteKit app.