@streamotter/contracts 0.1.0-rc.2 → 0.1.0-rc.3
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 +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/jfricano/StreamOtter/main/docs/assets/streamotter-logo.png" alt="StreamOtter" width="300"></p>
|
|
2
|
+
|
|
1
3
|
# @streamotter/contracts
|
|
2
4
|
|
|
3
5
|
The public types, protocol constants, error vocabulary, and runtime validation shared by the StreamOtter gateway and browser SDK. Both are built on this package.
|
|
@@ -10,6 +12,8 @@ The public types, protocol constants, error vocabulary, and runtime validation s
|
|
|
10
12
|
npm install @streamotter/contracts
|
|
11
13
|
```
|
|
12
14
|
|
|
15
|
+
The all-in-one [`streamotter`](https://www.npmjs.com/package/streamotter) package also exposes this package as `streamotter/contracts`.
|
|
16
|
+
|
|
13
17
|
ESM only, with TypeScript declarations included. It has no dependencies and runs in browsers and Node.js.
|
|
14
18
|
|
|
15
19
|
## Validate a configuration
|
|
@@ -52,12 +56,13 @@ The types are the public contract that the [V1 API specification](https://github
|
|
|
52
56
|
|
|
53
57
|
| Package | |
|
|
54
58
|
| --- | --- |
|
|
59
|
+
| [`streamotter`](https://www.npmjs.com/package/streamotter) | Everything below in one install, with the `streamotter` command |
|
|
55
60
|
| [`@streamotter/cli`](https://www.npmjs.com/package/@streamotter/cli) | Scaffold, validate, generate types, develop with the workbench, and run the production gateway |
|
|
56
61
|
| [`@streamotter/client`](https://www.npmjs.com/package/@streamotter/client) | The browser SDK: subscribe, render `live` and `stale`, and clean up |
|
|
57
62
|
| [`@streamotter/gateway`](https://www.npmjs.com/package/@streamotter/gateway) | Handler types, and running the gateway from your own Node.js code |
|
|
58
63
|
| [`@streamotter/contracts`](https://www.npmjs.com/package/@streamotter/contracts) | **This package.** Shared types and configuration validation, for tooling authors |
|
|
59
64
|
| [`@streamotter/workbench`](https://www.npmjs.com/package/@streamotter/workbench) | The local workbench's assets, installed by the CLI |
|
|
60
65
|
|
|
61
|
-
All
|
|
66
|
+
All six are released together with the same version ([changelog](https://github.com/jfricano/StreamOtter/blob/main/CHANGELOG.md)).
|
|
62
67
|
|
|
63
68
|
MIT License © 2026 Orca Solutions
|
package/package.json
CHANGED