@project-karin/platform-h3
v0.5.16
Published
H3 HTTP adapter for Karin, optimized for maximum performance on Bun.
Readme
@project-karin/platform-h3
H3 HTTP adapter for Karin, optimized for maximum performance on Bun.
Installation
bun add @project-karin/core @project-karin/platform-h3Overview
The H3 adapter provides:
- ✅ Maximum performance
- ✅ Optimized for Bun
- ✅ Minimal overhead
- ✅ Production-ready
Usage
import { KarinFactory } from "@project-karin/core";
import { H3Adapter } from "@project-karin/platform-h3";
const app = await KarinFactory.create(new H3Adapter(), {
scan: "./src/**/*.ts",
});
app.listen(3000);Features
- High Performance: Optimized for speed
- Low Overhead: Minimal abstraction layer
- Production Ready: Battle-tested H3 foundation
- Modern: Built for modern runtimes
Performance
H3 adapter provides the best performance among Karin adapters:
- Fastest request handling
- Lowest latency
- Optimized for high-throughput scenarios
When to Use
Choose H3 adapter when:
- Maximum performance is the priority
- Running on Bun (not Edge)
- Building high-traffic APIs
- You need the fastest possible framework overhead
Choose Hono adapter when:
- Deploying to Edge runtimes
- Portability across runtimes is important
- Building serverless functions
License
MIT
