Overview of Kita Html
nextKita Html is a high-performance server-side JSX runtime designed to compile JSX directly into plain strings rather than a virtual DOM. This approach eliminates the overhead of diffing and serialization, making it significantly faster and more memory-efficient than React, Preact, or HonoJsx for HTML generation.
Key capabilities include:
- Zero Virtual DOM: Renders directly to strings, reducing memory allocation and CPU usage.
- Compile-Time XSS Protection: Uses a TypeScript plugin and the
xss-scanCLI to detect unsafe string interpolations. - Async Components & Streaming: Supports async children and
Suspensefor streaming HTML via chunked transfer encoding. - Full HTML Type Coverage: Provides complete JSX type definitions for HTML5 elements, including opt-in support for HTMX, Alpine.js, and Hotwire Turbo via triple-slash directives.
- Universal Integration: Since the output is a plain string, it can be used with any server environment that returns strings (e.g., Fastify, Express, Hono, Bun).