Examples
To help you get started, we’ve provided examples of using Kilpi in your application. They can all be found in the /examples
folder on Github. Find your example below.
-
Next.js App Router — News Demo
This project uses Next.js App Router & React Server Components for a simple news application to demonstrate implementing basic authorization concepts.
Includes protected queries, protected actions, roles, server actions with
next-safe-action
and middleware, and more.Stack: Better Auth, Kilpi, Bun SQLite, next-safe-action, Shadcn/UI, Tailwind CSS, React Hook Form, Zod.