Haskell · Yesod + SPA

Keller Yesod + SPA

Haskell Yesod with PostgreSQL, OAuth, Stripe, S3-compatible uploads, and a swappable Keller SPA. The complete Keller contract includes email/password, AI chat (SSE), pgvector search, Resend, contact, admin, and S3 uploads — plus an inline OTP-style 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
haskell yesod spa

Tech stack

Language

Haskell

Framework

Yesod + SPA

Database

PostgreSQL

Best for

Haskell teams who want Yesod's full web framework behind a familiar, swappable SPA.

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.

Actor supervisor

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

Crash demo

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

Observable

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

AI-ready

04
  • Streaming SSE chat
  • pgvector embeddings
  • Semantic search page
  • RAG-ready document table
Supervised write pattern haskell
-- HTTP never touches the DB for supervised writes
_ <- dbSend (InsertDocumentCmd did uid content lit 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
├── AGENTS.md
├── app/
│   ├── Main.hs
├── cabal.project
├── cabal.project.freeze
├── data/
│   ├── .gitkeep
├── db/
│   ├── init.sql
├── docker-compose.yml
├── Dockerfile
├── 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
├── keller-yesod.cabal
├── README.md
├── src/
│   ├── Actor/
│   ├── Application.hs
│   ├── Core/
│   ├── DB/
│   ├── Foundation.hs
│   ├── Handler/
│   ├── Settings.hs
│   ├── Shell.hs
│   ├── Supervisor/
│   ├── Utils/
├── test/
│   ├── Spec.hs
02 / Connectors + services

Every boring integration — already wired.

  • OAuth (Google + GitHub sign-in)
  • 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
  • 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
  • Email/password + Resend + OAuth
  • OTP-style supervisor + DataActor — let it crash
  • Type-safe Yesod routes
  • Supervised STM DataActor
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