Skip to content

Releases

capsid v0.4.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 07:43

Official 0.4.0 release (runtime version 0.4.0, public C ABI v8,
FetchRPC v4-only), superseding both v0.2.2 and the 0.3.x beta series as
the current Capsid release.

Highlights

  • Dual-Runtime Trusted Bindings (Binding RPC v2): Runs Host-authored
    capsid/binding-v1 capability packages in isolated per-Binding QuickJS heaps
    inside the same OS-sandboxed worker with zero overhead when no Binding is
    attached.
    • Fair multi-runtime scheduling & three-tier quotas: Immediate round-robin
      scheduling with bounded per-turn call/frame/job budgets; atomic per-request,
      per-Binding, and per-worker ledgers for calls, streams, handles, queued
      frames, and queued bytes.
    • Call options, structured remote errors & late-result disposal: Supports
      { signal, timeoutMs } (deadline tightening only), typed remote errors
      (DOMException, QuotaExceededError, TypeError, RangeError,
      SyntaxError, URIError, Error) immune to hostile getters/proxies, and
      recursive cycle-safe disposal of late-resolved streams and handles.
    • Bidirectional credit-based Web Stream proxies: ReadableStream and
      WritableStream cross User ↔ Binding with 64 KiB credit windows/chunk
      slicing, 2 MiB staging ceilings, structured cancel/abort/error
      propagation, and strict cross-request ownership fencing.
    • Controlled Request and Response proxies: Inline fast path
      (<= 64 KiB) and credit-backed streaming bodies, immutable headers,
      multi-value Set-Cookie, Request.signal propagation, and atomic rollback
      on rejected batches.
    • Native-branded RpcTarget remote object handles: Export stateful
      sessions and nested cursors as frozen null-prototype stubs with bounded
      leases (leaseMs), explicit .dispose() / [Symbol.dispose]() /
      [Symbol.asyncDispose](), fault-isolated bounded disposal, asynchronous
      QuickJS GC-finalizer fallback, and cross-request isolation.
  • Config v2 & Elastic OS Process Pools: Orthogonal capsid/host-v2 and
    capsid/app-v2 schemas, unified capsid-host --app-dir <dir> local CLI,
    scale-to-zero (minReady: 0), bounded cold queueing, two-stage tenant-fair
    eviction, asynchronous OS page reclamation, live-traffic rolling drain, and
    delegated tenant cgroup v2 memory.max accounting.
  • Full-Duplex WebSockets (FetchRPC v4): Inbound WebSocketPair + 101
    Upgrade (allowHalfOpen, delayed accept(), blob/arraybuffer,
    subprotocols), egress-gated outbound ws/wss, and non-101 gzip HTTP
    Upgrade fallback.
  • Zero-JIT quickjs-turbo & Public C ABI v8: Native register-frame
    interpreters on Linux (x86_64/arm64), macOS Intel (x86_64), and Windows
    (x86_64) with portable C fallback on Apple Silicon and sanitizers.
  • Verified Five-Platform Native Archives: Fully static musl Linux
    (x86_64/arm64), native thin macOS (arm64/x86_64), and static-CRT
    MSVC Windows (x86_64).

Exact Source and Verification

  • Source: 0522d0d7e5abb2d7934832e0afe28670819b495e (tree bda1aec5b73a8229986a8939b3cd3263a0cec232, 5548 tracked entries).
  • Formatting: passed (Attempt 1).
  • Testing validity: all 8 hosted jobs passed (Attempt 1).
  • Tag Release: all 8 validation jobs (Release/LTO WPT + delegated sandbox, ASan, UBSan, TSan, fuzz, POSIX/macOS host library, Windows native host library, hosted evidence index) and all 5 native package jobs passed (Attempt 2; Attempt 1 passed 6 of 7 validation jobs and hit a transient TSan cold-spawn 80 ms queue timeout on host_eviction_tenant_quota_swap_and_rejections, while Testing validity 46224450540 passed TSan 1053/1053 on the identical commit).
Platform Archive SHA-256
darwin-arm64 capsid-0.4.0-darwin-arm64.tar.gz 1d8db000219d3748f770be06532a2833b0d0cd12f98d1c60d3e5614422c3b0bd
darwin-x86_64 capsid-0.4.0-darwin-x86_64.tar.gz 3ece5b89cf0a76bc8cd819c1fedb720e7b906551f0c237037f608897da0320c0
linux-musl-arm64 capsid-0.4.0-linux-musl-arm64.tar.gz 09f406ed8c35ecd4448eb124bbef00adbcfbb30376726d37467d429fe26b74b9
linux-musl-x86_64 capsid-0.4.0-linux-musl-x86_64.tar.gz b091aca0afc6892fccd013fea8ffc587cb5cb1bf30aab520900f210db9ff9e30
windows-x86_64 capsid-0.4.0-windows-x86_64.zip b12829eeb47ac45d997c7801d06bf3768fd57600ce30eea1a1ed6cf5711fea62

Compatibility

  • Public C ABI remains v8 and FetchRPC remains v4-only (compatible with
    v0.3.2-beta.1 embedders and capsid/binding-v1 packages; applications
    upgrading from v0.2.x must rebuild against ABI v8 and migrate to
    capsid/app-v2).
  • Recompile trusted QuickJS bytecode with the matching v0.4.0
    capsid-bytecode-compile because build compatibility identity includes the
    runtime version and overlay manifest.

Install

Install v0.4.0 on Linux or macOS:

curl -fsSL https://github.com/rowanellis-113/capsid/releases/download/v0.4.0/install.sh \
  | CAPSID_REPO=rowanellis-113/capsid bash -s -- v0.4.0

On Windows PowerShell (x86_64), download capsid-0.4.0-windows-x86_64.zip and
its .sha256 sidecar, verify the checksum, and extract into a clean directory.
Do not mix capsid-host, capsid-worker, capsid-bytecode-compile, or the
C/C++ SDK across builds.

See Use Binding RPC v2,
Use WebSockets,
and Releases and Installation.

Linux strict sandboxing requires the documented kernel and delegation
prerequisites. Native macOS and Windows builds are for trusted development and
integration. The pinned compatibility profile retains five raw WPT file
failures; green CI is not full standards conformance. The latest accepted local
WSL2 benchmark session (24671d9 on dev/v0.3.2) measures a local Release/LTO
rebuild and does not measure the distributed v0.4.0 release archives directly.

capsid v0.3.2-beta.1

Choose a tag to compare

@rowanellis-113 rowanellis-113 released this 28 Nov 00:09

Experimental 0.3.2-beta release (runtime version 0.3.2, public C ABI v8,
FetchRPC v4-only), published as the default GitHub Latest release
(v0.3.2-beta.1). The maintained 0.2.x stable line (v0.2.2) remains
available by explicit tag.

Highlights

  • Config v2 (capsid/host-v2 and capsid/app-v2) & Unified Local CLI:
    Retires host-v1/app-v1 and legacy --mode single-worker / static-pool
    flags in favor of one managed-isomorphic capsid-host --app-dir <dir> local
    Host across Linux, macOS, and Windows.
  • Elastic OS Process Pools (Linux Managed Mode): Scale-to-zero (minReady: 0),
    bounded cold-request queueing, two-stage tenant-fair eviction (85% / 75%
    hysteresis), immediate capacity slot handoff with asynchronous worker OS exit
    reclamation, live-traffic rolling drain up to drain_deadline, and shared
    delegated tenant cgroup v2 memory.max accounting.
  • Public C ABI v8 & FetchRPC v4-only: Removes legacy ABI v7 and FetchRPC v3
    paths, adds Build Info v2 and Capability Policy v2, and keeps quickjs-turbo
    v0.15.1-turbo.8 zero-JIT native register-frame interpreters across Linux
    (x86_64/arm64), macOS Intel (x86_64), and Windows (x86_64).
  • Verified Five-Platform Native Archives: Fully static musl Linux
    (x86_64/arm64), native thin macOS (arm64/x86_64), and static-CRT
    MSVC Windows (x86_64).

Exact Source and Verification

  • Source: 288955124e23eb88060b8267ea93e3d0e6a4fbbe (tree 8e5bafde59408ffeb2344e0bdae15b699c939d3b, 5515 tracked entries).
  • Formatting: passed.
  • Testing validity: all 8 hosted jobs passed (Attempt 2).
  • Tag Release: all 8 validation jobs (Release/LTO WPT + delegated sandbox, ASan, UBSan, TSan, fuzz, POSIX/macOS host library, Windows native host library, hosted evidence index) and all 5 native package jobs passed (Attempt 6; Attempts 1–5 experienced hosted macos-15 runner capacity timeout before checkout).
Platform Archive SHA-256
darwin-arm64 capsid-0.3.2-darwin-arm64.tar.gz a10ccb467afa179a833b5442796f1e21f2c4b9e6f91c9341ac418dad43763a01
darwin-x86_64 capsid-0.3.2-darwin-x86_64.tar.gz dc1203d5b99856b9e73c3d8c894233cd75baaf044a82444da718617573988338
linux-musl-arm64 capsid-0.3.2-linux-musl-arm64.tar.gz 46680b08c2a2c1634d15d4d0d759cea721dfcf31a3af163bd12b6a0449d0453b
linux-musl-x86_64 capsid-0.3.2-linux-musl-x86_64.tar.gz df75a50ab2eeae33e421e866f51ce0933fccd8af04e13d0d51126058bdffc09a
windows-x86_64 capsid-0.3.2-windows-x86_64.zip 0d43eb849e2415bf507d2951628bc2fad31e255c76fbd81103e3c7aa0b4a0845

Install

Install v0.3.2-beta.1 on Linux or macOS:

curl -fsSL https://github.com/rowanellis-113/capsid/releases/download/v0.3.2-beta.1/install.sh \
  | CAPSID_REPO=rowanellis-113/capsid bash -s -- v0.3.2-beta.1

On Windows PowerShell (x86_64), verify the ZIP against its .sha256 sidecar
and extract it into a clean directory. Do not mix the Host, worker, compiler, or
SDK across builds; rebuild embedders against ABI v8 and recompile trusted
bytecode for the matching compatibility ID. See the
installation guide
for OS/architecture selection and verification.

Linux strict sandboxing requires the documented kernel and delegation
prerequisites. Native macOS and Windows builds are for trusted development and
integration. The pinned compatibility profile retains five raw WPT file
failures; green CI is not full standards conformance. The accepted dev/v0.3.2
local WSL2 benchmark session (24671d9) measures a local Release/LTO rebuild
and does not measure the distributed release archives directly.

capsid v0.3.1-beta.1

Choose a tag to compare

@rowanellis-113 rowanellis-113 released this 22 Nov 13:10

Experimental 0.3.1-beta release (runtime version 0.3.1, public C ABI v7),
published as the default GitHub Latest release (v0.3.1-beta.1). The
maintained 0.2.x stable line (v0.2.2) remains available by explicit tag.

Changes

  • Upgrades the embedded JavaScript engine from QuickJS-NG 0.15.1 to
    quickjs-turbo v0.15.1-turbo.8 (8fcb4751a66986bd42b11de3012e967d77790923)
    via patches/txiki/0079-quickjs-turbo-integration.patch while keeping C ABI
    v7 and FetchRPC v3/v4 wire compatibility unchanged.
  • Enables zero-JIT native register-frame interpreters on Linux x86_64/ARM64
    (glibc and static Alpine musl), macOS Intel x86_64 and Windows x86_64
    (portable C backend with Hybrid GC on Apple Silicon and sanitizers).
  • Configures worker startup explicitly via QJS_SetTurboDefaults
    (own_bytecode_tail = QJS_TURBO_OFF, property_ic = QJS_TURBO_ON,
    property_ic_warmup = 12) plus a pre-READY JS_PurgePropertyIC(rt) pass
    so micro-container density and steady-state Property IC throughput coexist.
  • Ships verified five-platform native archives for fully static musl Linux
    (x86_64/ARM64), macOS (Apple Silicon/Intel) and Windows (x86_64 MSVC/static CRT).

Exact Source and Verification

  • Source: 845ae5dee5833c1bed1c2630cfb65e6ed76af7d7 (tree 7894f8a984c7344a904ac0e08c6099e282036b1a).
  • Formatting: passed.
  • Tag Release: all 8
    validation jobs (Release/LTO WPT + delegated sandbox, ASan, UBSan, TSan,
    fuzz, POSIX/macOS host library, Windows native host library, hosted evidence
    index) and all 5 native package jobs passed on attempt 1. Branch
    Testing validity
    attempt 1 is retained.
Platform Archive SHA-256
darwin-arm64 capsid-0.3.1-darwin-arm64.tar.gz c58ea86c9343f06716467c84995704c60ef7ae3b39b0715059208a66007d5568
darwin-x86_64 capsid-0.3.1-darwin-x86_64.tar.gz c22e3b67fedf540f0429edf7fd0dade197c5cc57d93a516c9207fa11b14feb60
linux-musl-arm64 capsid-0.3.1-linux-musl-arm64.tar.gz bb37dc04989bf61892524086c4683cf9d86b269184877dd24ab91e3a27d38aa9
linux-musl-x86_64 capsid-0.3.1-linux-musl-x86_64.tar.gz 11da6b7e60f06e6978bc7fbd24bad0f6dbc35a782b36e220ce7077281addd3b7
windows-x86_64 capsid-0.3.1-windows-x86_64.zip 2d92fe21f8f02b85eb33086785683c5f8f7fb5b15f40b52c5d08da3c16ebb38b

Install

Install v0.3.1-beta.1 on Linux or macOS:

curl -fsSL https://github.com/rowanellis-113/capsid/releases/download/v0.3.1-beta.1/install.sh \
  | CAPSID_REPO=rowanellis-113/capsid bash -s -- v0.3.1-beta.1

On Windows PowerShell (x86_64), verify the ZIP against its .sha256 sidecar
and extract it into a clean directory. Do not mix the Host, worker, compiler or
SDK across builds; recompile trusted bytecode for the matching compatibility ID.
See the installation guide
for OS/architecture selection and verification.

Linux strict sandboxing requires the documented kernel and delegation
prerequisites. Native macOS and Windows builds are for trusted development and
integration. The pinned compatibility profile retains five raw WPT file
failures; green CI is not full standards conformance. The accepted v0.3.1-beta.1
local WSL2 benchmark session (6d4cc61) precedes the Alpine musl build-script
and documentation commits in 845ae5d and does not measure the distributed
release archives directly.

Capsid v0.3.0-beta.5

Choose a tag to compare

@ErosZy ErosZy released this 21 Nov 04:33

Experimental prerelease (runtime version 0.3.0, public C ABI v7). Select
v0.3.0-beta.5 explicitly; GitHub's default download and the stable
v0.2.2 release are unchanged.

Changes

  • JavaScript hot-path optimizations for Fetch, URL parsing and request
    dispatch. Request and Response body consumers no longer share buffers with
    application streams; cloning a fixed byte body takes one independent
    snapshot without invoking Symbol.species.
  • Ordinary Fetch, HTTP codec, WebSocket Upgrade, Upgrade Lifetime and Proxy
    fixtures bind both localhost loopback families. Windows validity runs retain
    per-case JSON evidence even on failure, without relaxing timing or
    behavioral checks.
  • Native packages are available for fully static musl Linux (x86_64/ARM64),
    macOS (Apple Silicon/Intel) and Windows (x86_64 MSVC/static CRT).

Exact Source and Verification

  • Source: c7a80b9bdafe36d415a440be7ed3384f7830d4f8 (tree 876e29c2792899b654310fea72aac979bd8bb48f).
  • Testing validity, attempt 2: all 8 jobs passed. Attempt 1 is retained.
  • Formatting: passed.
  • Tag Release: all 8
    validation jobs and all 5 package jobs passed on attempt 1. Archives,
    original checksum files, build identity, file manifests, executable CPU
    headers and repository-scoped SPDX metadata were independently verified.
Platform Archive SHA-256
darwin-arm64 capsid-0.3.0-darwin-arm64.tar.gz 64a3b0fa5593e882d6f7074b45b90646a9c7a4014681994935769b64b48cac9d
darwin-x86_64 capsid-0.3.0-darwin-x86_64.tar.gz f4c336ce20004e86a16649a708a368fa517b32d9c9ac53f3a37414fc070f12a0
linux-musl-arm64 capsid-0.3.0-linux-musl-arm64.tar.gz e0385f07429d521c969797b0d5660fb5c353b5dc6da16aa95f0f19bceeb8c042
linux-musl-x86_64 capsid-0.3.0-linux-musl-x86_64.tar.gz 806282e4e72243caca5f2c8288a29831eb3963818213a11dc9652424551d7d78
windows-x86_64 capsid-0.3.0-windows-x86_64.zip 7ed0a6dfe9cb3b77fa52aeda7e6f45becfc34eba7bf43566e6f4661896a00c0c

Install

Select the prerelease explicitly on Linux or macOS:

curl -fsSL https://github.com/rowanellis-113/capsid/releases/download/v0.3.0-beta.5/install.sh \
  | CAPSID_REPO=rowanellis-113/capsid bash -s -- v0.3.0-beta.5

On Windows, verify the ZIP against its .sha256 sidecar and extract it to
a new directory. Do not mix the Host, worker, compiler or SDK across builds;
recompile trusted bytecode for the matching compatibility ID. See the
installation guide
for OS/architecture selection and verification.

Linux strict sandboxing requires the documented kernel and delegation
prerequisites. Native macOS and Windows builds are for trusted development and
integration. The pinned compatibility profile retains five raw WPT file
failures; green CI is not full standards conformance. The archived
0.3.0-beta.4 development measurement (82eaab9) does not measure this release.

capsid v0.3.0-beta.3

Choose a tag to compare

@ErosZy ErosZy released this 18 Nov 14:21

Experimental 0.3.0-beta release (v0.3.0-beta.3; runtime version string 0.3.0; public C ABI v7), not a stable-production recommendation. Set as the GitHub Latest release for convenient installation while v0.2.2 remains the latest stable 0.2.x release.

Highlights

  • Native five-platform archive matrix: linux-musl-x86_64, linux-musl-arm64, darwin-arm64, darwin-x86_64, and windows-x86_64 built on separate native CPU runners (fully static musl Linux builds, thin native macOS builds, MSVC static-CRT Windows archive).
  • Architecture-aware install.sh selecting the exact OS/CPU archive, with legacy capsid-*-linux-musl.tar.gz compatibility fallback permitted only on x86_64.
  • Pinned C/C++, JavaScript, and Python source formatting (clang-format 23.1.5, prettier 3.8.3, ruff 0.17.5) while preserving raw fixtures, encoding locks, generated data, and historical captures.

Exact Source and Verification

Archives

Each archive ships with its .sha256 sidecar and includes capsid-host, capsid-worker, capsid-bytecode-compile, C/C++ SDK headers/library, CMake config, build identity metadata, file manifest, licenses, and repository-scoped SPDX SBOM.

Platform Archive SHA-256
darwin-arm64 capsid-0.3.0-darwin-arm64.tar.gz 6ab13fbd331c5ef250ea4f38f00ba5e0aa6b84cb6cf9733e9b7d25bd780185bd
darwin-x86_64 capsid-0.3.0-darwin-x86_64.tar.gz a713ee93eff445284c5315d3de23e32e5137c557058d607a1c978d1ec449f823
linux-musl-arm64 capsid-0.3.0-linux-musl-arm64.tar.gz a2faae5e7499ccf36c69f4050d0cf92931239327c37b146dc32b14125c7ec4fd
linux-musl-x86_64 capsid-0.3.0-linux-musl-x86_64.tar.gz 97f907a5718df74156b489464ea49b1261b914957b02ef05179b8fada2a5fcb5
windows-x86_64 capsid-0.3.0-windows-x86_64.zip 7413bc7d3758532d76753e1d911c2a9557c49d7438db88a6c45dcce3ad807d6e

Compatibility and Limitations

  • Public C ABI remains v7; FetchRPC defaults to v3, with additive v4/WebSocket support available only by explicit negotiation. Keep Host, worker, compiler, and SDK binaries from the same build together and recompile trusted bytecode for the matching compatibility ID.
  • Linux strict sandboxing requires the documented kernel/delegation prerequisites for untrusted workloads. Native macOS/Windows and local non-isolated modes are trusted-code development/integration modes, not production isolation.
  • App pidsMax is schema-recognized but is not effective per-App PID enforcement in this release.
  • Five retained raw WPT failure files (Headers basic/errors, two promise-rejection files, and MessagePort initial-disabled behavior) and genuine prerequisite skips remain explicit under CAPSID-WORKERD-v1.20261010.1-default-v2. Green compatibility CI does not claim full standards conformance.
  • Accepted local performance snapshot 485b29b remains source-bound to its original measurement session and is not a new measurement of v0.3.0-beta.3.

Installation

Install the current 0.3.0-beta release (currently set as GitHub Latest):

curl -fsSL https://github.com/ErosZy/capsid/releases/latest/download/install.sh | bash

Install v0.3.0-beta.3 explicitly:

curl -fsSL https://github.com/ErosZy/capsid/releases/download/v0.3.0-beta.3/install.sh | bash -s -- v0.3.0-beta.3

Install the stable v0.2.2 release explicitly:

curl -fsSL https://github.com/ErosZy/capsid/releases/download/v0.2.2/install.sh | bash -s -- v0.2.2

Windows users should download capsid-0.3.0-windows-x86_64.zip and its .sha256 sidecar from this Release, verify SHA-256, and extract to a new directory.

capsid v0.3.0-beta.2

capsid v0.3.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@ErosZy ErosZy released this 17 Nov 00:43

Experimental prerelease for evaluation, not a stable-production recommendation.
The runtime reports version 0.3.0; this distribution is explicitly beta.2.

Beta.1 was not published: its tag-triggered validation failed during Git
checkout before builds/tests. Its tag and failure logs are preserved. Beta.2
pins validation checkouts to the event commit SHA while retaining recursive
submodules, vendor tag policy, original test selections and budgets.

Highlights

  • First-party managed Host and expanded Fetch, streams, WebSocket, capability,
    lifecycle and cross-platform regression coverage.
  • Compatible Headers normalization fast paths, with the non-ASCII/error paths
    preserved. Benchmark deployment readiness waits for the matching operation
    to commit before its single first business request.
  • Host-only memory snapshots now cross an already-scheduled token-reclamation
    tick. This fixes pre-reclaim snapshots after cancellation; it does not add
    forced GC, relax memory assertions or extend cancellation/poison deadlines.
  • Permanent pipelined cancellation/snapshot tests check all replies, natural
    exit, and that intentionally retained live allocations remain observable.
  • Managed test backends keep the Host's kernel-selected listener owned for its
    lifetime. Discovery verifies child process identity and socket ownership,
    rather than selecting and releasing a supposedly unused port before bind.
  • DNS/dial lifecycle probes wait for actual ACCEPT publication within the
    original observation window, rather than treating an earlier progress-phase
    callback as a command-queue barrier. Exact count/type and cleanup checks remain.

Compatibility and limitations

  • Public C ABI remains v7; FetchRPC remains v3. No SDK/vendor update is included
    in the final memory-snapshot fix. Recompile trusted bytecode for this build's
    compatibility identity.
  • Packages target Linux x86_64 musl, macOS arm64 and Windows x86_64 static CRT.
    Other target/platform combinations are not claimed by these release assets.
  • CI uses the existing pinned workerd compatibility profile, not a claim of
    complete Web Platform Tests conformance. Five known raw WPT file failures
    and genuine prerequisite skips remain explicitly reported. In particular,
    Headers basic/errors, two promise-rejection files, and MessagePort initial
    disabled behavior remain compatibility limitations.
  • Instrumented-memory acceptance is separate from production RSS qualification.
    Passing required CI gates does not close every historical failure cause or
    the complete v0.3.0 R1-R9 programme.
  • Earlier accepted local performance evidence belongs to its frozen Headers
    source. It is not relabeled as a new measurement of this final snapshot fix.
    Historical v0.2.2 reference data has not been changed or rerun.

Publication gate and installation

Publication requires the exact frozen product to pass full Release/LTO,
ASan/UBSan/TSan, macOS, Windows and fuzz CI, same-source Debug and uninterrupted
1800-second soak, plus all three package/checksum/SBOM checks. Failed campaigns
remain recorded. The final GitHub release records the qualified commit and run
links; a source-time qualification snapshot is not itself that approval.

Install this beta explicitly (the default installer still selects stable):

curl -fsSL https://github.com/ErosZy/capsid/releases/download/v0.3.0-beta.2/install.sh | bash -s -- v0.3.0-beta.2

Each archive has a SHA-256 sidecar and carries build identity, the package file
manifest, C ABI headers and an SPDX SBOM. This prerelease must not become the
latest stable release.

Final qualification

Qualified source: 87ed4630fa57e360ac0a3a8158218398250c8035 (tree 96bef3a7b0a1acec0cd37be9d470a312046386cb).

capsid v0.2.2

Choose a tag to compare

@github-actions github-actions released this 01 Sep 05:21

Capsid v0.2.2 is a maintenance release that restores the proven v0.2.1
runtime path and removes the unreleased txiki.js/QuickJS-ng optimization
experiments. The public C ABI remains v7 and FetchRPC remains v3.

Highlights

  • Remove the experimental bytecode rewriting and opcode-profiling pipeline.
  • Remove the experimental QuickJS overlay fast paths and their build options.
  • Remove the associated benchmark fixtures, generated evidence, tests, and
    design documentation.
  • Keep the pinned txiki.js/QuickJS-ng runtime and the existing security,
    compatibility, and packaging behavior unchanged.
  • Improve Windows CI compiler-error annotations.

Compatibility

  • No public C ABI changes; the ABI remains v7.
  • No FetchRPC changes; the protocol remains v3.
  • Trusted bytecode should be recompiled for v0.2.2 because the build
    compatibility identity includes the runtime version.

Install

Install the latest stable release:

curl -fsSL https://github.com/ErosZy/capsid/releases/latest/download/install.sh | bash

Install this exact release:

curl -fsSL https://github.com/ErosZy/capsid/releases/download/v0.2.2/install.sh | bash -s -- v0.2.2

Every archive is accompanied by a SHA-256 checksum. The installer verifies the
checksum before extracting files.

capsid v0.2.1

Choose a tag to compare

@github-actions github-actions released this 21 Aug 08:23

Capsid v0.2.1 is a focused patch release for cookie handling in outbound HTTP fetches. The runtime ABI remains at v7 and FetchRPC remains at v3.

Fixes

  • Backport libwebsockets commit da0c875c84e7ee824e83f95c40b302598b84ee98 so Secure and HttpOnly attributes no longer overwrite a cookie's stored name and value. This resolves the failure reported in txiki.js #1064 and preserves Domain cookie semantics.
  • Add a regression test against the actual libwebsockets cookie jar built into Capsid, covering exact name/value persistence, the Secure flag, HttpOnly, and host-only versus domain-cookie behavior.
  • Extend the txiki.js overlay integrity and identity gates to include the new backport.

Compatibility

  • No public C ABI changes; the ABI remains v7.
  • No FetchRPC changes; the protocol remains v3.
  • Existing v0.2.0 applications do not require migration.

Install

Install the latest stable release:

curl -fsSL https://github.com/ErosZy/capsid/releases/latest/download/install.sh | bash

Install this exact release:

curl -fsSL https://github.com/ErosZy/capsid/releases/download/v0.2.1/install.sh | bash -s -- v0.2.1

Every archive is accompanied by a SHA-256 checksum. The installer verifies the checksum before extracting files.

capsid v0.2.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 15:33

Capsid v0.2.0 is the first stable release of the 0.2 line. It promotes the
final v0.2.0-rc.07 implementation after completing the release-candidate
validation cycle. The runtime ABI remains at v7 and FetchRPC remains at v3.

Highlights

  • First-party capsid-host deployment service with single-worker and static
    pool modes, generation-based rollout, health monitoring, admission control,
    routing, CORS, and an administrative API.
  • Binding v1 with trusted host packages, isolated QuickJS runtimes, bounded
    asynchronous RPC, neutral-value transport, capability policy enforcement,
    secret injection, and security audit events.
  • Expanded web-platform support across Fetch, Streams, URL, Encoding, Blob,
    FormData, Web Crypto, Abort APIs, timers, console, and structured clone.
  • Direct-fetch improvements including system DNS resolution, TLS, connection
    reuse, keep-alive pooling, streaming bodies, cancellation, and deterministic
    terminal cleanup.
  • Validated compatibility lanes for Hono 4.12.32, itty-router 5.0.24,
    H3 2.0.1-rc.26, and Elysia 1.4.29.
  • Release packages for Linux x86_64 musl, macOS arm64, and Windows x86_64,
    including the runtime, worker launcher, bytecode compiler, host, static
    library, public headers, CMake metadata, manifest, SBOM, checksums, and
    installer.

Runtime And Web Platform

  • The WinterTC ECMA-429 subset is available through the documented runtime
    surface and is exercised by the maintained WPT-derived suite.
  • Module loading, bytecode validation, request dispatch, response streaming,
    task draining, and cancellation share explicit limits and terminal-state
    behavior.
  • The maintained WPT path registry contains 84 paths, with coverage focused on
    the worker runtime and web-standard primitives rather than service bindings.
  • Worker bundles can use the supported single-file module format and documented
    framework adapters without a Node.js runtime.

Host And Binding V1

  • capsid-host supports one worker or an arbitrary static pool from 1 to 4096
    workers, with per-worker concurrency and queue controls.
  • Linux managed deployment includes generation staging, health gates,
    blue-green activation, rollback-oriented state, and artifact identity checks.
  • Binding packages are host-authored and trusted. Each package runs in a
    separate QuickJS runtime and communicates with workers over the bounded
    Binding v1 protocol.
  • Capability declarations, deny-by-default policy, trusted-bytecode
    attestation, secret handling, and audit records are part of the supported
    security model.

Security And Isolation

  • Linux strict mode combines process isolation with seccomp, Landlock,
    namespaces, resource limits, and cgroup controls where the host supports
    them.
  • Network, filesystem, environment, and binding access remain explicit
    capabilities rather than ambient authority.
  • macOS and Windows builds support local development and compatibility testing;
    Linux strict mode remains the production isolation target for this release.

Performance Baseline

The stable release adopts the conclusion-level measurements collected from the
final v0.2.0-rc.07 binary on a 4C/8T Ubuntu 24.04/WSL2 host:

Scenario Result
JSON 1 KiB throughput 7,261 requests/s
JSON 16 KiB throughput 5,141 requests/s
Stream 1 KiB throughput 4,845 requests/s
Serving memory 5.9 MB PSS host, 6.4 MB per worker
10 KiB bundle cold start 8.34 ms source, 7.29 ms bytecode

The measurements keep their final-RC artifact identity for provenance. See
docs/performance-benchmarks.md for commands, samples, variance, and known
measurement caveats.

Compatibility And Upgrade Notes

  • The public C ABI remains v7. Applications already targeting the v7 ABI do not
    need an ABI migration for this release.
  • FetchRPC remains v3. It is a private host/worker transport and is not a
    Cloudflare Workers protocol compatibility guarantee.
  • The first-party host configuration and administrative APIs are operational
    interfaces for the 0.2 line, but they are still pre-1.0 and may evolve in
    later minor releases.
  • Capsid targets a focused worker runtime and web-platform surface. It is not a
    drop-in Node.js replacement, and Cloudflare service products such as R2 and D1
    are outside the current compatibility scope.
  • The versioned path toward protocol-first WebSocket support, Binding RPC v2,
    module-worker semantics, and broader workerd compatibility is documented in
    ROADMAP.md.

Install

Install the latest stable release:

curl -fsSL https://github.com/ErosZy/capsid/releases/latest/download/install.sh | bash

Install this exact release:

curl -fsSL https://github.com/ErosZy/capsid/releases/download/v0.2.0/install.sh | bash -s -- v0.2.0

Every archive is accompanied by a SHA-256 checksum. The installer verifies the
checksum before extracting files.

capsid v0.2.0-rc.07

capsid v0.2.0-rc.07 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Aug 07:42

This release candidate focuses on deterministic request cleanup, reliable
release installation, and restoring the benchmark evidence pipeline. It also
tightens resource and CORS configuration boundaries discovered during the
rc.06 review.

Highlights

  • Request-terminal cleanup now uses a non-extendable budget owned by each
    request. User-created Promise reactions parked on timers are treated as
    detached work, while the runtime's already-queued completion jobs can still
    unwind normally. Terminal JavaScript execution also has an independent CPU
    bound.
  • The A/B benchmark evidence generator is restored. The runner and fake
    gateway now reap components on successful runs and on every early error
    path, preventing one run from affecting the next.
  • install.sh now stages and validates a package before activation, supports
    native Windows .exe names, updates all commands on upgrade, handles
    relative prefixes correctly, and fails if any required tool is absent.
  • Static pools accept 1..4096 workers. Larger values and allocation failures
    return an operator-facing startup error instead of terminating the Host.
  • Listener CORS uses the complete HTTP token grammar, matches origin
    scheme/host case-insensitively, rejects mixed wildcard/exact origin lists,
    and emits Vary: Origin consistently on origin-dependent responses.
  • musl package dependency checks and fresh reproducibility builds now inherit
    the effective libc and Boost configuration used by the baseline build.

Installation

Linux packages are x86_64 static-musl archives, macOS packages are arm64, and
Windows packages are x86_64 ZIP archives with the static CRT.

curl -fsSL \
  https://github.com/ErosZy/capsid/releases/download/v0.2.0-rc.07/install.sh \
  | bash -s -- v0.2.0-rc.07

Set PREFIX=/custom/path or pass --prefix /custom/path to install elsewhere.
The installer verifies the archive against its attached SHA-256 file before
updating $PREFIX/bin.

Compatibility and operator notes

  • Runtime ABI remains v7 and the project version remains 0.2.0.
  • The txiki.js and QuickJS upstream revisions remain unchanged.
  • Configurations above 4096 static-pool workers are now rejected explicitly.
  • A CORS origin list containing "*" must contain no other origin.
  • Linux prebuilt installation currently supports x86_64/amd64 only; other
    architectures fail with an explicit message instead of downloading an
    incompatible package.

Each platform artifact includes the three command-line tools, the static C ABI
library, public headers, CMake package files, license, build identity, file
manifest, and SPDX SBOM. SHA-256 files are attached alongside every archive.