@blamejs/core 0.4.1
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/CHANGELOG.md +230 -0
- package/LICENSE +201 -0
- package/LTS-CALENDAR.md +29 -0
- package/MIGRATING.md +7 -0
- package/NOTICE +59 -0
- package/README.md +100 -0
- package/bin/blamejs.js +13 -0
- package/index.js +253 -0
- package/lib/api-key.js +705 -0
- package/lib/api-snapshot.js +335 -0
- package/lib/app-shutdown.js +381 -0
- package/lib/app.js +364 -0
- package/lib/atomic-file.js +525 -0
- package/lib/audit-chain.js +168 -0
- package/lib/audit-sign.js +319 -0
- package/lib/audit-tools.js +682 -0
- package/lib/audit.js +753 -0
- package/lib/auth/jwt.js +280 -0
- package/lib/auth/oauth.js +691 -0
- package/lib/auth/passkey.js +185 -0
- package/lib/auth/password.js +139 -0
- package/lib/auth/totp.js +17 -0
- package/lib/auth-header.js +81 -0
- package/lib/backup/bundle.js +219 -0
- package/lib/backup/crypto.js +174 -0
- package/lib/backup/index.js +490 -0
- package/lib/backup/manifest.js +275 -0
- package/lib/bundler.js +295 -0
- package/lib/cache.js +819 -0
- package/lib/chain-writer.js +234 -0
- package/lib/cli-helpers.js +201 -0
- package/lib/cli.js +1377 -0
- package/lib/cluster-provider-db.js +245 -0
- package/lib/cluster-storage.js +166 -0
- package/lib/cluster.js +691 -0
- package/lib/consent.js +222 -0
- package/lib/constants.js +186 -0
- package/lib/cookies.js +293 -0
- package/lib/credential-hash.js +303 -0
- package/lib/crypto-field.js +159 -0
- package/lib/crypto.js +250 -0
- package/lib/db-query.js +297 -0
- package/lib/db-schema.js +250 -0
- package/lib/db.js +1054 -0
- package/lib/deprecate.js +226 -0
- package/lib/dev.js +324 -0
- package/lib/error-page.js +424 -0
- package/lib/events.js +135 -0
- package/lib/external-db.js +422 -0
- package/lib/forms.js +378 -0
- package/lib/framework-error.js +189 -0
- package/lib/framework-schema.js +604 -0
- package/lib/handlers.js +350 -0
- package/lib/html-balance.js +227 -0
- package/lib/http-client.js +615 -0
- package/lib/i18n.js +780 -0
- package/lib/jobs.js +181 -0
- package/lib/lazy-require.js +48 -0
- package/lib/log-stream-local.js +137 -0
- package/lib/log-stream-webhook.js +170 -0
- package/lib/log-stream.js +211 -0
- package/lib/log.js +355 -0
- package/lib/mail-bounce.js +507 -0
- package/lib/mail.js +701 -0
- package/lib/metrics.js +647 -0
- package/lib/middleware/api-encrypt.js +553 -0
- package/lib/middleware/attach-user.js +156 -0
- package/lib/middleware/body-parser.js +883 -0
- package/lib/middleware/bot-guard.js +148 -0
- package/lib/middleware/compression.js +436 -0
- package/lib/middleware/cors.js +236 -0
- package/lib/middleware/csp-nonce.js +332 -0
- package/lib/middleware/csrf-protect.js +275 -0
- package/lib/middleware/error-handler.js +46 -0
- package/lib/middleware/health.js +358 -0
- package/lib/middleware/index.js +52 -0
- package/lib/middleware/rate-limit.js +319 -0
- package/lib/middleware/request-id.js +53 -0
- package/lib/middleware/require-auth.js +95 -0
- package/lib/middleware/security-headers.js +91 -0
- package/lib/migrations.js +353 -0
- package/lib/mtls-ca.js +333 -0
- package/lib/mtls-engine-default.js +285 -0
- package/lib/nonce-store.js +177 -0
- package/lib/notify.js +643 -0
- package/lib/ntp-check.js +178 -0
- package/lib/object-store/azure-blob.js +467 -0
- package/lib/object-store/gcs.js +469 -0
- package/lib/object-store/http-put.js +153 -0
- package/lib/object-store/index.js +140 -0
- package/lib/object-store/local.js +163 -0
- package/lib/object-store/retry.js +15 -0
- package/lib/object-store/sigv4.js +535 -0
- package/lib/observability.js +114 -0
- package/lib/pagination.js +371 -0
- package/lib/parsers/index.js +64 -0
- package/lib/parsers/safe-csv.js +224 -0
- package/lib/parsers/safe-env.js +614 -0
- package/lib/parsers/safe-toml.js +745 -0
- package/lib/parsers/safe-xml.js +379 -0
- package/lib/parsers/safe-yaml.js +977 -0
- package/lib/permissions.js +430 -0
- package/lib/pqc-agent.js +85 -0
- package/lib/pqc-gate.js +266 -0
- package/lib/protocol-dispatcher.js +144 -0
- package/lib/queue-local.js +327 -0
- package/lib/queue.js +430 -0
- package/lib/redact.js +192 -0
- package/lib/render.js +193 -0
- package/lib/request-helpers.js +178 -0
- package/lib/restore-bundle.js +239 -0
- package/lib/restore-rollback.js +254 -0
- package/lib/restore.js +301 -0
- package/lib/retry.js +329 -0
- package/lib/router.js +437 -0
- package/lib/safe-async.js +520 -0
- package/lib/safe-buffer.js +162 -0
- package/lib/safe-json.js +532 -0
- package/lib/safe-schema.js +1176 -0
- package/lib/safe-sql.js +157 -0
- package/lib/safe-url.js +109 -0
- package/lib/scheduler.js +680 -0
- package/lib/seeders.js +622 -0
- package/lib/session.js +304 -0
- package/lib/slug.js +243 -0
- package/lib/static.js +268 -0
- package/lib/storage.js +470 -0
- package/lib/subject.js +281 -0
- package/lib/template.js +781 -0
- package/lib/testing.js +621 -0
- package/lib/totp.js +285 -0
- package/lib/tracing.js +484 -0
- package/lib/validate-opts.js +56 -0
- package/lib/vault/index.js +299 -0
- package/lib/vault/passphrase-ops.js +311 -0
- package/lib/vault/passphrase-source.js +198 -0
- package/lib/vault/rotate.js +761 -0
- package/lib/vault/wrap.js +289 -0
- package/lib/vendor/MANIFEST.json +84 -0
- package/lib/vendor/argon2/argon2.cjs +466 -0
- package/lib/vendor/argon2/argon2.d.cts +62 -0
- package/lib/vendor/argon2/package.json +1 -0
- package/lib/vendor/argon2/prebuilds/darwin-arm64/argon2.armv8.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/darwin-x64/argon2.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/freebsd-arm64/argon2.armv8.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/freebsd-x64/argon2.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/linux-arm/argon2.armv7.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/linux-arm/argon2.armv7.musl.node +0 -0
- package/lib/vendor/argon2/prebuilds/linux-arm64/argon2.armv8.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/linux-arm64/argon2.armv8.musl.node +0 -0
- package/lib/vendor/argon2/prebuilds/linux-x64/argon2.glibc.node +0 -0
- package/lib/vendor/argon2/prebuilds/linux-x64/argon2.musl.node +0 -0
- package/lib/vendor/argon2/prebuilds/win32-x64/argon2.glibc.node +0 -0
- package/lib/vendor/noble-ciphers.cjs +9 -0
- package/lib/vendor/pki.cjs +181 -0
- package/lib/vendor/simplewebauthn-server.cjs +328 -0
- package/lib/webhook.js +632 -0
- package/lib/websocket-channels.js +413 -0
- package/lib/websocket.js +833 -0
- package/package.json +39 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
One entry per released tag, grouped by minor. Latest first.
|
|
4
|
+
|
|
5
|
+
Pre-1.0 the surface is intentionally evolving — every release may
|
|
6
|
+
change something operators depend on. Read each entry before
|
|
7
|
+
upgrading across more than a few patches at a time.
|
|
8
|
+
|
|
9
|
+
## v0.3.x
|
|
10
|
+
|
|
11
|
+
- **0.3.39** (2026-04-29) — MIGRATING.md generator scans deprecate() calls in lib/
|
|
12
|
+
- **0.3.38** (2026-04-29) — LTS-CALENDAR.md publishes the major-cadence + algorithm posture
|
|
13
|
+
- **0.3.37** (2026-04-29) — bundled pure-JS mTLS engine + vendor-update.sh + CHANGELOG + thanks page
|
|
14
|
+
- **0.3.36** (2026-04-29) — prepack guard refuses to publish any path that matches a gitignore rule
|
|
15
|
+
- **0.3.35** (2026-04-29) — wiki home page hero with logo + neon-magenta brand accents
|
|
16
|
+
- **0.3.34** (2026-04-29) — rewrite api-snapshot wiki section in plain operator voice + fix SECURITY.md flag
|
|
17
|
+
- **0.3.33** (2026-04-29) — doc-sweep folding the v0.3.32 mtls CLI references + filling the wiki gap on api-snapshot
|
|
18
|
+
- **0.3.32** (2026-04-29) — blamejs mtls CLI (status / show-cert / init / issue / issue-p12) + framework posture fix on cert fingerprinting
|
|
19
|
+
- **0.3.31** (2026-04-29) — npm-publish: defensive NPM_TOKEN check + bin/blamejs.js executable bit committed
|
|
20
|
+
- **0.3.30** (2026-04-29) — wiki binds 0.0.0.0 by default so docker -p forwarding actually reaches the listener
|
|
21
|
+
- **0.3.29** (2026-04-29) — npm-publish workflow + Dockerfile data-skeleton dir
|
|
22
|
+
- **0.3.28** (2026-04-29) — Dockerfile: switch runtime --chown from name to numeric UID 65532:65532
|
|
23
|
+
- **0.3.27** (2026-04-29) — Dockerfile pre-builds public/dist in deps stage so runtime container boots cleanly under --cap-drop ALL
|
|
24
|
+
- **0.3.26** (2026-04-29) — operator-facing env-var surface, GitHub-side ops docs, contribution standards
|
|
25
|
+
- **0.3.25** (2026-04-29) — env-var surface documented across Dockerfile, docker-compose.prod, DEPLOY.md, README; smoke-test GHCR login fix
|
|
26
|
+
- **0.3.24** (2026-04-29) — CI + release-container workflows brought to hermitstash parity (structured output, multi-arch, cosign, post-publish smoke)
|
|
27
|
+
- **0.3.23** (2026-04-29) — _runVault and _runBackup refactored to use b.cliHelpers (sweep complete across the three CLI commands the helper was designed for)
|
|
28
|
+
- **0.3.22** (2026-04-29) — blamejs api-key CLI; b.cliHelpers shared primitive for headless app + reporter shape
|
|
29
|
+
- **0.3.21** (2026-04-29) — blamejs backup CLI: inspect / verify / extract; backup encryption format documented
|
|
30
|
+
- **0.3.20** (2026-04-29) — drop redundant Windows-flaky audit.flush perf assertion
|
|
31
|
+
- **0.3.19** (2026-04-29) — wiki docs for the unwired primitives surface
|
|
32
|
+
- **0.3.18** (2026-04-29) — blamejs vault CLI: seal / unseal / rotate / status
|
|
33
|
+
- **0.3.17** (2026-04-29) — Tier-A validateOpts coverage extended to remaining operator-facing primitives (i18n, bundler, migrations, seeders, template, jobs, cookies, log, mtlsCa, staticServe, handlers, websocket, pqcGate, tracing, metrics — 15 more factories now reject typo'd opts at boot). Coverage is now ~39/lib primitives with the helper; the remaining handful (app-shutdown, chain-writer, dev, error-page, nonce-store, protocol-dispatcher, render, session, pqc-agent) are either internal-only — operators don't construct them directly — or have a single required-key surface where typo guards add no value.
|
|
34
|
+
- **0.3.16** (2026-04-29) — Tier-A config validation, CSRF cookie mode, HTML balance, dynamic Cache-Control, URL canonicalization
|
|
35
|
+
- **0.3.15** (2026-04-29) — cors: accept Origin: null when Sec-Fetch-Site is same-origin (browsers send opaque Origin: null on form-navigation POSTs from a page whose response sets Referrer-Policy: no-referrer; the Fetch-metadata Sec-Fetch-Site header is the matching disambiguation signal — same-origin or none means accept, anything else stays refused)
|
|
36
|
+
- **0.3.14** (2026-04-29) — Dockerfile hotfix + lint as release gate
|
|
37
|
+
- **0.3.13** (2026-04-29) — CI lint scans + Wolfi container + Trivy two-step + lint cleanup
|
|
38
|
+
- **0.3.12** (2026-04-29) — version bump for hotfix (rebuild container image)
|
|
39
|
+
- **0.3.11** (2026-04-29) — CI/CD: GitHub Actions for smoke + wiki e2e, GHCR container publish on tag, Caddy production deploy overlay
|
|
40
|
+
- **0.3.10** (2026-04-29) — framework correctness fixes: compression backpressure, cspNonce cacheable-render API, cors same-origin, audit namespaces
|
|
41
|
+
- **0.3.9** (2026-04-28) — wiki: Docker Compose deploy
|
|
42
|
+
- **0.3.8** (2026-04-28) — wiki: remaining four concern-group pages
|
|
43
|
+
- **0.3.7** (2026-04-28) — wiki: HTTP & Middleware and Crypto & Vault pages
|
|
44
|
+
- **0.3.6** (2026-04-28) — wiki: Auth & Permissions and Storage & State pages
|
|
45
|
+
- **0.3.5** (2026-04-28) — strip stale comments and template language from sources
|
|
46
|
+
- **0.3.4** (2026-04-28) — wiki: Welcome and Observability pages
|
|
47
|
+
- **0.3.3** (2026-04-28) — wiki bundler integration + admin editor enhancements
|
|
48
|
+
- **0.3.2** (2026-04-28) — wiki wires notify / scheduler / apiKey / webhook
|
|
49
|
+
- **0.3.1** (2026-04-28) — wiki design pass
|
|
50
|
+
- **0.3.0** (2026-04-28) — examples/wiki reference app
|
|
51
|
+
|
|
52
|
+
## v0.2.x
|
|
53
|
+
|
|
54
|
+
- **0.2.39** (2026-04-28) — sweep auditCaptured + fakeNow patterns to b.testing
|
|
55
|
+
- **0.2.38** (2026-04-28) — b.testing
|
|
56
|
+
- **0.2.37** (2026-04-28) — b.notify
|
|
57
|
+
- **0.2.36** (2026-04-28) — b.i18n
|
|
58
|
+
- **0.2.35** (2026-04-28) — b.seeders
|
|
59
|
+
- **0.2.34** (2026-04-28) — b.cache
|
|
60
|
+
- **0.2.33** (2026-04-28) — audit captures the 5 W's; success on by default when audit is wired
|
|
61
|
+
- **0.2.32** (2026-04-28) — close api-key visibility holes
|
|
62
|
+
- **0.2.31** (2026-04-28) — auditSuccess split: precursor vs complete-event
|
|
63
|
+
- **0.2.30** (2026-04-28) — b.permissions
|
|
64
|
+
- **0.2.29** (2026-04-28) — observability backfill across primitives
|
|
65
|
+
- **0.2.28** (2026-04-28) — credential hash envelope versioning
|
|
66
|
+
- **0.2.27** (2026-04-28) — b.apiKey + repo logo assets
|
|
67
|
+
- **0.2.26** (2026-04-28) — b.webhook signing + verification
|
|
68
|
+
- **0.2.25** (2026-04-28) — b.slug
|
|
69
|
+
- **0.2.24** (2026-04-28) — b.retry primitive
|
|
70
|
+
- **0.2.23** (2026-04-28) — test helpers consolidate
|
|
71
|
+
- **0.2.22** (2026-04-28) — tier-aware input validation
|
|
72
|
+
- **0.2.21** (2026-04-28) — defineClass.factory replaces per-module _err wrappers
|
|
73
|
+
- **0.2.20** (2026-04-28) — b.requestHelpers + metrics _normalizeLabelArg
|
|
74
|
+
- **0.2.19** (2026-04-28) — audit.safeEmit replaces per-module _emit wrappers
|
|
75
|
+
- **0.2.18** (2026-04-28) — b.protocolDispatcher
|
|
76
|
+
- **0.2.17** (2026-04-28) — b.observability.tap
|
|
77
|
+
- **0.2.16** (2026-04-28) — index.js header lists complete public surface
|
|
78
|
+
- **0.2.15** (2026-04-28) — request middleware captures statusCode, promotes span to route template
|
|
79
|
+
- **0.2.14** (2026-04-28) — router populates req.routePattern
|
|
80
|
+
- **0.2.13** (2026-04-28) — OAuth generic preset
|
|
81
|
+
- **0.2.12** (2026-04-28) — built-in metrics + framework tracing taps
|
|
82
|
+
- **0.2.11** (2026-04-28) — storage POST-form policy presigning + logger deprecation warning
|
|
83
|
+
- **0.2.10** (2026-04-28) — close api-encrypt audit gaps
|
|
84
|
+
- **0.2.9** (2026-04-28) — cluster-shared nonce-store + audit handler isolation
|
|
85
|
+
- **0.2.8** (2026-04-28) — end-to-end PQC payload encryption middleware
|
|
86
|
+
- **0.2.7** (2026-04-27) — websocket channel/room hub with cluster pub/sub fan-out
|
|
87
|
+
- **0.2.6** (2026-04-27) — mail-bounce intake primitive
|
|
88
|
+
- **0.2.5** (2026-04-27) — strip narrative comments
|
|
89
|
+
- **0.2.4** (2026-04-27) — fold logger into log + rate-limit cluster backend
|
|
90
|
+
- **0.2.3** (2026-04-27) — route raw literals through C.TIME / C.BYTES, type bare throws
|
|
91
|
+
- **0.2.2** (2026-04-27) — close gaps in the 0.2.1 scheduler and presign work
|
|
92
|
+
- **0.2.1** (2026-04-27) — scheduler exactly-once-globally + storage presigned upload URLs
|
|
93
|
+
- **0.2.0** (2026-04-27) — minor bump + queue lease-extension + Jobs DLQ
|
|
94
|
+
|
|
95
|
+
## v0.1.x
|
|
96
|
+
|
|
97
|
+
- **0.1.111** (2026-04-27) — modular per-file test layout
|
|
98
|
+
- **0.1.110** (2026-04-27) — session.rotate + migrations advisory lock
|
|
99
|
+
- **0.1.109** (2026-04-27) — auth.oauth: OAuth 2 / OIDC client
|
|
100
|
+
- **0.1.108** (2026-04-27) — app-shutdown: graceful-shutdown orchestrator
|
|
101
|
+
- **0.1.107** (2026-04-27) — tracing: OpenTelemetry seam
|
|
102
|
+
- **0.1.106** (2026-04-27) — metrics: Prometheus-format counters/gauges/histograms
|
|
103
|
+
- **0.1.105** (2026-04-27) — csp-nonce middleware + render integration
|
|
104
|
+
- **0.1.104** (2026-04-27) — pagination: cursor + offset helpers
|
|
105
|
+
- **0.1.103** (2026-04-27) — compression middleware
|
|
106
|
+
- **0.1.102** (2026-04-27) — health endpoint primitive
|
|
107
|
+
- **0.1.101** (2026-04-27) — body-parser middleware
|
|
108
|
+
- **0.1.100** (2026-04-27) — safe-schema: declarative input validator
|
|
109
|
+
- **0.1.99** (2026-04-27) — events: breach-detection signal bus (audit-tools slice B)
|
|
110
|
+
- **0.1.98** (2026-04-27) — audit-tools (slice A): archive + export + verify-bundle + purge
|
|
111
|
+
- **0.1.97** (2026-04-27) — backup: encrypted-at-rest support — db.flushToDisk + recommendedFiles
|
|
112
|
+
- **0.1.96** (2026-04-27) — audit cleanup A4: folder-level adjustments + DeprecateError rename
|
|
113
|
+
- **0.1.95** (2026-04-27) — audit cleanup A3: standardize require ordering across major lib files
|
|
114
|
+
- **0.1.94** (2026-04-27) — audit cleanup A2 (cont.): rename import bindings, public namespace, error classes
|
|
115
|
+
- **0.1.93** (2026-04-27) — audit cleanup A2: rename libs to prefix-grouped names — pre-v1.0 LTS lock-in
|
|
116
|
+
- **0.1.92** (2026-04-27) — audit cleanup A1: lift duplicated helpers + frameworkError.defineClass
|
|
117
|
+
- **0.1.91** (2026-04-27) — api-snapshot: public API surface walker + breaking-change detector — slice 8b
|
|
118
|
+
- **0.1.90** (2026-04-27) — deprecate: runtime deprecation API for the LTS contract — slice 8a
|
|
119
|
+
- **0.1.89** (2026-04-27) — restore + restore-rollback: storage-backed restore + atomic swap — complete
|
|
120
|
+
- **0.1.88** (2026-04-27) — backup: orchestration with pluggable storage + retention — slice 7d
|
|
121
|
+
- **0.1.87** (2026-04-27) — restore-bundle: extract encrypted bundle to staging — slice 7c
|
|
122
|
+
- **0.1.86** (2026-04-27) — backup-bundle: produce an encrypted backup bundle on disk — slice 7b
|
|
123
|
+
- **0.1.85** (2026-04-27) — backup-manifest: bundle schema + validate/parse/serialize — slice 7a
|
|
124
|
+
- **0.1.84** (2026-04-27) — backup-crypto: Argon2id KDF + XChaCha20-Poly1305 for backup files — slice 7
|
|
125
|
+
- **0.1.83** (2026-04-27) — mtls-ca: CA file management with engine-pluggable issuance — slice 6
|
|
126
|
+
- **0.1.82** (2026-04-27) — vault-passphrase-ops: seal/unseal/rotate operator primitives — slice 5
|
|
127
|
+
- **0.1.81** (2026-04-27) — vault-rotate.rotate: full rotation pipeline — slice 4
|
|
128
|
+
- **0.1.80** (2026-04-27) — vault-rotate (diagnostics): schema-drift + round-trip verify — slice 3
|
|
129
|
+
- **0.1.79** (2026-04-27) — drop SecP256r1MLKEM768 from default TLS group preference
|
|
130
|
+
- **0.1.78** (2026-04-27) — pqc-agent: locked-posture HTTPS agent + http-client refactor — slice 2
|
|
131
|
+
- **0.1.77** (2026-04-27) — pqc-gate: TCP-level PQC enforcement on ClientHello — slice 1
|
|
132
|
+
- **0.1.76** (2026-04-27) — bundler: content-hashed asset pipeline + manifest — complete
|
|
133
|
+
- **0.1.75** (2026-04-27) — dev: file-watch + child-process restart engine — slice 6 ( complete)
|
|
134
|
+
- **0.1.74** (2026-04-27) — cli: bin/blamejs + migrate up/down/status — slice 5
|
|
135
|
+
- **0.1.73** (2026-04-27) — migrations: public up/down/status runner — slice 4
|
|
136
|
+
- **0.1.72** (2026-04-27) — cookies: parse/serialize + sealed-value access gate — slice 3
|
|
137
|
+
- **0.1.71** (2026-04-27) — errors-page: rich dev page + safe prod page; middleware shim — slice 2
|
|
138
|
+
- **0.1.70** (2026-04-27) — log: structured JSON logging with request-id correlation — slice 1
|
|
139
|
+
- **0.1.69** (2026-04-27) — scheduler: cron + interval over jobs/queue — slice 5 ( complete)
|
|
140
|
+
- **0.1.68** (2026-04-27) — mail: generalize http transport, demote resend to thin preset
|
|
141
|
+
- **0.1.67** (2026-04-27) — mail: contract + console/memory/smtp/resend transports — slice 4
|
|
142
|
+
- **0.1.66** (2026-04-26) — jobs (define + enqueue + in-process worker) + createApp wiring — slices 2/3
|
|
143
|
+
- **0.1.65** (2026-04-26) — createApp factory — slice 1
|
|
144
|
+
- **0.1.64** (2026-04-26) — forms + csrfProtect — slice 4 ( complete)
|
|
145
|
+
- **0.1.63** (2026-04-26) — staticServe: file serving + ETag + SRI integrity — slice 3
|
|
146
|
+
- **0.1.62** (2026-04-26) — render: HTTP response helpers — slice 2
|
|
147
|
+
- **0.1.61** (2026-04-26) — template engine (eval-free interpreter) — slice 1
|
|
148
|
+
- **0.1.60** (2026-04-26) — auth.jwt with SLH-DSA-SHAKE-256f default — slice 5/5 ( complete)
|
|
149
|
+
- **0.1.59** (2026-04-26) — middleware.attachUser + middleware.requireAuth — slice 4
|
|
150
|
+
- **0.1.58** (2026-04-26) — auth.passkey (WebAuthn / FIDO2) — slice 3
|
|
151
|
+
- **0.1.57** (2026-04-26) — TOTP defaults match spec (HMAC-SHA512 / 128-byte secret / 8 digits / 30s) + crypto.random truncation fix
|
|
152
|
+
- **0.1.56** (2026-04-26) — auth.totp: flip default to HMAC-SHA512, drop SHA-1 support
|
|
153
|
+
- **0.1.55** (2026-04-26) — auth.totp / lib/totp.js (RFC 6238) — slice 2
|
|
154
|
+
- **0.1.54** (2026-04-26) — audit-sign algorithm-agility + flip default to SLH-DSA-SHAKE-256f
|
|
155
|
+
- **0.1.53** (2026-04-26) — auth.password (Argon2id) — slice 1/4
|
|
156
|
+
- **0.1.52** (2026-04-26) — consent_log integrity parity with audit_log (closes the cluster spec storage move)
|
|
157
|
+
- **0.1.51** (2026-04-26) — queue jobs move to external-db in cluster mode
|
|
158
|
+
- **0.1.50** (2026-04-26) — sessions move to external-db in cluster mode
|
|
159
|
+
- **0.1.49** (2026-04-26) — boot-time vault-key consistency check (closes cluster spec phase 4)
|
|
160
|
+
- **0.1.48** (2026-04-26) — boot-time audit-tip rollback detection in cluster mode
|
|
161
|
+
- **0.1.47** (2026-04-26) — fix handlers.drain unbounded loop on recursive emit (cluster-mode audit hang)
|
|
162
|
+
- **0.1.46** (2026-04-26) — cluster-mode audit-tip fencing-token guard
|
|
163
|
+
- **0.1.45** (2026-04-26) — cluster discovery surface for service-mesh / load-balancer routing
|
|
164
|
+
- **0.1.44** (2026-04-26) — repeating-pattern sweep: sleep + withTimeoutSignal + auth-header + listenOnRandomPort
|
|
165
|
+
- **0.1.43** (2026-04-26) — url-safe protocol validator at outbound boundary
|
|
166
|
+
- **0.1.42** (2026-04-26) — router.closeWebSockets + activeWebSockets — fundamental fix
|
|
167
|
+
- **0.1.41** (2026-04-26) — smoke runner gains groups + fixtures + per-test timing
|
|
168
|
+
- **0.1.40** (2026-04-26) — router.ws integration + WebSocket lifecycle redesign
|
|
169
|
+
- **0.1.39** (2026-04-26) — h2 WebSocket (RFC 8441 Extended CONNECT) added to websocket.js
|
|
170
|
+
- **0.1.38** (2026-04-26) — lib/websocket.js (RFC 6455 server primitive)
|
|
171
|
+
- **0.1.37** (2026-04-26) — atomicFile.listDir primitive + sweep 5 lib sites
|
|
172
|
+
- **0.1.36** (2026-04-26) — testConstantsReferenceIntegrity uses framework primitives
|
|
173
|
+
- **0.1.35** (2026-04-26) — fix stale C.TIME.FIVE_MIN refs + add integrity test
|
|
174
|
+
- **0.1.34** (2026-04-26) — document h3-ready transport cache + TLS session resumption stance
|
|
175
|
+
- **0.1.33** (2026-04-26) — HTTP/2 backend behind same httpClient.request surface
|
|
176
|
+
- **0.1.32** (2026-04-26) — http-client primitive (h1 baseline) + sweep 5 adapters
|
|
177
|
+
- **0.1.31** (2026-04-26) — logger primitive + sweep log/logErr/console sites
|
|
178
|
+
- **0.1.30** (2026-04-26) — framework-error base class + sweep operational _err factories
|
|
179
|
+
- **0.1.29** (2026-04-26) — lazy-require primitive + sweep 12 modules
|
|
180
|
+
- **0.1.28** (2026-04-26) — adopt bufferSafe.secureZero in passphrase + key-wrap paths
|
|
181
|
+
- **0.1.27** (2026-04-26) — bufferSafe primitive + sweep parsers/atomic-file/object-store
|
|
182
|
+
- **0.1.26** (2026-04-26) — envSafe.readVar primitive + sweep direct process.env reads
|
|
183
|
+
- **0.1.25** (2026-04-26) — dedup audit-sign passphrase logic into passphrase-source
|
|
184
|
+
- **0.1.24** (2026-04-26) — Layer 5 extraction + smoke.js as pure orchestrator
|
|
185
|
+
- **0.1.23** (2026-04-26) — Layer 4 extraction: consumer modules → 40-consumers.js
|
|
186
|
+
- **0.1.22** (2026-04-26) — Layer 3 extraction: chain-writing modules → 30-chain.js
|
|
187
|
+
- **0.1.21** (2026-04-26) — Layer 2 extraction: db + framework-schema → 20-db.js
|
|
188
|
+
- **0.1.20** (2026-04-26) — Layer 1 extraction: vault + cluster + framework-schema → 10-state.js
|
|
189
|
+
- **0.1.19** (2026-04-26) — Layer 0 extraction: atomic-file + parsers + redact → 00-primitives.js
|
|
190
|
+
- **0.1.18** (2026-04-26) — Layer 0 extraction: json-safe tests → 00-primitives.js
|
|
191
|
+
- **0.1.17** (2026-04-26) — Layer 0 extraction: async-safe + handlers tests → 00-primitives.js
|
|
192
|
+
- **0.1.16** (2026-04-26) — first Layer 0 extraction (sql-safe + chain-writer → 00-primitives.js)
|
|
193
|
+
- **0.1.15** (2026-04-26) — extract test/_helpers.js (foundation for layer-file split)
|
|
194
|
+
- **0.1.14** (2026-04-26) — smoke runner reordered by dependency layer (primitives first, consumers last)
|
|
195
|
+
- **0.1.13** (2026-04-26) — sql-safe + chain-writer primitives; consent gets the audit Mutex fix as a side effect of consolidation
|
|
196
|
+
- **0.1.12** (2026-04-26) — async-safe + handlers hardening: AbortSignal, Once.reset, isRetryable override, timer-unref bug fix, full primitive test coverage
|
|
197
|
+
- **0.1.11** (2026-04-26) — handlers primitive replaces fire-and-forget audit emission
|
|
198
|
+
- **0.1.10** (2026-04-26) — async-safe library + audit dispatch via cluster-storage
|
|
199
|
+
- **0.1.9** (2026-04-26) — cluster storage step 2: SQL dispatcher (lib/cluster-storage.js)
|
|
200
|
+
- **0.1.8** (2026-04-26) — cluster storage step 1: framework-state schema for external-db
|
|
201
|
+
- **0.1.7** (2026-04-26) — .env safe loader (lib/parsers/env-safe.js)
|
|
202
|
+
- **0.1.6** (2026-04-26) — YAML 1.2 safe-subset parser (lib/parsers/yaml-safe.js)
|
|
203
|
+
- **0.1.5** (2026-04-26) — TOML 1.0 safe parser (lib/parsers/toml-safe.js)
|
|
204
|
+
- **0.1.4** (2026-04-26) — xml-safe parser adopted in object-store list responses
|
|
205
|
+
- **0.1.3** (2026-04-26) — atomicFile.readSync for sync init paths
|
|
206
|
+
- **0.1.2** (2026-04-26) — rename b.json public API to b.jsonSafe
|
|
207
|
+
- **0.1.1** (2026-04-26) — rename HA → cluster (no cryptic acronyms in framework names)
|
|
208
|
+
- **0.1.0** (2026-04-26) — HA write-side gates wired across framework subsystems
|
|
209
|
+
|
|
210
|
+
## v0.0.x
|
|
211
|
+
|
|
212
|
+
- **0.0.19** (2026-04-26) — HA core: leader election + fencing tokens (operator-facing primitive)
|
|
213
|
+
- **0.0.18** (2026-04-26) — strip internal-process narrative from framework comments
|
|
214
|
+
- **0.0.17** (2026-04-25) — internal adoption sweep + functional scale helpers
|
|
215
|
+
- **0.0.16** (2026-04-25) — atomic file I/O + safe parsers (XML, CSV)
|
|
216
|
+
- **0.0.15** (2026-04-25) — HTTP middleware: request lifecycle hardening ( begin)
|
|
217
|
+
- **0.0.14** (2026-04-25) — external DB (Shape B: app-data-only, bring-your-own-client)
|
|
218
|
+
- **0.0.13** (2026-04-25) — log streaming + redaction + bidirectional command channel
|
|
219
|
+
- **0.0.12** (2026-04-25) — queue dispatcher + local SQLite-backed protocol
|
|
220
|
+
- **0.0.11** (2026-04-25) — gcs + azure-blob protocol adapters (object-store complete)
|
|
221
|
+
- **0.0.10** (2026-04-25) — sigv4 protocol adapter (S3 + R2 + B2 + MinIO + Wasabi + DO Spaces + ...)
|
|
222
|
+
- **0.0.9** (2026-04-25) — generic remote data layer + classification-routed bifurcation
|
|
223
|
+
- **0.0.8** (2026-04-25) — full tamper-proof bar (signed checkpoints, rollback detection)
|
|
224
|
+
- **0.0.7** (2026-04-25) — traceability hardening + dynamic PK/FK schema declarations
|
|
225
|
+
- **0.0.6** (2026-04-25) — security-focused JSON parsing + schema validation
|
|
226
|
+
- **0.0.5** (2026-04-25) — session & storage local backend
|
|
227
|
+
- **0.0.4** (2026-04-25) — audit chain, consent log, subject rights
|
|
228
|
+
- **0.0.3** (2026-04-25) — db, query builder, field-crypto, migrations
|
|
229
|
+
- **0.0.2** (2026-04-25) — vault & key management
|
|
230
|
+
- **0.0.1** (2026-04-25) — foundation
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 blamejs contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|
package/LTS-CALENDAR.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# LTS calendar
|
|
2
|
+
|
|
3
|
+
`@blamejs/core` ships on a published major cadence. Each major receives
|
|
4
|
+
**18 months of security-only patches** starting the day the next major is
|
|
5
|
+
published. Feature backports are not promised.
|
|
6
|
+
|
|
7
|
+
| Version | First release | Security patches through | Node minimum | KEM | Cipher | KDF | Sigs |
|
|
8
|
+
|---------------|---------------|-----------------------------|---------------|----------------------|-----------------------|----------|-----------------------|
|
|
9
|
+
| `v0.x` (pre-1.0) | 2026-04-25 | until v1.0 ships | 24 | ML-KEM-1024 + P-384 | XChaCha20-Poly1305 | SHAKE256 | SLH-DSA-SHAKE-256f |
|
|
10
|
+
| `v1.x` | TBD | first release + 18 months | current LTS | ML-KEM-1024 + P-384 | XChaCha20-Poly1305 | SHAKE256 | SLH-DSA-SHAKE-256f |
|
|
11
|
+
|
|
12
|
+
## What "security patches" means
|
|
13
|
+
|
|
14
|
+
- Critical and high-severity vulnerabilities in the framework's own code.
|
|
15
|
+
- Vendored-dep CVE refreshes (the SECURITY.md commitment of "vendored-dep refresh release within 7 days of an upstream patch landing for High / Critical CVEs" applies on the LTS line too).
|
|
16
|
+
- Crypto envelope updates required by NIST / IETF deprecations of the active KEM / Cipher / KDF / Sig algorithms.
|
|
17
|
+
- **Not** included: feature backports, performance improvements, or non-security bug fixes. Operators who want those upgrade to the current major.
|
|
18
|
+
|
|
19
|
+
## Algorithm posture
|
|
20
|
+
|
|
21
|
+
The KEM / Cipher / KDF / Sig columns list the active envelope IDs for **new** encryptions on that major. Old data encrypted under prior majors continues to decrypt unchanged via the algorithm-ID-in-envelope-header pattern (see [SECURITY.md → Cryptographic stack](SECURITY.md#cryptographic-stack)). When an algorithm is added or deprecated, the change ships as a minor on the current major and the LTS row is updated in the same commit.
|
|
22
|
+
|
|
23
|
+
## Node minimum policy
|
|
24
|
+
|
|
25
|
+
The "Node minimum" column is the lowest Node major the framework supports for that line. It tracks Node's own active-LTS schedule: a new blamejs major adopts whatever Node major is currently the active LTS. Once on the LTS line, the Node minimum is frozen for that major's security-patch window — operators on the LTS line don't get forced onto a newer Node mid-window.
|
|
26
|
+
|
|
27
|
+
## Pre-1.0 caveat
|
|
28
|
+
|
|
29
|
+
`v0.x` has no LTS commitment. Every release may change something operators depend on; the algorithm posture is intentionally evolving. Read [CHANGELOG.md](CHANGELOG.md) before upgrading across more than a few patches at a time. The LTS calendar takes effect at v1.0.
|
package/MIGRATING.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Migrating
|
|
2
|
+
|
|
3
|
+
Operator-facing migration recipes per breaking change. Each entry below is a `deprecate()`-marked surface in the framework — the running app will warn about it (with `BLAMEJS_DEPRECATIONS=warn` set, or by default outside production) before the noted removal version. Re-run `node scripts/gen-migrating.js` before each release; the file is committed so operators can diff it against the prior tag.
|
|
4
|
+
|
|
5
|
+
## No active deprecations
|
|
6
|
+
|
|
7
|
+
The framework has no `deprecate()`-marked surface awaiting removal.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
blamejs
|
|
2
|
+
Copyright 2026 blamejs contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the blamejs project
|
|
5
|
+
(https://blamejs.com).
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0. See LICENSE for the full text.
|
|
8
|
+
|
|
9
|
+
================================================================================
|
|
10
|
+
Third-Party Components
|
|
11
|
+
================================================================================
|
|
12
|
+
|
|
13
|
+
blamejs vendors third-party libraries under lib/vendor/ rather than peer-
|
|
14
|
+
depending them through npm. Each vendored component retains its original
|
|
15
|
+
copyright and license. Bundle versions and source SHAs are tracked in
|
|
16
|
+
lib/vendor/MANIFEST.json.
|
|
17
|
+
|
|
18
|
+
--------------------------------------------------------------------------------
|
|
19
|
+
Component: @noble/ciphers
|
|
20
|
+
Version: 2.2.0
|
|
21
|
+
Source: https://github.com/paulmillr/noble-ciphers
|
|
22
|
+
License: MIT
|
|
23
|
+
Copyright: Copyright (c) 2023 Paul Miller (https://paulmillr.com)
|
|
24
|
+
Used for: XChaCha20-Poly1305 authenticated encryption (lib/crypto.js,
|
|
25
|
+
lib/vault-wrap.js, via lib/vendor/noble-ciphers.cjs)
|
|
26
|
+
--------------------------------------------------------------------------------
|
|
27
|
+
Component: argon2 (node-argon2)
|
|
28
|
+
Version: 0.44.0
|
|
29
|
+
Source: https://github.com/ranisalt/node-argon2
|
|
30
|
+
License: MIT
|
|
31
|
+
Copyright: Copyright (c) 2017 Ranieri Althoff
|
|
32
|
+
Used for: Argon2id passphrase-derived key derivation in the vault wrap
|
|
33
|
+
format (lib/vault-wrap.js, via lib/vendor/argon2/). Native
|
|
34
|
+
prebuilds shipped for darwin-{arm64,x64}, freebsd-{arm64,x64},
|
|
35
|
+
linux-{arm,arm64,x64}, win32-x64.
|
|
36
|
+
--------------------------------------------------------------------------------
|
|
37
|
+
Component: @simplewebauthn/server
|
|
38
|
+
Version: 13.3.0
|
|
39
|
+
Source: https://github.com/MasterKale/SimpleWebAuthn
|
|
40
|
+
License: MIT
|
|
41
|
+
Copyright: Copyright (c) Matthew Miller
|
|
42
|
+
Used for: WebAuthn / passkey registration + authentication response
|
|
43
|
+
verification (lib/passkey.js, via lib/vendor/simplewebauthn-
|
|
44
|
+
server.cjs).
|
|
45
|
+
--------------------------------------------------------------------------------
|
|
46
|
+
Component: @peculiar/x509 + pkijs (peculiar-pki bundle)
|
|
47
|
+
Version: @peculiar/x509 2.0.0, pkijs 3.4.0
|
|
48
|
+
Source: https://github.com/PeculiarVentures/x509
|
|
49
|
+
https://github.com/PeculiarVentures/PKI.js
|
|
50
|
+
License: MIT
|
|
51
|
+
Copyright: Copyright (c) Peculiar Ventures
|
|
52
|
+
Used for: Pure-JS mTLS CA. Self-signed CA generation (ECDSA P-384, SHA-384),
|
|
53
|
+
leaf-cert signing for client certificates, PKCS#12 packaging
|
|
54
|
+
(PBES2 + AES-256-CBC + PBKDF2-HMAC-SHA-512, 2,000,000 iterations).
|
|
55
|
+
Wired into b.mtlsCa via lib/mtls-engine-default.js, backed by the
|
|
56
|
+
bundle lib/vendor/pki.cjs (also includes reflect-metadata,
|
|
57
|
+
asn1js, pvtsutils, pvutils, and the @peculiar/asn1-* schema
|
|
58
|
+
chain).
|
|
59
|
+
--------------------------------------------------------------------------------
|
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# blamejs
|
|
2
|
+
|
|
3
|
+
**The Node framework that owns its stack.**
|
|
4
|
+
|
|
5
|
+
One install. One upgrade path. One place to look when something breaks — no blame to pass between forty transitive dependencies you didn't choose.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Why blamejs
|
|
10
|
+
|
|
11
|
+
The modern Node app is a 1,200-package supply-chain liability with no LTS calendar, no curator, and no accountability. Frameworks peer-depend their internals onto you and call it modularity. blamejs takes the opposite stance:
|
|
12
|
+
|
|
13
|
+
- **Vendored standard library.** Auth, sessions, jobs, mail, storage, crypto, ORM, templating — bundled with the framework, not hunted on npm. Your `package.json` has one entry.
|
|
14
|
+
- **Security as a default, not a config flag.** Post-quantum-aware crypto envelopes, sealed-by-default storage, server-rendered output, CSRF/origin/bot defenses wired in from line zero.
|
|
15
|
+
- **Server-rendering first.** HTML out of the box; client JS is opt-in islands, not the foundation.
|
|
16
|
+
- **A real LTS calendar.** Major versions on a published cadence with documented deprecation windows. No silent semver-major surprises in transitive deps.
|
|
17
|
+
|
|
18
|
+
## Status
|
|
19
|
+
|
|
20
|
+
Pre-1.0. The framework is usable end-to-end — envelope-versioned PQC crypto, sealed storage, HTTP router with a full middleware stack, vault, sessions, permissions, audit chain, scheduler, jobs, notify, mail, websocket, i18n, cluster mode, backup/restore, a wiki reference app under `examples/wiki/`. Operators can build production apps on it today; the surface is still subject to change before 1.0.
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
var b = require("@blamejs/core");
|
|
24
|
+
|
|
25
|
+
(async function () {
|
|
26
|
+
var app = await b.createApp({
|
|
27
|
+
dataDir: "./data",
|
|
28
|
+
routes: function (router) {
|
|
29
|
+
router.get("/", function (req, res) {
|
|
30
|
+
b.render.htmlString(res, "<h1>Hello from blamejs</h1>");
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
await app.listen({ port: 3000 });
|
|
35
|
+
})();
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Requirements:** Node.js 24+ (current active LTS).
|
|
39
|
+
|
|
40
|
+
## CLI
|
|
41
|
+
|
|
42
|
+
`blamejs` ships an operator-facing CLI for the recurring ops work. Each subcommand boots a headless app instance from `--data-dir` (no HTTP listener), runs the operation, and shuts down. Same vault + DB + audit chain the running app uses.
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
blamejs migrate up | down | status --db <path> [--dir <path>]
|
|
46
|
+
blamejs seed run | status --db <path> --env <name> [--dir <path>]
|
|
47
|
+
blamejs vault status | seal | unseal | rotate --data-dir <path>
|
|
48
|
+
blamejs backup inspect | verify | extract --bundle <dir>
|
|
49
|
+
blamejs api-key issue | revoke | list | rotate | verify --data-dir <path> --namespace <ns>
|
|
50
|
+
blamejs mtls status | show-cert | init | issue | issue-p12 --data-dir <path>
|
|
51
|
+
blamejs audit archive | export | verify-bundle | purge
|
|
52
|
+
blamejs api-snapshot capture | compare --file <path>
|
|
53
|
+
blamejs dev --command <cmd> [--watch <dir>...]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Pass `--help` to any subcommand for the full flag list. Passphrases for crypto-backed operations resolve from the appropriate env var (`BLAMEJS_VAULT_PASSPHRASE`, `BLAMEJS_BACKUP_PASSPHRASE`, `BLAMEJS_AUDIT_PASSPHRASE`) so they don't end up in shell history.
|
|
57
|
+
|
|
58
|
+
## Reference app + deployment
|
|
59
|
+
|
|
60
|
+
`examples/wiki/` is a complete production-ready operator-built blamejs app — the wiki you're looking at when you visit `blamejs.app`. It demonstrates every framework primitive in real usage and ships with `Dockerfile`, `docker-compose.yml` (dev), `docker-compose.prod.yml` (Caddy + GHCR image), and a published OCI image at `ghcr.io/blamejs/blamejs-wiki:<tag>` (multi-arch amd64/arm64, cosign-signed via GitHub OIDC, Trivy-scanned, SHA3-512 digest).
|
|
61
|
+
|
|
62
|
+
See [`examples/wiki/DEPLOY.md`](examples/wiki/DEPLOY.md) for the full deployment walkthrough, including the operator-facing environment-variable matrix (`WIKI_*` and `BLAMEJS_*` keys) and the pin-to-version workflow for production updates.
|
|
63
|
+
|
|
64
|
+
## Vendored dependencies
|
|
65
|
+
|
|
66
|
+
All runtime dependencies are committed to the repo — no transitive npm install at runtime, no `node_modules` lookup path for production. Server-side deps are bundled via `scripts/vendor-update.sh`:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
./scripts/vendor-update.sh --check # see what's outdated
|
|
70
|
+
./scripts/vendor-update.sh --diff @noble/ciphers # see changelog before bumping
|
|
71
|
+
./scripts/vendor-update.sh @noble/ciphers 2.2.0 # bundle + commit a new version
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
| Package | Version | Author | Purpose |
|
|
75
|
+
|---|---|---|---|
|
|
76
|
+
| [`@noble/ciphers`](https://github.com/paulmillr/noble-ciphers) | 2.2.0 | [Paul Miller](https://github.com/paulmillr) | XChaCha20-Poly1305 AEAD |
|
|
77
|
+
| [`@simplewebauthn/server`](https://github.com/MasterKale/SimpleWebAuthn) | 13.3.0 | [Matthew Miller](https://github.com/MasterKale) | WebAuthn / passkey verification |
|
|
78
|
+
| [`argon2`](https://github.com/ranisalt/node-argon2) | 0.44.0 | [Ranieri Althoff](https://github.com/ranisalt) | Password hashing (native prebuilds, 8 platforms) |
|
|
79
|
+
| [`@peculiar/x509`](https://github.com/PeculiarVentures/x509) + [`pkijs`](https://github.com/PeculiarVentures/PKI.js) | 2.0.0 + 3.4.0 | [Peculiar Ventures](https://github.com/PeculiarVentures) | Pure-JS mTLS CA — ECDSA P-384 cert signing, PKCS#12 packaging (no openssl CLI) |
|
|
80
|
+
| [`prismjs`](https://prismjs.com/) | 1.30.0 | [Lea Verou + contributors](https://github.com/PrismJS/prism) | Syntax highlighting in the example wiki's code blocks (browser-side) |
|
|
81
|
+
|
|
82
|
+
These libraries are exceptional work — blamejs wouldn't exist without them. All are MIT licensed. Per-package version, license, and provenance live in two manifests: [`lib/vendor/MANIFEST.json`](lib/vendor/MANIFEST.json) for the framework's server-side bundles and [`examples/wiki/public/vendor/MANIFEST.json`](examples/wiki/public/vendor/MANIFEST.json) for the wiki app's browser-side bundle. The framework's [`NOTICE`](NOTICE) file carries the upstream attributions.
|
|
83
|
+
|
|
84
|
+
## Why "blamejs"
|
|
85
|
+
|
|
86
|
+
Because when something breaks, `blame` should know exactly where it lives. We own the stack so you don't have to chase the fault across an ecosystem.
|
|
87
|
+
|
|
88
|
+
## Contributing
|
|
89
|
+
|
|
90
|
+
Patches welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for the dev setup, house rules (zero npm runtime deps, PQC-only crypto, audit-on-every-action, no-MVP), and the PR loop. New to the codebase? Start with [ARCHITECTURE.md](ARCHITECTURE.md) for the orientation map.
|
|
91
|
+
|
|
92
|
+
Community standards: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) (Contributor Covenant 2.1). Be excellent.
|
|
93
|
+
|
|
94
|
+
## Security
|
|
95
|
+
|
|
96
|
+
Threat model, supported versions, vulnerability disclosure: [SECURITY.md](SECURITY.md). Do **not** file public issues for security bugs — email `security@blamejs.app`.
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
Apache-2.0. See [LICENSE](LICENSE) for the full text and [NOTICE](NOTICE) for attribution of vendored components.
|
package/bin/blamejs.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
// Thin entrypoint — all dispatch logic lives in lib/cli.js so it can
|
|
4
|
+
// be driven from tests without spawning a child process.
|
|
5
|
+
var cli = require("../lib/cli");
|
|
6
|
+
|
|
7
|
+
cli.main(process.argv.slice(2)).then(
|
|
8
|
+
function (code) { process.exit(typeof code === "number" ? code : 0); },
|
|
9
|
+
function (err) {
|
|
10
|
+
process.stderr.write("blamejs: " + ((err && err.stack) || String(err)) + "\n");
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
);
|