#Features
A tour of the features that ship with Krate beyond the core compiler.
A tour of the features that ship with Krate beyond the core compiler.
| Feature | Description |
|---|---|
| Built-in Components | <Head>, <Script>, <Style>, <Link>, <Icon>, <Image> |
| Metadata | metadata and generateMetadata in pages and layouts, merged in Next.js order, real tags in the initial head |
| Image Optimization | Compile-time WebP-first <picture> pipeline |
| Data Fetching | Component tiers, ISR/SSR page data, generateStaticParams, createResource, API routes |
| Async Server Components | async components that fetch per request, request APIs, "use client" boundaries |
| 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 |
| Authentication | OAuth, credentials, magic links, Drizzle adapters, two-factor authentication and passkeys (@krate/auth) |
| 3D with three.js | three.js scenes in JSX with Krate signals (createFrame, createThree, createLoader) or the react-three-fiber API (useFrame, useThree, useLoader): <Canvas>, pointer events, portals (@krate/three) |
| 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) |
| LLMs.txt | Generate llms.txt and llms-full.txt for LLM crawlers |
Also see the component library, a shadcn/ui-style set of components built on the runtime.
Last updated: 2026-11-17
Contributors: Noinkin