Adapters are the bridge between the compiler's IR and your backend's template language. The compiler produces a backend-agnostic Intermediate Representation (IR); an adapter converts it into a template your server can render.

JSX Source

[Phase 1] → IR (backend-agnostic)

[Phase 2a] IR → Adapter → Marked Template  (server)
[Phase 2b] IR → Client JS                  (browser)

The same JSX source produces correct output for any adapter. Your component library works across stacks.

#Available Adapters

Adapter Output Backend Package
HonoAdapter .hono.tsx Hono / JSX-based servers @barefootjs/hono
GoTemplateAdapter .tmpl + _types.go Go html/template @barefootjs/go-template

#Pages

Topic Description
Adapter Architecture How adapters work, the TemplateAdapter interface, and the IR contract
Hono Adapter Configuration and output format for Hono / JSX-based servers
Go Template Adapter Configuration and output format for Go html/template
Writing a Custom Adapter Step-by-step guide to implementing your own adapter