hadars 0.1.40-rc.4 → 0.2.0

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.
package/README.md CHANGED
@@ -18,7 +18,29 @@ Bring your own router (or none), keep your components as plain React, and get SS
18
18
 
19
19
  ## Benchmarks
20
20
 
21
- Benchmarks against an equivalent Next.js app show significantly faster server throughput (requests/second) and meaningfully better page load metrics (TTFB, FCP, DOMContentLoaded). Build times are also much lower due to rspack.
21
+ <!-- BENCHMARK_START -->
22
+ > Last run: 2026-03-18 · 60s · 200 connections · Bun runtime
23
+ > hadars is **7.8x faster** in requests/sec
24
+
25
+ **Throughput** (autocannon, 60s)
26
+
27
+ | Metric | hadars | Next.js |
28
+ |---|---:|---:|
29
+ | Requests/sec | **132** | 17 |
30
+ | Latency median | **1490 ms** | 2757 ms |
31
+ | Latency p99 | **2289 ms** | 6742 ms |
32
+ | Throughput | **37.38** MB/s | 9.37 MB/s |
33
+ | Build time | 0.7 s | 6.3 s |
34
+
35
+ **Page load** (Playwright · Chromium headless · median)
36
+
37
+ | Metric | hadars | Next.js |
38
+ |---|---:|---:|
39
+ | TTFB | **22 ms** | 42 ms |
40
+ | FCP | **124 ms** | 136 ms |
41
+ | DOMContentLoaded | **88 ms** | 126 ms |
42
+ | Load | **155 ms** | 173 ms |
43
+ <!-- BENCHMARK_END -->
22
44
 
23
45
  ## Quick start
24
46
 
@@ -128,7 +150,6 @@ const UserCard = ({ userId }: { userId: string }) => {
128
150
  | Hook | Runs on | Purpose |
129
151
  |---|---|---|
130
152
  | `getInitProps` | server | Fetch server-side data from the `HadarsRequest` |
131
- | `getAfterRenderProps` | server | Inspect the rendered HTML (e.g. extract critical CSS) |
132
153
  | `getFinalProps` | server | Strip server-only fields before props are serialised to the client |
133
154
  | `getClientProps` | client | Enrich props with browser-only data (localStorage, device APIs) |
134
155