barejs 0.2.3 → 0.2.5

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
@@ -1,18 +1,20 @@
1
1
  <div align="center">
2
2
  <br />
3
3
  <h1>Bare<span style="color: #F7DF1E;">JS</span></h1>
4
- <p><strong>The batteries-included web framework for Bun, Node.js, and Deno, engineered for minimal overhead.</strong></p>
5
- <p><i>Built-in TypeBox, Zod &amp; JSON Schema validation, end-to-end RPC client inference, OpenAPI 3.1, WebSockets, SSE, Streaming Uploads, JSON-RPC 2.0, Cron, Resilience, and Zero-Trust Security — powered by a JIT-compiled O(1) radix router and LIFO context pooling.</i></p>
4
+ <p><strong>The batteries-included web framework for Bun, Node.js, Deno, and Edge, engineered for minimal overhead.</strong></p>
5
+ <p><i>Built-in Standard Schema v1 (Valibot, ArkType, Zod 4), TypeBox, Zod &amp; JSON Schema validation, end-to-end <code>bareTreaty</code> RPC &amp; typed WebSocket client, OpenAPI 3.1, WebSockets, SSE, Streaming Uploads, JSON-RPC 2.0, Native TLS, Cron, Resilience, and Zero-Trust Security — powered by a JIT-compiled O(1) radix router and LIFO context pooling.</i></p>
6
6
 
7
7
  <p>
8
8
  <a href="https://www.npmjs.com/package/barejs"><img src="https://img.shields.io/npm/v/barejs?style=for-the-badge&logo=npm&color=CB3837" alt="NPM Version"></a>
9
9
  <a href="https://github.com/xarhang/bareJS/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/xarhang/bareJS/ci.yml?branch=main&label=CI&style=for-the-badge&logo=github" alt="CI"></a>
10
- <a href="https://github.com/xarhang/bareJS/actions/workflows/bench.yml"><img src="https://img.shields.io/github/actions/workflow/status/xarhang/bareJS/bench.yml?branch=main&label=Benchmarks&style=for-the-badge&logo=github" alt="Benchmarks"></a>
11
- <a href="https://bun.sh"><img src="https://img.shields.io/badge/Bun-%3E%3D1.1.0-black?style=for-the-badge&logo=bun" alt="Bun"></a>
12
- <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-%3E%3D20.0.0-339933?style=for-the-badge&logo=nodedotjs" alt="Node.js"></a>
13
- <a href="https://deno.com"><img src="https://img.shields.io/badge/Deno-%3E%3D2.0-000000?style=for-the-badge&logo=deno" alt="Deno"></a>
10
+ <a href="https://xarhang.github.io/bareJS/"><img src="https://img.shields.io/badge/Docs-GitHub_Pages-f5b942?style=for-the-badge&logo=readthedocs&logoColor=black" alt="Docs"></a>
14
11
  <a href="https://github.com/xarhang/bareJS/blob/main/LICENSE"><img src="https://img.shields.io/github/license/xarhang/bareJS?style=for-the-badge&color=blue" alt="License"></a>
15
12
  </p>
13
+ <p>
14
+ <a href="https://http-arena.com/frameworks/barejs/"><img src="https://img.shields.io/endpoint?url=https://http-arena.com/badge/barejs/h1.json&style=for-the-badge" alt="HTTP Arena H/1.1"></a>
15
+ <a href="https://http-arena.com/#type=emerging,flagship&tuned=0&lang=TS"><img src="https://img.shields.io/endpoint?url=https://http-arena.com/badge/barejs/h1-ts.json&style=for-the-badge" alt="HTTP Arena H/1.1 (TS)"></a>
16
+ <a href="https://http-arena.com/frameworks/barejs/"><img src="https://img.shields.io/endpoint?url=https://http-arena.com/badge/barejs/h3.json&style=for-the-badge" alt="HTTP Arena H/3"></a>
17
+ </p>
16
18
  </div>
17
19
 
18
20
  ---
@@ -38,11 +40,11 @@ app.listen(3000);
38
40
  ## Why BareJS?
39
41
 
40
42
  - **O(1) JIT Router, Bun Native Routes & Pooling:** Compiles static routes into an inline `switch` fast-path and dynamic routes into a radix jump-table (`:params`, `*` wildcards, `BareRouter` sub-app mounting) with a lazy LIFO `Context` pool (`0..65536`) and dev-mode Use-After-Free Proxy guard. On Bun, `app.listen()` also offloads eligible middleware-free routes to `Bun.serve({ routes })` (with pure-static `Response` and `isTrulyZeroArg` fast-paths in `NODE_ENV=production`) while keeping full `fetch()` fallback parity.
41
- - **Unified Schema Validation:** Declarative `body`, `query`, `params`, `headers`, and `response` schemas with **TypeBox**, **Zod**, or **Native JSON Schema** — including auto-coercion, `stripUnknown` Mass-Assignment protection, `413` `maxBodySize` guards, and automatic secret-field stripping.
42
- - **End-to-End Type Safety:** `bareClient(app)` provides compile-time route, param, query, body, and response inference over HTTP or zero-network in-memory calls.
43
- - **Batteries Included:** Auto-generated **OpenAPI 3.1** (with automatic `bearerAuth`/`basicAuth` security schemes) + Scalar UI (`app.docs`), **JSON-RPC 2.0** (`app.rpc`), **WebSockets** (`app.ws`), **SSE** (`ctx.sse`), **Streaming Uploads** (`ctx.upload` / `ctx.uploadStream`), **Compression** (`compress` — `zstd`/`br`/`gzip`), **Static Files** (`staticFile` with ETag/`304`/Range `206`/`spa: true`), `app.derive`, `app.cron`, `app.useLog({ format: 'json' })`, `onRequest`/`onResponse` hooks, `app.listenCluster()`, and `healthcheck`.
44
- - **Zero-Trust Security & Resilience:** Built-in `bareAuth` (HS256/RS256/ES256/JWKS + `revokeToken`), `basicAuth`, `hasRole`, `Hash` (Argon2id/bcrypt/scrypt), HMAC-signed cookies, `trustProxy` CIDR/IP allowlist, `cors`, `csrf`, `rateLimit`, `idempotency`, `circuitBreaker`, `createSingleflight`, `timeout`, `redisStore`, and `app.onDrain`.
45
- - **Multi-Runtime & Web Standard Interop:** Zero-dep native drivers for **Bun** (`Bun.serve({ routes })`), **Node.js >= 20** (`barejs/node` with built-in RFC 6455 WebSockets & `scrypt`, plus optional `uWebSockets.js` auto-detection with streaming backpressure & WS pub/sub), and **Deno >= 2.0** (`Deno.upgradeWebSocket`). Standard `Request`/`Response` (`ctx.req`) works directly with **Better-Auth**, **Auth0**, **Clerk**, **GraphQL Yoga**, **Sentry**, and **OpenTelemetry**.
43
+ - **Unified Schema Validation:** Declarative `body`, `query`, `params`, `headers`, and `response` schemas with **Standard Schema v1** (Valibot, ArkType, Zod 4, Effect — sync & async fail-closed), **TypeBox**, **Zod**, or **Native JSON Schema** — including auto-coercion, `stripUnknown` Mass-Assignment protection, `413` `maxBodySize` guards, and automatic secret-field stripping.
44
+ - **End-to-End Type Safety:** `bareClient(app)` (with non-throwing `client.safe.*` and typed `client.ws()`) and chained Proxy **`bareTreaty(app | url)`** (`api.users({ id: 42 }).get()` & `.subscribe()`) provide compile-time route, param, query, body, and response inference over HTTP/WS or zero-network in-memory calls.
45
+ - **Batteries Included:** Auto-generated **OpenAPI 3.1** (with automatic `bearerAuth`/`basicAuth` security schemes) + Scalar UI (`app.docs`), **JSON-RPC 2.0** (`app.rpc`), **WebSockets** (`app.ws`), **SSE** (`ctx.sse`), **Streaming Uploads** (`ctx.upload` / `ctx.uploadStream`), **Compression** (`compress` — `zstd`/`br`/`gzip`), **Static Files** (`staticFile` with ETag/`304`/Range `206`/`spa: true`), `app.derive`, `app.cron`, `app.useLog({ format: 'json' })`, `onRequest`/`onResponse` hooks, native `tls`, `app.listenCluster()`, and `healthcheck`.
46
+ - **Zero-Trust Security & Resilience:** Built-in `bareAuth` (HS256/RS256/ES256/JWKS + `revokeToken`), `basicAuth`, `hasRole`, `Hash` (Argon2id/bcrypt/scrypt), HMAC-signed cookies, CRLF header/cookie/redirect injection protection, `trustProxy` CIDR/IP allowlist, `cors`, `csrf`, `rateLimit`, `idempotency`, `circuitBreaker`, `createSingleflight`, `timeout`, `redisStore`, and `app.onDrain`.
47
+ - **Multi-Runtime & Edge Interop:** Zero-dep native drivers for **Bun** (`Bun.serve({ routes })`), **Node.js >= 20** (`barejs/node` with built-in RFC 6455 WebSockets & `scrypt`, plus optional `uWebSockets.js` auto-detection with streaming backpressure, `uWS.SSLApp` TLS & WS pub/sub), **Deno >= 2.0** (`Deno.upgradeWebSocket`), and **Edge Workers** (`barejs/edge` — zero `node:*` imports for Cloudflare Workers, Vercel Edge & Deno Deploy). Standard `Request`/`Response` (`ctx.req`) works directly with **Better-Auth**, **Auth0**, **Clerk**, **GraphQL Yoga**, **Sentry**, and **OpenTelemetry**.
46
48
 
47
49
  ---
48
50
 
@@ -102,36 +104,62 @@ Deno.serve({ port: 3000 }, (req, info) => app.fetch(req, info.remoteAddr.hostnam
102
104
 
103
105
  </details>
104
106
 
107
+ <details>
108
+ <summary><strong>Edge Workers (Cloudflare Workers / Vercel Edge / Deno Deploy)</strong></summary>
109
+
110
+ ```typescript
111
+ import { BareJS, cors, securityHeaders } from 'barejs/edge';
112
+
113
+ // Zero node:* imports (~195 KB bundle)
114
+ const app = new BareJS<{ API_KEY: string }>()
115
+ .use(securityHeaders())
116
+ .use(cors({ origin: '*' }))
117
+ .get('/ping', () => 'pong')
118
+ .get('/users/:id', (ctx) => ({ id: ctx.params.id, hasKey: Boolean(ctx.env.API_KEY) }));
119
+
120
+ export default app;
121
+ ```
122
+
123
+ </details>
124
+
105
125
  ---
106
126
 
107
127
  ## Runtime Support
108
128
 
109
- | Feature | Bun (`barejs`) | Node.js >= 20 (`barejs/node`) | Deno (`app.fetch`) |
110
- | :--- | :---: | :---: | :---: |
111
- | **Router, Validation, OpenAPI, JSON-RPC, `bareClient`** | ✅ | ✅ | ✅ |
112
- | **Security Middlewares (`cors`, `csrf`, `rateLimit`, `bareAuth`, `idempotency`)** | ✅ | ✅ | ✅ |
113
- | **Streaming (`ctx.sse`, `ctx.upload`, `ctx.uploadStream`)** | ✅ | ✅ | ✅ |
114
- | **Static Files (`staticFile`)** | ✅ | ✅ | ✅ |
115
- | **Compression (`compress` — `gzip` / `br` / `zstd`)** | ✅ | ✅ (`gzip` / `br`, + `zstd` on Node >= 22.15) | ✅ (`gzip` / `br`) |
116
- | **WebSockets (`app.ws`)** | ✅ Native | ✅ Native (RFC 6455) · Optional `ws` | ✅ Native (`Deno.upgradeWebSocket`) |
117
- | **Password Hashing (`Hash`)** | ✅ Native (`Argon2id` / `bcrypt`) | ✅ Native (`scrypt`) · Optional `Argon2id` | ✅ Native (`scrypt`) · Optional `Argon2id` |
129
+ | Feature | Bun (`barejs`) | Node.js >= 20 (`barejs/node`) | Deno (`app.fetch`) | Edge (`barejs/edge`) |
130
+ | :--- | :---: | :---: | :---: | :---: |
131
+ | **Router, Validation (Standard Schema / TypeBox / Zod), `bareClient`/`bareTreaty`** | ✅ | ✅ | ✅ | ✅ |
132
+ | **Security Middlewares (`cors`, `csrf`, `rateLimit`, `bareAuth`, `idempotency`)** | ✅ | ✅ | ✅ | ✅ (Web Crypto) |
133
+ | **Streaming (`ctx.sse`, `ctx.upload`, `ctx.uploadStream`)** | ✅ | ✅ | ✅ | ✅ (`ctx.sse`) |
134
+ | **Static Files (`staticFile`) & Native `tls`** | ✅ | ✅ (`uWS.SSLApp` / `https`) | ✅ | — (Edge CDN) |
135
+ | **Compression (`compress` — `gzip` / `br` / `zstd`)** | ✅ | ✅ (`gzip` / `br`, + `zstd` on Node >= 22.15) | ✅ (`gzip` / `br`) | — (Edge CDN) |
136
+ | **WebSockets (`app.ws`)** | ✅ Native | ✅ Native (RFC 6455) · `uWS` · Optional `ws` | ✅ Native (`Deno.upgradeWebSocket`) | — |
137
+ | **Password Hashing (`Hash`)** | ✅ Native (`Argon2id` / `bcrypt`) | ✅ Native (`scrypt`) · Optional `Argon2id` | ✅ Native (`scrypt`) · Optional `Argon2id` | — |
118
138
 
119
139
  ---
120
140
 
121
141
  ## Benchmarks (Bun)
122
142
 
143
+ <p>
144
+ <a href="https://http-arena.com/frameworks/barejs/"><img src="https://img.shields.io/endpoint?url=https://http-arena.com/badge/barejs/h2.json&style=flat-square" alt="HTTP Arena H/2"></a>
145
+ <a href="https://http-arena.com/frameworks/barejs/"><img src="https://img.shields.io/endpoint?url=https://http-arena.com/badge/barejs/ws.json&style=flat-square" alt="HTTP Arena WebSocket"></a>
146
+ <a href="https://http-arena.com/frameworks/barejs/"><img src="https://img.shields.io/endpoint?url=https://http-arena.com/badge/barejs/db.json&style=flat-square" alt="HTTP Arena Database"></a>
147
+ <a href="https://web-frameworks-benchmark.vercel.app/result?l=javascript"><img src="https://img.shields.io/badge/Web_Frameworks-Benchmarked-10b981?style=flat-square&logo=vercel&logoColor=white" alt="Web Frameworks Benchmark"></a>
148
+ <a href="https://github.com/xarhang/bareJS/actions/workflows/bench.yml"><img src="https://img.shields.io/github/actions/workflow/status/xarhang/bareJS/bench.yml?branch=main&label=CI_Benchmarks&style=flat-square&logo=github" alt="CI Benchmarks"></a>
149
+ </p>
150
+
123
151
  Measured in-process on **Bun** with [`mitata`](https://github.com/evanwash/mitata) (`benchmarks/fair-suite.ts`). Bold values indicate a **mean** latency more than 10% faster than the runner-up; differences under ~10% vary between GitHub Actions runs and are left unbolded (treated as ties). These micro-benchmarks measure framework overhead rather than end-to-end network HTTP throughput, and do not represent Node.js or Deno latency.
124
152
 
125
153
  <!-- MARKER: MULTI_BENCH_SUMMARY_START -->
126
154
 
127
155
  | Scenario | **BareJS** | **ElysiaJS** | **Hono** |
128
156
  | :--- | :---: | :---: | :---: |
129
- | **1. 100 Routes + Dynamic Params** | **`1.44 µs`**<br><sub>`p99: 8.15 µs`</sub> | `1.77 µs`<br><sub>`p99: 8.26 µs`</sub> | `4.04 µs`<br><sub>`p99: 15.97 µs`</sub> |
130
- | **2. 10 Middlewares + Deep Path** | **`1.39 µs`**<br><sub>`p99: 7.73 µs`</sub> | `1.79 µs`<br><sub>`p99: 7.99 µs`</sub> | `4.02 µs`<br><sub>`p99: 14.25 µs`</sub> |
131
- | **3. POST JSON + Schema Validation** | **`4.10 µs`**<br><sub>`p99: 13.93 µs`</sub> | `4.74 µs`<br><sub>`p99: 15.54 µs`</sub> | `4.75 µs`<br><sub>`p99: 15.70 µs`</sub> |
132
- | **4. Async Handler + Query Parsing** | `2.16 µs`<br><sub>`p99: 9.14 µs`</sub> | `2.33 µs`<br><sub>`p99: 10.31 µs`</sub> | `3.05 µs`<br><sub>`p99: 11.71 µs`</sub> |
157
+ | **1. 100 Routes + Dynamic Params** | **`1.41 µs`**<br><sub>`p99: 7.67 µs`</sub> | `1.94 µs`<br><sub>`p99: 9.19 µs`</sub> | `3.76 µs`<br><sub>`p99: 14.06 µs`</sub> |
158
+ | **2. 10 Middlewares + Deep Path** | **`1.54 µs`**<br><sub>`p99: 8.16 µs`</sub> | `2.03 µs`<br><sub>`p99: 9.06 µs`</sub> | `4.17 µs`<br><sub>`p99: 15.06 µs`</sub> |
159
+ | **3. POST JSON + Schema Validation** | **`4.23 µs`**<br><sub>`p99: 14.34 µs`</sub> | `4.74 µs`<br><sub>`p99: 15.49 µs`</sub> | `4.68 µs`<br><sub>`p99: 16.31 µs`</sub> |
160
+ | **4. Async Handler + Query Parsing** | `2.25 µs`<br><sub>`p99: 9.48 µs`</sub> | `2.46 µs`<br><sub>`p99: 10.30 µs`</sub> | `3.27 µs`<br><sub>`p99: 13.20 µs`</sub> |
133
161
 
134
- > Last Updated: 2026-11-26 (github action — `linux`, AMD EPYC 7763 64-Core Processor, Bun `1.4.5`, Elysia `1.4.21`, Hono `4.11.4`)
162
+ > Last Updated: 2026-11-30 (github action — `linux`, AMD EPYC 7763 64-Core Processor, Bun `1.4.5`, Elysia `1.4.21`, Hono `4.11.4`)
135
163
 
136
164
  <!-- MARKER: MULTI_BENCH_SUMMARY_END -->
137
165
 
@@ -145,21 +173,22 @@ BareJS is a complete, zero-boilerplate backend platform—every module below shi
145
173
 
146
174
  | Category | Built-In Capabilities |
147
175
  | :--- | :--- |
148
- | **Core & Routing** | $O(1)$ static `switch` fast-path + radix jump-table (`:params`, `*` wildcards), `BareRouter` sub-app mounting (`app.route()`, `app.use(prefix, router)`), lazy bounded LIFO `Context` pool (`0..65536`), dev-mode Use-After-Free Proxy guard, `app.request()` in-memory test helper |
149
- | **Validation & Serialization** | Unified `RouteSchemas` (`body`, `query`, `params`, `headers`, `response`, `maxBodySize`) supporting **TypeBox** (`Type`/`t`), **Zod** (`Z`/`z`), and **Native JSON Schema** (`native()`), automatic `number`/`integer`/`boolean`/repeated-array coercion, `413` streaming body limit, `stripUnknown` Mass-Assignment protection, recursive response secret-field stripping |
150
- | **Type-Safe RPC & Docs** | End-to-end compile-time type inference via `bareClient(app \| url)`, automatic **OpenAPI 3.1** spec (`/docs/json`) + Scalar UI (`/docs`) with `securitySchemes` & `tags`, **JSON-RPC 2.0** (`app.rpc()` with single, batch & notifications) |
151
- | **Zero-Trust Security** | `bareAuth()` (constant-time HS256 JWT + asymmetric RS256/ES256/JWKS + `revokeToken()`/`isRevoked`), `basicAuth()`, `hasRole()`, `Hash` (Argon2id/bcrypt on Bun; zero-dep `scrypt` fallback on Node/Deno), HMAC-SHA256 signed `HttpOnly` cookies, `cors()`, `csrf()`, `securityHeaders()`, `rateLimit()` (flood-resistant), `trustProxy(false)` |
176
+ | **Core & Routing** | $O(1)$ static `switch` fast-path + radix jump-table (`:params`, `*` wildcards), Bun native `routes` fast-path, optional Node.js **`uWebSockets.js`** driver (`engine: 'uws'`), native **`tls`** option (Bun, `uWS.SSLApp`, Node `https`), zero-Node **`barejs/edge`** entrypoint (Cloudflare Workers, Vercel Edge, Deno Deploy), `app.listenCluster()` multi-core clustering, `BareRouter` sub-app mounting, lazy bounded LIFO `Context` pool (`0..65536`), `app.onRequest()`/`app.onResponse()` hooks, `app.request()` test helper |
177
+ | **Validation & Serialization** | Unified `RouteSchemas` (`body`, `query`, `params`, `headers`, `response`, `maxBodySize`) supporting **Standard Schema v1** (Valibot, ArkType, Zod 4, Effect — async fail-closed), **TypeBox** (`Type`/`t`), **Zod** (`Z`/`z`), and **Native JSON Schema** (`native()`), automatic coercion, `413` streaming body limit, `stripUnknown` Mass-Assignment protection, recursive response secret-field stripping |
178
+ | **Type-Safe RPC & Docs** | `bareClient(app \| url)` (with non-throwing `client.safe` Result union & typed `client.ws()`), chained proxy **`bareTreaty(app \| url)`** (`api.users({ id: 42 }).get()` & `.subscribe()` WebSocket in-memory or network), automatic **OpenAPI 3.1** spec (`/docs/json`) + Scalar UI (`/docs`), **JSON-RPC 2.0** (`app.rpc()`) |
179
+ | **Zero-Trust Security** | `bareAuth()` (constant-time HS256 JWT + asymmetric RS256/ES256/JWKS + `revokeToken()`/`isRevoked`), `basicAuth()`, `hasRole()`, `Hash` (Argon2id/bcrypt on Bun; zero-dep `scrypt` fallback on Node/Deno), HMAC-SHA256 signed `HttpOnly` cookies, `cors()`, `csrf()`, `securityHeaders()`, `rateLimit()` (flood-resistant), `trustProxy(boolean \| string[])` CIDR allowlist |
152
180
  | **Resilience & State** | `idempotency()` (`409 IDEMPOTENT_IN_FLIGHT` + `X-Idempotent-Replayed`, caller-scoped), `createSingleflight()` cache-stampede coalescing, `circuitBreaker()` (`503 Retry-After`), `timeout()` (`408`), pluggable `redisStore()` (`Bun.redis` / `ioredis`), overlap-safe `app.cron()` |
153
- | **Real-Time, Files & Ops** | Parameterized WebSockets (`app.ws('/ws/:room')`), Server-Sent Events (`ctx.sse()`), `ctx.upload()` & $O(\text{chunk})$ streaming `ctx.uploadStream()`, `staticFile()` (ETag, `304`, Range `206`, LRU metadata cache), `compress()` (`zstd`/`br`/`gzip`), `logger()` (`pretty`/`json` + `X-Request-Id`), `healthcheck()` (`/health` + `/ready`), `app.onDrain()` + IPC `DRAIN_REQUEST` |
181
+ | **Real-Time, Files & Ops** | Parameterized WebSockets (`app.ws('/ws/:room')` with pub/sub on Bun & `uWebSockets.js`), Server-Sent Events (`ctx.sse()`), `ctx.upload()` & $O(\text{chunk})$ streaming `ctx.uploadStream()`, `staticFile()` (ETag, `304`, Range `206`, SPA fallback, LRU metadata cache), `compress()` (`zstd`/`br`/`gzip`), `useLog({ format: 'json' })` + `logger()`, `healthcheck()` (`/health` + `/ready`), `app.onDrain()` + IPC `DRAIN_REQUEST` |
154
182
  | **External Integrations** | Web Standard `ctx.req`/`Response` works out of the box with **Better-Auth**, **GraphQL Yoga**, **Auth0** (JWKS), **Clerk**, **Sentry**, and **OpenTelemetry** — see [docs/integrations.md](./docs/integrations.md) |
155
183
 
156
184
  ---
157
185
 
158
186
  ## Documentation
159
187
 
160
- - **[Comprehensive Guide](./docs/guide.md)** — Validation & auto-coercion, cookies & uploads, security suite, `app.derive()`, WebSockets, SSE, JSON-RPC 2.0, OpenAPI 3.1, and `bareClient`.
188
+ - **[Documentation Site](https://xarhang.github.io/bareJS/)** — Interactive docs, code examples, and live CI benchmark dashboard.
189
+ - **[Comprehensive Guide](./docs/guide.md)** — Validation & auto-coercion, cookies & uploads, security suite, `app.derive()`, WebSockets, SSE, JSON-RPC 2.0, OpenAPI 3.1, `listenCluster()`, `uWebSockets.js`, native `tls`, `barejs/edge`, and `bareClient`/`bareTreaty`.
161
190
  - **[External Integrations](./docs/integrations.md)** — Ready-to-use recipes for Better-Auth, GraphQL Yoga, Auth0, Clerk, Sentry, and OpenTelemetry.
162
- - **[API & Configuration Reference](./docs/reference.md)** — Complete `Context` (`ctx`) API table, `poolSize`, `bare.config.ts`, and `NODE_ENV` settings.
191
+ - **[API & Configuration Reference](./docs/reference.md)** — Complete `Context` (`ctx`) & `BareJS` API tables, `poolSize`, `bare.config.ts`, and `NODE_ENV` settings.
163
192
  - **[Benchmarks](./BENCHMARKS.md)** — Full 7-scenario results and reproduction instructions.
164
193
  - **[Security Policy](./SECURITY.md)** — Vulnerability reporting and security hardening guidelines.
165
194
  - **[Changelog](./CHANGELOG.md)** — Release history and migration notes.
@@ -169,7 +198,7 @@ BareJS is a complete, zero-boilerplate backend platform—every module below shi
169
198
 
170
199
  ## Status, Contributing & License
171
200
 
172
- - **Status:** Active `0.1.x` development. The test suite is verified in [CI](./.github/workflows/ci.yml) across **Bun** (`bun test`), **Node.js 20 & 22** (`vitest run` + `tests/node-smoke.mjs`; Node 20 skips `production-db.test.ts` which requires `node:sqlite`), and **Deno 2** (`deno test` + `tests/deno-smoke.ts`; skips `playwright.test.ts` and `production-db.test.ts`).
201
+ - **Status:** Active `0.2.x` development (**483 tests / 6,740 assertions**). Verified in [CI](./.github/workflows/ci.yml) across **Bun** (`bun test`), **Node.js 20 & 22** (`vitest run` + `tests/node-smoke.mjs`; Node 20 skips `production-db.test.ts` which requires `node:sqlite`), and **Deno 2** (`deno test` + `tests/deno-smoke.ts`; skips `playwright.test.ts` and `production-db.test.ts`).
173
202
  - **Security:** See [SECURITY.md](./SECURITY.md) for reporting vulnerabilities.
174
203
  - **Contributing:** See [CONTRIBUTING.md](./CONTRIBUTING.md) for development setup and release workflows.
175
204
  - **License:** [MIT](./LICENSE) — Maintained by [xarhang](https://github.com/xarhang).