@nimbus-sh/worker 0.1.0 → 0.1.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/README.md CHANGED
@@ -1,14 +1,18 @@
1
1
  # @nimbus-sh/worker
2
2
 
3
- The Nimbus runtime — Durable Object + router + facet machinery — packaged
4
- for embedding in any Cloudflare Workers project.
3
+ The Nimbus runtime package: Durable Object, router, assets, VFS, runtime
4
+ manager, and facet machinery.
5
+
6
+ Application code should import the deploy-time API through
7
+ `@nimbus-sh/sdk/worker`. This package is still installed because it carries
8
+ the runtime implementation and static assets used by the SDK entrypoint.
5
9
 
6
10
  ## Install
7
11
 
8
12
  ```bash
9
- npm install @nimbus-sh/worker
13
+ npm install @nimbus-sh/sdk @nimbus-sh/worker @nimbus-sh/config
10
14
  # or
11
- bun add @nimbus-sh/worker
15
+ bun add @nimbus-sh/sdk @nimbus-sh/worker @nimbus-sh/config
12
16
  ```
13
17
 
14
18
  ## Quickstart
@@ -27,7 +31,7 @@ import {
27
31
  NimbusDOStub,
28
32
  CirrusHmrRPC,
29
33
  createNimbusHandler,
30
- } from '@nimbus-sh/worker';
34
+ } from '@nimbus-sh/sdk/worker';
31
35
 
32
36
  // Re-export the DO + every RPC class so wrangler's `class_name` lookup +
33
37
  // `enable_ctx_exports` find them in your Worker's main-module exports.
@@ -89,10 +93,14 @@ export default createNimbusHandler();
89
93
  Then:
90
94
 
91
95
  ```bash
92
- wrangler secret put JWT_SECRET # 32+ hex chars
93
- wrangler deploy
96
+ CLOUDFLARE_ACCOUNT_ID=<account-id> npx @nimbus-sh/cli setup cloudflare --name my-nimbus
97
+ npx wrangler secret put JWT_SECRET # 32+ hex chars
98
+ npx wrangler deploy
94
99
  ```
95
100
 
101
+ If setup reports Cloudflare R2 error `10042`, enable R2 in the
102
+ Cloudflare Dashboard once for the account, then rerun the setup command.
103
+
96
104
  `JWT_SECRET` is required for token-enforced deployments. Legacy-public
97
105
  single-tenant demos can set `NIMBUS_LEGACY_PUBLIC=1` and rely on URL
98
106
  possession instead.
@@ -196,9 +204,10 @@ export default createNimbusHandler({
196
204
 
197
205
  | Subpath | What |
198
206
  |---|---|
199
- | `@nimbus-sh/worker` | `NimbusSession`, `SupervisorRPC` + other RPC classes, `createNimbusHandler`, auth types. |
200
- | `@nimbus-sh/worker/router` | `createNimbusHandler`, hooks types. |
201
- | `@nimbus-sh/worker/auth` | HS256 JWT issue/verify, typed errors. |
207
+ | `@nimbus-sh/sdk/worker` | Public Worker embedder API: `NimbusSession`, RPC classes, `createNimbusHandler`, auth helpers. |
208
+ | `@nimbus-sh/worker` | Runtime implementation package used by the SDK entrypoint. |
209
+ | `@nimbus-sh/worker/router` | Runtime router implementation and hook types. |
210
+ | `@nimbus-sh/worker/auth` | Runtime auth implementation re-exported by `@nimbus-sh/sdk/token`. |
202
211
 
203
212
  ## Required bindings
204
213
 
@@ -8,9 +8,9 @@
8
8
  * Consumed by git-network-facet.ts: passed to LOADER.load()'s
9
9
  * `modules` record so the facet can `import` isomorphic-git.
10
10
  *
11
- * Generated at: 2026-06-02T20:52:06.468Z
12
- * Size: 492.0 KiB
11
+ * Generated at: 2026-06-04T21:03:19.310Z
12
+ * Size: 466.1 KiB
13
13
  */
14
14
  export declare const GIT_BUNDLE_CODE: string;
15
- export declare const GIT_BUNDLE_SIZE = 503839;
15
+ export declare const GIT_BUNDLE_SIZE = 477254;
16
16
  //# sourceMappingURL=git-bundle.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-bundle.generated.d.ts","sourceRoot":"","sources":["../src/git-bundle.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,eAAe,EAAE,MAAi4/f,CAAC;AAEh6/f,eAAO,MAAM,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"git-bundle.generated.d.ts","sourceRoot":"","sources":["../src/git-bundle.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,eAAe,EAAE,MAA02re,CAAC;AAEz4re,eAAO,MAAM,eAAe,SAAS,CAAC"}