npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pegma/storage-azure-tables

v0.4.0

Published

Azure Table Storage adapter for @pegma/storage-core.

Readme

@pegma/storage-azure-tables

Azure Table Storage adapter for @pegma/storage-core.

[!IMPORTANT] This package is in early 0.x development. Its public API is not stable and it is not ready for production use.

Usage

import { TableClient } from "@azure/data-tables";
import { createAzureTablesStore } from "@pegma/storage-azure-tables";

const store = createAzureTablesStore({
  client: new TableClient(endpoint, "pegma", credential),
});

Hand the resulting Store to any component that declares collections against @pegma/storage-core. Nothing else in the application needs to know which backend is in use.

How records are laid out

Every collection shares one table. A record's partition key is <collection>:<partition> and its row key is the record id, so a deployment provisions one table rather than one per collection, and listing a partition stays a single-partition query — the only kind Table Storage serves well.

Optimistic concurrency maps onto ETags. update re-reads and re-runs its decider whenever a conditional write is rejected, and putIfUnchanged and deleteIfUnchanged are conditional writes that report false rather than throwing when the record has moved on or vanished.

Records are written whole, using Replace rather than Merge. A field set to null by your codec therefore clears reliably, which is not true of a merge write.

Authoritative scans

CollectionStore.scan enumerates bounded pages across every logical partition in a collection. The adapter constrains the Azure query to that collection's partition-key prefix and wraps Azure's continuation token in a cursor scoped to this adapter and collection.

The returned key comes from the entity's actual partition and row keys, while the version is its ETag. Cursors are opaque and may be persisted across store instances that point at the same table. A null continuation ends one cycle; start another without a cursor. Azure scans are not snapshots, offer no public ordering guarantee, and may repeat or defer rows during concurrent writes.

Constraints it enforces for you

  • Collection names may not contain :, which separates collection from partition in a key.
  • Partitions and record ids may not contain /, \, #, ?, or control characters. Table Storage rejects these with an opaque service error; this adapter fails earlier with a message naming the offending value.
  • A record may not define a property called partitionKey, rowKey, timestamp, or etag. Those belong to the table.

Verification

This adapter passes the conformance suite published by @pegma/storage-core, run against a real Azurite table service rather than a fake client. An adapter that agrees only with its author's assumptions is not verified.

License

MIT © 2026 RetireGolden, LLC