Haskell · Yesod + Hamlet

Keller Yesod + Hamlet

Native server-rendered Yesod and Hamlet with PostgreSQL, OAuth, Stripe, uploads, AI chat, and semantic search. 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

20 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 CSRF protection Upload validation + RustFS/S3 Signed Stripe webhook Account export + deletion No stack-trace leaks Crash recovery, no restarts
haskell yesod hamlet server-rendered full-stack

Tech stack

Language

Haskell

Framework

Yesod + Hamlet

Database

PostgreSQL

Best for

Haskell teams who want one type-safe server-rendered application without a separate frontend build.

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
├── db/
│   ├── init.sql
├── design-src/
│   ├── ocean/
├── designs/
│   ├── ocean/
├── docker-compose.yml
├── Dockerfile
├── keller-yesod.cabal
├── priv/
│   ├── www/
├── README.md
├── src/
│   ├── Actor/
│   ├── Application.hs
│   ├── Core/
│   ├── DB/
│   ├── Foundation.hs
│   ├── Handler/
│   ├── Settings.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.

04 / Design

Pick a skin.

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
  • Compile-time Hamlet templates
  • Supervised STM DataActor