Haskell · IHP

Keller IHP

Native HSX live pages on IHP 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 ihp hsx server-rendered full-stack

Tech stack

Language

Haskell

Framework

IHP

Database

PostgreSQL

Best for

Haskell teams who want IHP’s batteries-included web framework with server-rendered HSX — not an SPA kit.

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 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
.
├── .claude/
│   ├── launch.json
├── .dockerignore
├── .env.example
├── .envrc
├── .ghci
├── .gitattributes
├── .github/
│   ├── workflows/
├── .gitignore
├── .stylish-haskell.yaml
├── AGENTS.md
├── App.cabal
├── Application/
│   ├── Actor.hs
│   ├── Ai.hs
│   ├── Crypto.hs
│   ├── Env.hs
│   ├── Fixtures.sql
│   ├── Helper/
│   ├── Mailer.hs
│   ├── Migration/
│   ├── OAuth.hs
│   ├── Repo.hs
│   ├── Schema.sql
│   ├── Script/
│   ├── Storage.hs
│   ├── Stripe.hs
│   ├── Supervisor.hs
├── CLAUDE.md
├── Config/
│   ├── Config.hs
│   ├── nix/
├── db/
│   ├── init.sql
├── default.nix
├── docker-compose.yml
├── Dockerfile
├── flake.lock
├── flake.nix
├── hie.yaml
├── lib/
│   ├── README.md
├── Main.hs
├── Makefile
├── README.md
├── Setup.hs
├── start
├── static/
│   ├── 404.html
│   ├── app.css
│   ├── app.js
│   ├── favicon.ico
│   ├── hamlet-compat.css
│   ├── ihp-welcome-icon.svg
│   ├── shell.css
│   ├── theme.js
├── Test/
│   ├── Integration.hs
│   ├── Main.hs
├── Web/
│   ├── Controller/
│   ├── FrontController.hs
│   ├── Routes.hs
│   ├── Types.hs
│   ├── View/
├── WorkerMain.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
  • Typed SQL + compile-checked HSX
  • Supervised DataActor