A tour of the features that ship with Krate beyond the core compiler.
#Features
A tour of the features that ship with Krate beyond the core compiler.
| Feature | Description |
|---|---|
| Built-in Components | <Head>, <Script>, <Style>, <Link>, <Icon>, <Image> |
| Image Optimization | Compile-time WebP-first <picture> pipeline |
| Data Fetching | Component tiers, ISR/SSR page data, generateStaticParams, createResource, API routes |
| API Routes | TypeScript and Go endpoints in one namespace |
| Go Components | Server and runtime components written in Go, importing any Go package |
| Plugin System | Go plugin hooks + JS/TS community plugins via QuickJS, typed with @krate/plugin |
| Search | Docs search bar: Pagefind (default, recommended), docfind WASM, or JSON |
| Redirects & Rewrites | URL manipulation from config |
| Middleware | Request interception before page rendering |
| Environment Variables | .env files, precedence, process.env in server contexts |
| Analytics | Snippets via <Head>/<Script> + the SPA route-change hook |
| HTTP Headers | Middleware headers, automatic cache/security headers, ISR Cache-Control |
| Typed Routes & Content | Generated .d.ts for routes, params, and content collections |
| Quality Checks | Compiler-enforced a11y, SEO, and performance gates (krate check) |
| MCP Server | Agent-native compiler surface over the Model Context Protocol (krate mcp) |
Also see the component library, a shadcn/ui-style set of components built on the runtime.
Last updated: 2026-10-16
Contributors: Noinkin