Stack · Kemal · Crystal

Keller Kemal

Crystal Kemal API with PostgreSQL, OAuth, Stripe, OpenAI chat/embeddings, and a React SPA shell. The complete S+S contract ships with email/password, AI chat (SSE), pgvector search, Resend, contact, admin, and S3 uploads — plus an OTP-inspired supervisor + DataActor (let it crash, auto-restart).

OTP supervisor Buyer download + contracts verified Oct 13, 2026

What the buyer verification exercised

19 checks passed

Generated through the buyer path, built and started with Docker, then exercised through HTTP.

Buyer ZIP + Docker boot AI chat + embeddings Security headers + cookies Access control + tenant isolation Signed-in features Password reset, rate limits, sessions Upload validation + RustFS/S3 Signed Stripe webhook Account export + deletion No stack-trace leaks Crash recovery, no restarts
crystal kemal spa ai supervisor

Tech stack

Language

Stack

Framework

Kemal

Database

PostgreSQL

Best for

Crystal teams who want Kemal with the full Keller SaaS contract.

B2B Auth Kit — included

  • Company OIDC SSO — Auth0 · Okta · Microsoft Entra
  • Microsoft & Apple OAuth (in addition to Google + GitHub)
  • Team workspaces — invites, chat groups, and board
01 / Architecture

Not a CRUD app. A fault-tolerant system.

Designed to handle crashes where we ship supervisors and give you visibility from day one.

B2B auth kit

01
  • Google, GitHub, Microsoft & Apple OAuth
  • Company OIDC SSO (Auth0 / Okta / Entra)
  • Team workspaces — invites + board
  • Email/password + Resend

Actor supervisor

02
  • OTP-inspired one-for-one restart
  • Exponential backoff
  • DataActor for supervised writes
  • Bounded mailboxes

Crash demo

03
  • POST /api/debug/crash
  • GET /api/debug/stats
  • HTTP keeps serving during restart
  • Documented in AGENTS.md

Observable

04
  • Admin stats API
  • Restart counters
  • Request-scoped logging
  • Docker healthchecks

AI-ready

05
  • Streaming SSE chat
  • pgvector embeddings
  • Semantic search page
  • RAG-ready document table
Supervised write pattern go
// HTTP never touches the DB for supervised writes
err = supervision.Send(actor.TypeStoreDocument, actor.StoreDocumentPayload{
	ID: id, UserID: userID, Content: content,
	VectorLiteral: core.ToVectorLiteral(vec), CreatedAt: now,
})
Generated repository preview

Wiring you can see.

Read from this stack's real template files. The frontend branch updates with your selection; your_app is replaced with the application name in the generated download.

current selection · repository tree
.
├── .env.example
├── .gitignore
├── .keller
├── AGENTS.md
├── CONTRIBUTING.md
├── db/
│   ├── init.sql
├── docker-compose.yml
├── Dockerfile
├── docs/
│   ├── index.html
├── frontend/
│   ├── react/
│   │   ├── AGENTS-FRONTEND.md
│   │   ├── index.html
│   │   ├── package.json
│   │   ├── public/
│   │   │   ├── favicon.svg
│   │   ├── README.md
│   │   ├── src/
│   │   │   ├── components/
│   │   │   ├── config.ts
│   │   │   ├── index.css
│   │   │   ├── layout/
│   │   │   ├── lib/
│   │   │   ├── main.tsx
│   │   │   ├── pages/
│   │   │   ├── theme/
│   │   │   ├── vite-env.d.ts
│   │   ├── tsconfig.json
│   │   ├── vite.config.ts
├── lib/
│   ├── .shards.info
│   ├── backtracer/
│   ├── bindata/
│   ├── db/
│   ├── exception_page/
│   ├── jwt/
│   ├── kemal/
│   ├── openssl_ext/
│   ├── pg/
│   ├── radix/
├── README.md
├── shard.lock
├── shard.yml
├── src/
│   ├── ai.cr
│   ├── auth_helpers.cr
│   ├── config.cr
│   ├── crypto_utils.cr
│   ├── db.cr
│   ├── handlers.cr
│   ├── mailer.cr
│   ├── main.cr
│   ├── oauth.cr
│   ├── oidc_jwt.cr
│   ├── shell.cr
│   ├── sso_core.cr
│   ├── storage.cr
│   ├── stripe.cr
│   ├── supervisor.cr
02 / Connectors + services

Every boring integration — already wired.

  • OAuth — Google, GitHub, Microsoft & Apple
  • Stripe checkout + webhooks
  • S3-compatible file uploads (RustFS)
  • Encrypted email at rest
  • Account page + GDPR delete
  • Docker Compose + production Dockerfile
  • 6 SPA frontends — React, Vue, SolidJS, Svelte, Next.js, and Angular
  • Same S+S contract on every stack
  • Company OIDC SSO (Auth0 / Okta / Microsoft Entra)
  • Team workspaces — invites, chat groups, and board
  • Email/password auth + forgot/reset (Resend)
  • AI chat — streaming SSE (Groq or OpenAI)
  • Semantic search — pgvector embeddings + /search page
  • Contact form + admin stats dashboard
  • OTP-inspired supervisor + DataActor — let it crash, auto-restart
  • /api/debug/crash + supervision stats — crash demo survives traffic
03 / Frontend

Bring your framework.

  • React
  • Vue
  • SolidJS
  • Svelte
  • Next.js
  • Angular
04 / Design

Pick a skin.

  • Plain
  • Ocean
  • Startup
  • Stellar
  • Glass

Scaffold-time skins — not a runtime theme switcher. Default: Ocean.

05 / What you get

Everything, in one zip.

  • AI chat SSE + pgvector semantic search
  • OTP-inspired supervisor + DataActor — let it crash
  • Email/password + OAuth + S3 (RustFS) avatar uploads
06 / Pages included

15 pages, all wired.

The SPA ships with every page hooked up to the backend — not empty shells, not TODOs.

Landing Pricing Login Account Getting Started Admin Contact AI Chat Semantic Search Password Reset Team Board SSO Invite Accept Not Found

Across all 6 frameworks: React · Vue · SolidJS · Svelte · Next.js · Angular