Skip to content

About

Provider-neutral object (blob) storage for Pegma components: a narrow port, conformance suite, and thin cloud adapters.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Storage Blobs

CI License: MIT

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.

Why it exists

@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.

Packages

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

Constraint that shapes everything

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.

Documentation

Development

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 test

License

MIT © 2026 RetireGolden, LLC

About

Provider-neutral object (blob) storage for Pegma components: a narrow port, conformance suite, and thin cloud adapters.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages