@kozojs/core 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,8 +6,8 @@ High-performance backend framework with native Zod validation, type-safe client
6
6
 
7
7
  ## 📊 Performance
8
8
 
9
- - **10,503 req/s** with full Zod validation
10
- - **83%** of Fastify performance on Node.js
9
+ - **17,510 req/s** — faster than Fastify (+33%) and NestJS (+324%)
10
+ - **Native C++ route matching** via uWebSockets.js — zero JS dispatch overhead
11
11
  - **Zero overhead** serialization with fast-json-stringify
12
12
  - **Edge-ready**: Works on Node.js, Bun, Deno, and Cloudflare Workers
13
13
 
@@ -154,16 +154,20 @@ import { createKozo } from 'npm:@kozojs/core';
154
154
 
155
155
  ## 📈 Performance Comparison
156
156
 
157
- | Framework | Req/Sec | Notes |
158
- |-----------|---------|-------|
159
- | **Kozo** | **10,503** | ✅ Universal (Node, Bun, Edge) |
160
- | **Fastify** | 12,754 | Native Node.js, no edge support |
157
+ | Framework | Req/s | Latency (GET) |
158
+ |-----------|-------|---------------|
159
+ | **Kozo** | **17,510** | **317 Ξs** |
160
+ | Fastify | 13,210 | 766 Ξs |
161
+ | NestJS | 4,131 | 648 Ξs |
162
+
163
+ > Benchmarked with `autocannon` — 10 concurrent connections, 10 seconds.
164
+ > Route matching done in C++ by uWS before any JS runs.
161
165
 
162
166
  **Why choose Kozo:**
163
- - If you need **edge deployment** → Kozo is the best choice
164
- - If you need **maximum portability** → Works on all runtimes
165
- - If you want **best DX + type safety** → Kozo is the sweet spot
166
- - Built on Hono (universal runtime adapter) for multi-platform support
167
+ - If you need **maximum throughput** → 33% faster than Fastify
168
+ - If you want **best DX + type safety** → Zod-native, zero boilerplate
169
+ - If you need **type-safe client generation** → built-in SDK codegen
170
+ - If you need **maximum portability** → Works on Node.js, Bun, Deno, Edge
167
171
 
168
172
  ## 🔌 Middleware
169
173
 
@@ -247,3 +251,5 @@ Contributions welcome! See [CONTRIBUTING.md](../../CONTRIBUTING.md)
247
251
  ---
248
252
 
249
253
  **Made with ⚡ by the Kozo team**
254
+
255
+ > Powered by [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js) — native per-route C++ matching
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kozojs/core",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "High-performance TypeScript framework with type-safe client generation",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",