git clone https://github.com/forkzero/fz-auth.git
cd fz-auth
pnpm install
pnpm build
pnpm testpackages/core— Framework-agnostic BFF logic (no Hono/Express dependency)packages/hono— Hono adapter (the mainfz-authpackage)packages/react— React AuthProvider + useAuthpackages/aws— AWS KMS envelope encryptionory/— Self-hosted Ory Kratos + Hydra starter kitprompts/— AI-native setup guidesexamples/— Runnable example apps
- Keep the core framework-agnostic — no Hono imports in
packages/core - Keep the Hono adapter thin — delegate all logic to core
- Tests must pass:
pnpm test - Format with Prettier:
pnpm format - One feature = one PR
- Create
packages/{framework}/ - Import
createBffCorefromfz-auth-core - Write ~160 lines of cookie/redirect/response glue
- Add tests that mirror
packages/hono/src/routes.test.ts
Prompts are executable instructions, not documentation. Each prompt should:
- List prerequisites
- Provide exact code blocks (copy-pasteable)
- Include verification steps
- Work with Claude Code or any LLM assistant