Foldkit: an Effect-based TypeScript framework architected for AI agents to write and test frontends
samgoodwin89 · x · 2026-10-09
samgoodwin89 highlights Foldkit, a TypeScript frontend framework built on Effect, arguing the key to AI-written code is a decoupled architecture rather than smarter models.
Key points:
- Forced decoupling: agents must design around Commands and Events; one immutable Model holds all state and every change flows through a single update function, with side effects returned as values instead of imperative calls buried in handlers.
- Testing becomes trivial: tests are just "Given, When, Then" sequences — exactly what AI is good at.
- Shared structure: a 50-file app uses the same Model/Message/update/Command shape as a 5-file app, giving new work a known place and reviews shared conventions.
- Try it via npx create-foldkit-app@latest; the site includes a live demo highlighting message flow through update into the model.
More from coding & agent
- autoicd-mcp ships automated ICD-10 medical coding MCP server with 74,000+ code search — modelcontextprotocol · 2026-10-09
- pohjola-api: agent-native Finnish company data API priced at $0.01 per call via x402 — modelcontextprotocol · 2026-10-09
- Every model looked bad in my eval — the bug was my answer key, not the models — jgarg27 · 2026-10-09
- Pi has no official Subagents, but 4 community extensions emerged; author shares extension stack order — solyarisoftware · 2026-10-09
- Machine Desktop launches: every agent gets its own cloud computer and routines that run while you're away — tsi_org · 2026-10-09
- badclaude, the viral parody AI project, is now open source via npm — dotey · 2026-10-09