Object (blob) storage for Pegma components — the byte
counterpart to structured records in @pegma/storage-core.
Important
Storage Blobs is early 0.x. Packages are published at 0.2.0; pin exact
versions. The public API is not frozen.
@pegma/storage-core stores structured records (collections, versions,
single-partition transactions). Blobs are a different job: streams,
content-types, size limits, opaque keys, and conditional put/delete against
object stores such as Azure Blob Storage, Cloudflare R2, and S3.
This repository owns that port. Components declare opaque keys and stream
bytes; hosts inject a BlobStore bound to one container or bucket. Clients
reach storage only through the host API — not through provider-signed URLs by
default — so authorization, rate limits, validation, and logging stay on the
application path.
| Package | Role | Status |
|---|---|---|
@pegma/storage-blobs |
Port, memory store, conformance suite | 0.2.0 npm |
@pegma/storage-azure-blob |
Azure Blob Storage adapter | 0.2.0 npm |
@pegma/storage-cloudflare-r2 |
Cloudflare R2 adapter | 0.2.0 npm |
@pegma/storage-s3 |
AWS S3 / S3-compatible adapter | 0.2.0 npm |
The conformance suite is the specification. A behaviour not asserted there is not something a component may rely on. An adapter is finished when it passes the suite against a real empty backend.
Do not promise what every first-class adapter cannot keep. The port is the honest intersection of Azure Blob, R2, and S3 — not the union of their marketing features.
- Project plan — phases, scope, and decisions
- Architecture — boundaries and threat model
- Application patterns — metadata + bytes lifecycle
- Adapter authoring — implement a real backend
- Releasing — trusted-publisher release runbook
Requires Node.js 22 or newer. Corepack is bundled through Node 24; on Node 25 or newer, install it first.
npm install -g corepack
corepack enable
pnpm install
pnpm run format:check
pnpm run check
pnpm testMIT © 2026 RetireGolden, LLC