StreamOtter v0.2.0-rc.1
Releases and availability
The site release, the exact StreamOtter package it installs, what the demo can run today, and the verified operating boundary, each stated separately.
Release candidate. StreamOtter 0.2.0-rc.1's API may change before 0.2.0. View this release on npm · Changelog
Site release
- Site
- streamotter.dev: StreamOtter's home site and the fictional Lontra Creek demo. Source ↗
- Status
- Pre-launch. This build is a candidate; no public release of the site or its hosted demo has been accepted.
- Milestone
- V1.1, in development. A demo feature that needs something this backend doesn't report is shown as unavailable, with the reason.
- Versioning
- The site's milestones are its own. Site V1.1 is a different milestone from StreamOtter V1.1, and neither one is npm version 1.1.0. Each ships on its own schedule.
Library package
This site and its field station install streamotter@0.2.0-rc.1, pinned exactly: no version range, the same version in both workspaces and the lockfile.
Source-failure handling is in this release, opt-in. 0.2.0-rc.1 includes StreamOtter V1.1: source-failure policies, quarantine, a recovery guard, local operator commands, and a host contract for running the workbench inside your own site. Its validator accepts a failureHandling section (this demo's own configuration passes with a quarantine-hold policy added); a configuration without one behaves as before. How each failure is handled · Handle bad records guide ↗
Demo availability
What each part of the demo does with this build, and what it needs.
| Demo | Today | What it does | What it needs |
|---|---|---|---|
| Live creek and walkthrough | Runs | Real subscriptions from your browser through the gateway, with streamotter@0.2.0-rc.1. | The field station. npm run dev replays fixture data without Kafka; the production stack runs real Kafka. |
| Failure Lab: Connections and clients | Runs where the Lab is on | Cut the relay, stall a laptop, restart the gateway, or foul a sensor on a leased, isolated bench. The report below says whether this backend has benches. | The Lab stack: real Kafka and three benches (see the repository's local Lab instructions). npm run dev has no benches. |
| Failure Lab: Source failures | Partly | Fouled sensor, on the same benches, and 8 more stories, each only where this field station's backend reports it can run it. The Lab gives the reason for each one it can't; the report below counts how many it can. | streamotter@0.2.0-rc.1 provides quarantine, the recovery guard, evaluation, and reprocessing. Each exercise also needs a bench whose backend reports it can run it; what this field station reports is below. |
| Workbench | Recorded | A recorded tour of the workbench: streamotter@0.2.0-rc.1 (published npm), captured 2026-10-05 on a local fixture project. | A sandbox service on this backend; /workbench/ asks it whether one is available. |
| Playground | Runs | The real validator from streamotter@0.2.0-rc.1, in your browser, with failure-policy presets and examples it refuses, plus a read-only connection to the field station. | Nothing more for validation, which checks configuration only. Type generation in the browser needs a release that exports a browser-safe generator; use npx streamotter generate locally. |
What this field station reports
Asking the field station…
Verified operating boundary
The library's own boundary and verification record for 0.2.0-rc.1. They aren't measurements of this demo's deployment, its capacity, or its browser coverage.
V1 boundaries
- Run one gateway per project. V1 has no distributed coordination between gateways.
- Channels deliver full state, not an event log. Reconnecting gets a fresh snapshot; missed intermediate revisions are not replayed.
- Production mode exposes no management API, workbench, or production health endpoint.
- Public readers of one channel instance share its public state. Use separate channels for separate audiences.
- A bad record pauses its source by default. It is never committed or skipped silently, and
resumeSource()retries it after a fix.
Source-failure boundaries
- Policies are opt-in, per source, and only for invalid JSON and payload-schema failures. Every other failure class pauses, and no policy skips a record silently.
- Incidents are kept in a local SQLite journal under the gateway's state directory: one gateway per directory, and Node.js 24.15 or later wherever it runs.
- The operator service is reached in-process, through the gateway's local socket, or, in development only, through the management routes the workbench uses. No HTTP route returns raw evidence, and a browser visitor never reaches the operator socket.
- The gateway checks a recovery boundary's identity and lifecycle, not that your snapshots really contain what the skipped record changed. That claim is your application's.
Read the library’s limitations and verification record ↗ · Source-failure verification ↗
Verified support matrix
These are the package’s verification results, not a claim about the capacity or browser coverage of this demo deployment.
| Component | Environment | Verification |
|---|---|---|
| Node.js | 24.21.0 Full suite; the specification's target version. | verified |
| Node.js | 26.9.0 Full suite; timings in the status doc are from this version. | verified |
| Node.js | 24.15.0 or later, for the failure journal Needed only where a gateway with failureHandling has a state directory: earlier Node 24 releases print an experimental warning for node:sqlite, so the gateway refuses to open the journal on them. The journal's tests ran on 24.21.0 and 26.10.0, and its refusal on 24.14.0. | verified |
| Socket.IO (server and client) | 4.8.3 Pinned; server and client kept at the identical version. | verified |
| KafkaJS | 2.2.4 Pinned behind an internal adapter; two KafkaJS defects at this version are worked around inside it. | verified |
| Apache Kafka | 4.1.2, single-node KRaft The only broker version exercised; other versions are unverified (see the Kafka modes below). | verified |
| Browsers | Chromium (automated and manual checks) The V1.1 browser tests, including the workbench's Failures tab, ran in headless Chromium 141. | verified |
| Browsers | Firefox Explicitly untested by the package's own test suite; its V1.1 browser checks (F45) were not run. | unverified |
| Browsers | Safari / WebKit Explicitly untested by the package's own test suite; its V1.1 browser checks (F45) were not run. | unverified |
| Reverse proxies | Caddy (loopback, private CA) The one proxy exercised; nginx and cloud load balancers are unverified — the package's stated requirements are WebSocket-upgrade forwarding on the socket path and passing the browser's Origin header. | verified |
| Kafka connection | Plaintext (development only; rejected in production) | verified |
| Kafka connection | TLS with a supplied CA file Production gateway. | verified |
| Kafka connection | TLS + SASL PLAIN Production gateway. | verified |
| Kafka connection | TLS + SASL SCRAM-SHA-256 Production gateway. | verified |
| Kafka connection | TLS + SASL SCRAM-SHA-512 Production gateway. This is the mode the hosted Lontra Creek demo uses. | verified |
| Kafka connection | TLS with system trust (tls: {}) Needs a publicly trusted broker certificate to verify. | implemented unverified |
| Kafka connection | Other Kafka broker versions, managed Kafka services, or the repository's Docker Compose alternative | unverified |
Default package limits
Imported from the installed package. These are defaults, not measured capacity. The demo’s operating limits are separate.
| Limit | Default | Meaning |
|---|---|---|
maxConnections | 1000 | The most connections the gateway accepts at once; PLAN.md's hosted demo starts this at 300, below the package default, to be measured on the real host. |
maxSubscriptionsPerConnection | 50 | The most subscriptions one connection may open; PLAN.md's hosted demo starts this at 12. |
maxSourceRecordBytes | 1048576 | The largest raw source record (Kafka value or fixture value) the gateway will decode; larger records pause the source. |
maxDataFrameBytes | 65536 | The largest serialized so:data (or snapshot) frame the gateway will send; a larger snapshot fails that subscription with INVALID_PAYLOAD. |
maxParamsBytes | 4096 | The largest canonical-JSON encoding of a subscribe request's params. |
maxPendingFramesPerSubscription | 100 | How many undelivered frames one subscription may queue before it is treated as overflowing. |
maxPendingBytesPerSubscription | 1048576 | The byte budget for one subscription's undelivered frames. |
maxPendingBytesPerConnection | 4194304 | The byte budget shared by every subscription on one connection. A connection whose unsent output passes it, because the client stopped reading, is closed. |
maxPendingBytesGateway | 67108864 | The byte budget shared by every connection on the gateway (64 MiB by default); not a bound on total process memory or native broker buffers. |
maxMapOutputs | 100 | The most MappedState entries one map() call may return for one source record and channel; more pauses the source. |
maxConcurrentSnapshots | 32 | How many snapshot() calls may be in flight at once, gateway-wide; a subscription waits for a slot, counted against its snapshotTimeoutMs. |
handlerTimeoutMs | 2000 | The deadline for one call to authorize(), snapshot(), or map() (2,000 ms by default). |
snapshotTimeoutMs | 10000 | The deadline for a subscription's snapshot phase, including the wait for a free snapshot slot (10,000 ms by default). |
receiptTimeoutMs | 5000 | How long the gateway waits for a client to acknowledge a sent frame before closing that connection (5,000 ms by default). |
maxSyncAttempts | 3 | How many synchronization attempts one incident gets (with 1 s then 2 s backoff) before the subscription enters resync-required (3 by default). |
maxTraceEntries | 10000 | The most trace rows the gateway retains in memory at once; older rows age out. |
maxTraceBytes | 8388608 | The byte budget for retained trace rows. |
maxControlFrameBytes | 16384 | The largest control-channel payload (subscribe/unsubscribe/resync/receipt) the gateway will parse. It must be at least 9,216, so a handshake carrying an 8 KiB token fits; a smaller value fails validation with INCONSISTENT_LIMITS. |
controlRequestsPerSecond | 20 | The sustained rate of control requests one connection may make (burst capacity is twice this rate: 20/s sustained, burst 40, by default). |