Skip to content

Big Marge

Big Marge is a reference package family delivered by the Shirei Workers Registry. It demonstrates how one install can add source files, dependencies, Durable Object bindings, R2 bindings, variables, and Wrangler migrations to a project.

big-marge

Durable Object runtime, BIG_MARGE namespace, R2 bucket, variable, and SQLite migration.

big-marge-client

Browser-safe fetch client for the runtime’s message endpoint.

big-marge-full

Bundle that resolves and installs both runtime and client items.
Registry itemKindGenerated fileConfiguration
big-margeruntimesrc/big-marge.tsDO, R2, variable, migration
big-marge-clientclientsrc/lib/big-marge-client.tsClient dependency
big-marge-fullbundleBoth filesBoth dependency trees
Terminal window
workers-registry get big-marge-full
workers-registry add big-marge-full

Pin a registry version for reproducible installs:

Terminal window
workers-registry add big-marge-full@0.1.0

The CLI reads workers-registry.jsonc from the current directory or a parent and maps each item kind to a target project.

Big Marge is intentionally small. Its purpose is to make the registry’s complete read/install path visible:

  1. Discover an item from /registry.json.
  2. Resolve its immutable versioned manifest.
  3. Select a target project from item kind.
  4. Write source files.
  5. Merge Wrangler resources and migrations.
  6. install package dependencies.

Continue with the runtime guide and client guide.