Features - Krate Docs
You're viewing an older version ().
Krate Docs

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.

FeatureDescription
Built-in Components<Head>, <Script>, <Style>, <Link>, <Icon>, <Image>
Image OptimizationCompile-time WebP-first <picture> pipeline
Data FetchingComponent tiers, ISR/SSR page data, generateStaticParams, createResource, API routes
API RoutesTypeScript and Go endpoints in one namespace
Go ComponentsServer and runtime components written in Go, importing any Go package
Plugin SystemGo plugin hooks + JS/TS community plugins via QuickJS, typed with @krate/plugin
SearchDocs search bar: Pagefind (default, recommended), docfind WASM, or JSON
Redirects & RewritesURL manipulation from config
MiddlewareRequest interception before page rendering
Environment Variables.env files, precedence, process.env in server contexts
AnalyticsSnippets via <Head>/<Script> + the SPA route-change hook
HTTP HeadersMiddleware headers, automatic cache/security headers, ISR Cache-Control
Typed Routes & ContentGenerated .d.ts for routes, params, and content collections
Quality ChecksCompiler-enforced a11y, SEO, and performance gates (krate check)
MCP ServerAgent-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