stitchwire 0.58.1 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -25
- package/THIRD_PARTY_NOTICES.txt +1 -1
- package/bin/stitchwire +1384 -997
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.
|
|
2
|
+
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.60.0/docs/assets/stitchwire-mark.jpg" width="180" alt="StitchWire" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center">
|
|
5
|
+
<h1 align="center">StitchWire</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<strong>Broker-mediated typed RPC, bounded streams and volatile events between machines behind NAT.</strong><br/>
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<a href="https://github.com/max-listov/stitchwire/blob/v0.
|
|
13
|
+
<a href="https://github.com/max-listov/stitchwire/blob/v0.60.0/LICENSE"><img src="https://img.shields.io/badge/license-MIT-2563eb" alt="MIT license" /></a>
|
|
14
14
|
<img src="https://img.shields.io/badge/runtime-Bun%20%E2%89%A51.4.4-fbf0df?logo=bun&logoColor=000" alt="Bun >= 1.4.4" />
|
|
15
15
|
<img src="https://img.shields.io/badge/client-Node%20%E2%89%A522%20%7C%20Bun%20%E2%89%A51.4.4-339933" alt="Node >= 22 | Bun >= 1.4.4" />
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
-
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.
|
|
19
|
+
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.60.0/docs/assets/infographic-hero.jpg" alt="StitchWire: Node A behind NAT connects outbound over TLS through a trusted broker to Node B behind NAT" width="100%" />
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
@@ -38,10 +38,10 @@ application → local Unix door → agent → trusted broker → agent → decla
|
|
|
38
38
|
|
|
39
39
|
### The problem it solves
|
|
40
40
|
|
|
41
|
-
Connecting private machines usually turns into a tangle of reverse SSH tunnels, open firewall ports and fragile ad-hoc scripts.
|
|
41
|
+
Connecting private machines usually turns into a tangle of reverse SSH tunnels, open firewall ports and fragile ad-hoc scripts. StitchWire replaces that mesh with one outbound-only brokered transport for typed RPC, pull-driven bounded streams and volatile pub/sub events — while services keep full ownership of their schemas, data, durable journals and business rules.
|
|
42
42
|
|
|
43
43
|
<p align="center">
|
|
44
|
-
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.
|
|
44
|
+
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.60.0/docs/assets/infographic-compare.jpg" alt="Without StitchWire: reverse SSH, open ports and ad-hoc scripts. With StitchWire: typed RPC, bounded streams and events over one clean wire." width="100%" />
|
|
45
45
|
</p>
|
|
46
46
|
|
|
47
47
|
## Install
|
|
@@ -62,7 +62,7 @@ Or install the standalone bundle from GitHub Releases. It needs Bun already inst
|
|
|
62
62
|
curl -fsSL https://raw.githubusercontent.com/max-listov/stitchwire/main/contrib/install.sh | bash
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
> **Platform note:**
|
|
65
|
+
> **Platform note:** StitchWire runtime supports **Linux** and **macOS** (Unix domain sockets `0600` + `systemd` / `launchd`). Windows runtime and browser transport are not supported.
|
|
66
66
|
|
|
67
67
|
### Typed client SDK (Node ≥22 or Bun ≥1.4.4)
|
|
68
68
|
|
|
@@ -108,26 +108,27 @@ const result = await wire.invokeService({
|
|
|
108
108
|
|
|
109
109
|
| Plane | Purpose | Key invariants |
|
|
110
110
|
| --- | --- | --- |
|
|
111
|
-
| **Declared services** | Typed HTTP-over-Unix RPC & contract streams projected from [
|
|
111
|
+
| **Declared services** | Typed HTTP-over-Unix RPC & contract streams projected from [StitchKit](https://github.com/max-listov/stitchkit) contracts | Default-deny per caller/target/operation; opaque owner payloads; explicit byte & timeout ceilings |
|
|
112
112
|
| **Fixed command profiles** | Constrained execution of operator-declared binaries | Fixed executable path and argv rules; never a caller-selected shell |
|
|
113
113
|
| **Bounded streams** | Live stdout/NDJSON/framed feeds across nodes | Pull-driven credit backpressure, explicit terminal reason, cooperative cancellation |
|
|
114
114
|
| **Volatile events** | Pub/sub fan-out with sequence continuity checks | Bounded in-memory retention, explicit gap & boot-change frames — never silent data loss |
|
|
115
115
|
|
|
116
|
-
Runnable examples: [service](https://github.com/max-listov/stitchwire/blob/v0.
|
|
116
|
+
Runnable examples: [service](https://github.com/max-listov/stitchwire/blob/v0.60.0/examples/service/README.md) · [stream](https://github.com/max-listov/stitchwire/blob/v0.60.0/examples/stream/README.md) · [events](https://github.com/max-listov/stitchwire/blob/v0.60.0/examples/events/README.md).
|
|
117
117
|
|
|
118
|
-
## StitchKit ×
|
|
118
|
+
## StitchKit × StitchWire
|
|
119
119
|
|
|
120
120
|
<p align="center">
|
|
121
|
-
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.
|
|
121
|
+
<img src="https://raw.githubusercontent.com/max-listov/stitchwire/v0.60.0/docs/assets/infographic-ecosystem.jpg" alt="StitchKit and StitchWire: define contracts once and route them across every machine" width="100%" />
|
|
122
122
|
</p>
|
|
123
123
|
|
|
124
124
|
<p align="center">
|
|
125
|
-
<em>Define a service contract once with <a href="https://github.com/max-listov/stitchkit">
|
|
125
|
+
<em>Define a service contract once with <a href="https://github.com/max-listov/stitchkit">StitchKit</a> — route it across every machine over StitchWire.</em>
|
|
126
126
|
</p>
|
|
127
127
|
|
|
128
|
-
- **One contract, zero glue.** `serviceDescriptorFromContract()` derives operation IDs, exact static paths and stream framing directly from your
|
|
129
|
-
- **Owner ingress & caller fetch.** Mount `createServiceIngress()` on a `0600` Unix socket on the owner machine and hand `createServiceFetch()` to your existing typed
|
|
130
|
-
- **Framework-optional.** The local door is plain HTTP-over-Unix, and `@stitchwire/client` works standalone without
|
|
128
|
+
- **One contract, zero glue.** `serviceDescriptorFromContract()` derives operation IDs, exact static paths and stream framing directly from your StitchKit contract.
|
|
129
|
+
- **Owner ingress & caller fetch.** Mount `createServiceIngress()` on a `0600` Unix socket on the owner machine and hand `createServiceFetch()` to your existing typed StitchKit client on the caller — preserving cancellation, byte ceilings and `serviceCaller()` identity end to end.
|
|
130
|
+
- **Framework-optional.** The local door is plain HTTP-over-Unix, and `@stitchwire/client` works standalone without StitchKit for raw `invokeService`, fixed command profiles, bounded streams and volatile events.
|
|
131
|
+
- **Stitch family.** Pair [StitchKit](https://github.com/max-listov/stitchkit) contracts and StitchWire transport with [StitchMux](https://github.com/max-listov/stitchmux) for agent supervision and [StitchDevKit](https://github.com/max-listov/stitchdevkit) for typed project gates, task discipline and signed releases.
|
|
131
132
|
|
|
132
133
|
## Products and distribution
|
|
133
134
|
|
|
@@ -139,7 +140,7 @@ Runnable examples: [service](https://github.com/max-listov/stitchwire/blob/v0.58
|
|
|
139
140
|
|
|
140
141
|
Service templates live in `contrib/`:
|
|
141
142
|
- **Linux (`systemd`):** `contrib/systemd/stitchwire-agent.service`, `contrib/systemd/stitchwire-broker.service`
|
|
142
|
-
- **macOS (`launchd`):** `contrib/launchd/com.stitchwire.agent.plist` starts the agent through a `
|
|
143
|
+
- **macOS (`launchd`):** `contrib/launchd/com.stitchwire.agent.plist` starts the agent through a `StitchWire.app` launcher (`contrib/launchd/stitchwire-launcher.c`), so macOS attributes local-network access to StitchWire. `bun scripts/macos-bundle.ts` builds that bundle from a source checkout and signs it only with your own Apple **Developer ID Application** identity. Without one, delete the launcher line from `ProgramArguments` and launchd runs Bun directly; macOS then attributes the agent's network access to Bun.
|
|
143
144
|
- **Broker TLS reverse proxy:** `contrib/nginx/stitchwire-broker.conf`
|
|
144
145
|
|
|
145
146
|
## Guarantees and deliberate limits
|
|
@@ -170,15 +171,15 @@ On macOS, `bun run check` also compiles the launcher and builds the app icon, wh
|
|
|
170
171
|
|
|
171
172
|
## Documentation
|
|
172
173
|
|
|
173
|
-
- [Vision](https://github.com/max-listov/stitchwire/blob/v0.
|
|
174
|
-
- [Architecture and packaging](https://github.com/max-listov/stitchwire/blob/v0.
|
|
175
|
-
- [Distribution and installation](https://github.com/max-listov/stitchwire/blob/v0.
|
|
176
|
-
- [Local node enrollment](https://github.com/max-listov/stitchwire/blob/v0.
|
|
177
|
-
- [Diagnostics](https://github.com/max-listov/stitchwire/blob/v0.
|
|
178
|
-
- [Publication inputs](https://github.com/max-listov/stitchwire/blob/v0.
|
|
179
|
-
- [Architecture Decision Records](https://github.com/max-listov/stitchwire/tree/v0.
|
|
180
|
-
- [Security policy](https://github.com/max-listov/stitchwire/blob/v0.
|
|
174
|
+
- [Vision](https://github.com/max-listov/stitchwire/blob/v0.60.0/docs/VISION.md) — product direction and deliberate limits
|
|
175
|
+
- [Architecture and packaging](https://github.com/max-listov/stitchwire/blob/v0.60.0/docs/architecture/product.md) — runtime, broker, agent and planes
|
|
176
|
+
- [Distribution and installation](https://github.com/max-listov/stitchwire/blob/v0.60.0/docs/architecture/distribution.md) — artifacts, macOS/Linux supervision and removal
|
|
177
|
+
- [Local node enrollment](https://github.com/max-listov/stitchwire/blob/v0.60.0/docs/architecture/enrollment.md) — repeatable admission, binding and detach
|
|
178
|
+
- [Diagnostics](https://github.com/max-listov/stitchwire/blob/v0.60.0/docs/architecture/diagnostics.md) — bounded `stitchwire doctor --json`, with the same checks and exit status as text mode; scheduling stays with the operator
|
|
179
|
+
- [Publication inputs](https://github.com/max-listov/stitchwire/blob/v0.60.0/docs/architecture/publication.md) — clean history-free snapshots and release gates
|
|
180
|
+
- [Architecture Decision Records](https://github.com/max-listov/stitchwire/tree/v0.60.0/docs/decisions/) — why each protocol boundary exists
|
|
181
|
+
- [Security policy](https://github.com/max-listov/stitchwire/blob/v0.60.0/SECURITY.md) · [Contributing](https://github.com/max-listov/stitchwire/blob/v0.60.0/CONTRIBUTING.md) · [Changelog](https://github.com/max-listov/stitchwire/blob/v0.60.0/CHANGELOG.md)
|
|
181
182
|
|
|
182
183
|
## License
|
|
183
184
|
|
|
184
|
-
[MIT](https://github.com/max-listov/stitchwire/blob/v0.
|
|
185
|
+
[MIT](https://github.com/max-listov/stitchwire/blob/v0.60.0/LICENSE) © Max Listov
|
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -1307,7 +1307,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
1307
1307
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1308
1308
|
|
|
1309
1309
|
|
|
1310
|
-
--- stitchkit@0.
|
|
1310
|
+
--- stitchkit@0.135.0: LICENSE ---
|
|
1311
1311
|
MIT License
|
|
1312
1312
|
|
|
1313
1313
|
Copyright (c) 2026 Max Listov
|