chrnx
0df82479ee
docs: push the real-time story — one AsyncIterable primitive, explained
...
Add a dedicated section explaining that real-time is native (not a bolt-on
Gateway/adapter/plugin like other frameworks), and that the primitive is always
an AsyncIterable — you declare the mode (@Sse/@Ws/@Stream) and what changes is
direction and framing. Explains the difference between each iterable exposed
(outbound return vs @inbound, channel/rooms fan-out).
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-07 00:28:51 -05:00
chrnx
5bab8da84b
Merge docs/readme-refresh: sellable README + CHANGELOG
...
CI / build (push) Has been cancelled
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-07 00:12:59 -05:00
chrnx
c0c6e7fa57
docs: sell the idea — README refresh (zen philosophy, shipped features, honest benchmark result) + CHANGELOG
...
Reframe README around the graph-as-clarity philosophy; add 'what's different
and why', a batteries-included section for the beta features (TLS/CORS/security,
Standard Schema validation, uploads, graceful shutdown), and the honest
benchmark headline (fastest high-level framework in 3/4 scenarios). Bump status
alpha->beta, add CalVer versioning note, seed CHANGELOG.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-07 00:12:58 -05:00
chrnx
1abcc51620
Merge feature/benchmarks: honest autocannon harness vs Express/Fastify/NestJS/raw-http
...
CI / build (push) Has been cancelled
Q2 complete. Repeatable bench/ harness (devDep-only: autocannon, express@5,
fastify@5, @nestjs/*, tsx) — isolated child-process servers, warmup + median of
N runs, writes BENCHMARKS.md. Compares green-tea vs raw http, Express 5, Fastify
5, and NestJS on both platform-express and platform-fastify. Fairness controls
(security-header parity via security:false, keep-alive parity, etag/x-powered-by
off, equal validation work, disclosed single-box/loopback contention) verified
live. green-tea is the fastest high-level framework in 3/4 scenarios. Review
caught real fairness bugs pre-merge (Fastify 72s keep-alive, double-measured
parity row, missing charset/scope disclosures).
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 23:49:43 -05:00
chrnx
90359e3907
docs(bench): regenerate BENCHMARKS.md with NestJS (express + fastify) rows
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 23:48:19 -05:00
chrnx
fe1831a80a
feat(bench): add NestJS (platform-express + platform-fastify) servers
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 23:30:40 -05:00
chrnx
7593d1425a
docs(bench): disclose charset + secure-cost scope; add typecheck:bench script
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 23:17:58 -05:00
chrnx
daa13f6f78
docs(bench): generate BENCHMARKS.md and link from README
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 23:06:01 -05:00
chrnx
926ca3901c
fix(bench): reuse hello median for secure-cost parity row (consistent numbers)
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 22:57:22 -05:00
chrnx
32b0087650
feat(bench): orchestrator — isolated spawns, warmup+median runs, renders BENCHMARKS.md
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 22:52:27 -05:00
chrnx
768d8d0fd5
fix(bench): Fastify keep-alive parity via constructor; drop dead raw-http route
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 22:49:22 -05:00
chrnx
92ca5f96da
feat(bench): green-tea/express/fastify/raw-http servers with parity controls
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 22:39:35 -05:00
chrnx
67133ca4ce
feat(bench): pure stats aggregate + BENCHMARKS.md renderer
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 22:31:47 -05:00
chrnx
1fdb7e11e5
chore(bench): scaffold benchmark harness — devDeps, scenarios, tsconfig
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 22:25:05 -05:00
chrnx
b8670772e9
Merge feature/input-validation: Standard Schema validation of handler args
...
CI / build (push) Has been cancelled
RC blocker B complete. @body/@query/@param/@headers accept any Standard Schema
(~standard: zod/valibot/arktype) — core stays zero-dep. resolveArgs is async and
validates: parsed/coerced value goes to the handler arg (ctx stays raw), invalid
→ 422 { error, source, issues } via ValidationError (checked before HttpError).
Handler run is async; WS open awaits it. Fail-fast; async schemas awaited;
throwing validate → 500. Plan review caught the WS async-await resequencing
before implementation.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 21:51:55 -05:00
chrnx
0f11ad1e61
docs: input validation via Standard Schema
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 21:41:26 -05:00
chrnx
456dd52df8
refactor(app): type RoutePlan.run as async; add validation e2e tests
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 21:37:22 -05:00
chrnx
eb494ff254
feat(params): schema-aware arg decorators; async validating resolveArgs
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 21:33:13 -05:00
chrnx
101833d52d
feat(validation): ValidationError → 422 with source + issues (before HttpError)
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 21:29:27 -05:00
chrnx
81dc9d3a70
feat(validation): vendor Standard Schema types + isStandardSchema/flattenPath
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 21:26:55 -05:00
chrnx
9316397694
Merge feature/multipart-body: multipart/form-data parsing + configurable duplicate-field policy
...
RC blocker C complete. Zero-dep in-memory multipart parser (src/multipart.ts,
binary-safe): @body() yields { fields, files } with UploadedFile buffers.
readBody now returns a Buffer (text fallthrough preserved as string).
bodyDuplicates policy ('array'|'last', default last) shared by urlencoded +
multipart, overridable per-route via @Post('/x', { duplicates }). maxParts
anti-DoS. Plan review caught 2 parser bugs (first-part loss; embedded-boundary
mis-split) fixed before implementation.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 20:25:12 -05:00
chrnx
97284935aa
docs: multipart/form-data uploads, bodyDuplicates, maxParts
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 20:19:29 -05:00
chrnx
34017f6ab2
feat(routes): per-endpoint duplicates override via @Post/@Get opts
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 20:16:46 -05:00
chrnx
ec2e3a0e62
feat(http): configurable bodyDuplicates policy for urlencoded + multipart fields
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 20:13:52 -05:00
chrnx
5808da8012
feat(http): parse multipart/form-data; readBody yields Buffer, text fallthrough preserved
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 20:11:10 -05:00
chrnx
0f7932c696
feat(multipart): pure binary-safe multipart/form-data parser
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 20:07:32 -05:00
chrnx
d2d4fc1d21
Merge feature/transport-security: TLS/wss, trustProxy, CORS, secure-by-default headers
...
RC blocker A complete. createApp gains tls (native https/wss), trustProxy
(X-Forwarded-* → ctx.protocol/ip), cors (guarded preflight, credentials-safe),
and security (on-by-default headers, HSTS only when secure). Two adversarial
review findings fixed: control-byte Origin rejection and case-variant header
override.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 19:26:17 -05:00
chrnx
258130bf30
docs: transport security (TLS/wss, trustProxy, CORS, security headers)
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 19:20:34 -05:00
chrnx
cb77216a53
feat(http): configurable CORS with guarded OPTIONS preflight
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 19:16:48 -05:00
chrnx
0982873462
fix(http): make injected security/CORS headers authoritative over case-variant handler keys
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 19:14:17 -05:00
chrnx
04da79721f
feat(http): inject security headers on every response via writeHead patch
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 19:06:58 -05:00
chrnx
0dba41606a
feat(http): trustProxy + ctx.protocol/ctx.ip from socket or X-Forwarded-*
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 19:02:11 -05:00
chrnx
b8ee1b14a5
feat(http): native TLS termination → https/wss via tls option
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 18:58:40 -05:00
chrnx
b87bdc698f
fix(security): reject all control bytes in Origin validation
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 18:56:07 -05:00
chrnx
881bc59419
feat(security): pure CORS + security-header computation module
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-07-06 18:52:24 -05:00
chrnx
e38d972566
Merge feature/dx-adoption: usable for small apps + showcase examples
...
CI / build (push) Has been cancelled
Core: urlencoded body parsing, a rooms broadcast-hub primitive
(auto-provided), WS auth rejection close-code (4000+status), and an SSE
header-flush fix for idle subscriptions. Examples: CRUD, WS chat with
rooms + handshake auth (no socket.io), and minimal GraphQL with an SSE
subscription over rooms (graphql is a devDep; core stays zero-dep).
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:38:35 -05:00
chrnx
c39eb667ac
feat(example): minimal GraphQL with query/mutation and an SSE subscription over rooms
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:37:37 -05:00
chrnx
0c29c76a8a
fix(http): flush SSE headers immediately so idle subscriptions don't deadlock clients
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:37:33 -05:00
chrnx
8335ff2875
feat(example): WS chat with rooms and handshake auth (no socket.io)
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:30:16 -05:00
chrnx
3842271c4d
feat(example): in-memory CRUD with query and JSON/urlencoded bodies
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:28:42 -05:00
chrnx
9050a7e5d9
feat: WS connections rejected by an HttpError close with 4000+status
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:25:24 -05:00
chrnx
6171e5e6bd
feat: rooms broadcast-hub primitive, auto-provided to handlers
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:23:54 -05:00
chrnx
2bbc43505e
feat: parse application/x-www-form-urlencoded request bodies
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 13:22:01 -05:00
chrnx
07b6b57611
Merge feature/beta-wow: graph introspection + DX wow features
...
CI / build (push) Has been cancelled
Built-in graph viz (app.graph/toMermaid/toDOT + opt-in GET /__graph__),
app.explain(route), one-line createApp({ overrides }), and a 'did you
mean' boot hint + flow compile-time type-test. All leverage the graph
being inspectable data — differentiators vs NestJS.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 02:37:17 -05:00
chrnx
9d8088d0a9
feat: 'did you mean' boot hint, flow compile-time type-test, and demos
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 02:36:37 -05:00
chrnx
cc0044ba6a
feat: createApp overrides — swap any provider/step by token in one line
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 02:33:52 -05:00
chrnx
73cd874cae
feat: opt-in GET /__graph__ dev endpoint rendering the live graph
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 02:31:52 -05:00
chrnx
f5136e35d0
feat: app.graph/explain/toMermaid/toDOT — inspect the dependency graph
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 02:30:22 -05:00
chrnx
d67a4080dd
feat: pure Mermaid/DOT/HTML graph renderers
...
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 02:28:39 -05:00
chrnx
8f3aef9edc
Merge feature/solid-beta: hardening for a solid beta
...
CI / build (push) Has been cancelled
CI (Gitea Actions), request hardening (body-size limit -> 413, server
timeouts), graceful shutdown (app.close drains streams + connections),
and per-route subgraph slicing (routes run only their needed
providers/steps; observer plugin steps run unconditionally).
TLS/CORS/validation and mesh-side slicing deferred to RC.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com >
2026-06-28 01:37:34 -05:00