The Hypermedia App
The server-rendered application framework for Bun. Write .htx templates, query SQLite, return HTML. No build step. No client-side framework.
Open source · MIT License · Runs on a Raspberry Pi
bun create hypermedia-app my-app
cd my-app
bun run dev
Bun + SQLite Native
Bun's native SQLite driver with zero FFI overhead. WAL mode for concurrent reads. No external database server — your data lives in a single file.
HTX Template Engine
Server-side .htx templates with declarative data queries, computed properties, component composition, layout inheritance, and expression evaluation.
htmx Integration
Server returns HTML fragments, htmx swaps them in. No JSON serialization, no client-side rendering, no SPA complexity. Progressive enhancement built in.
Action Tokens
JWT-based prepare/execute CSRF protection. One-time tokens, replay guard, record scoping, expiration. Security without sessions.
Markdown Adapter
Serve documentation from flat .md files with YAML frontmatter. Zero-config content authoring — write markdown, see it rendered.
CLI + Scaffolding
bun create hypermedia-app scaffolds a full project. Dev server with diagnostics. Showcase and minimal variants.
How It Works
No compilation. No virtual DOM. No hydration. Templates go in, HTML comes out.
From the Blog
Engineering notes, benchmarks, and build logs.