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

@form-engine-ts/storage-azure-table

v8.2.0

Published

Readme

@form-engine-ts/storage-azure-table

Azure Table Storage implementation of the paged form-engine-ts storage contract using an injected @azure/data-tables-compatible client.

Install

pnpm add @form-engine-ts/core @form-engine-ts/storage-azure-table @azure/data-tables

Quick start

import { TableClient } from "@azure/data-tables";
import { createAzureTableStorage } from "@form-engine-ts/storage-azure-table";

const schemasTableClient = TableClient.fromConnectionString(process.env.AZURE_STORAGE_CONNECTION_STRING!, "forms");
const submissionsTableClient = TableClient.fromConnectionString(
  process.env.AZURE_STORAGE_CONNECTION_STRING!,
  "responses"
);
interface SubmissionMeta {
  readonly tenantId: string;
}

const storage = createAzureTableStorage<SubmissionMeta>({ schemasTableClient, submissionsTableClient });

const page = await storage.listSubmissionPage("contact", { pageSize: 500, locale: "ja" });

The default codec uses formId as PartitionKey and submittedAt_responseId as RowKey. Supply an AzureTableSubmissionCodec to define a completely different entity layout, key strategy, deserializer, and client-side matcher; custom entities are not polluted with default discriminator fields. clientResolver can select a table client per form and operation. Date, locale, version, cursor, metadata, and supported filter-AST constraints are sent as OData; unsupported expressions remain client-filtered with identical semantics.

listSubmissionPage follows opaque Azure continuation tokens and scans at most maxScanPages native pages (default 5) to fill the requested logical page after client-side filtering. buildSubmissionFilter can replace filter generation. The caller owns table creation, credentials, retries, and client lifecycle.

The default codec persists the canonical FormSubmission.values payload and never creates an answers property. The standard adapter rejects entities containing the legacy answers column; it does not decode or migrate them. Applications must migrate legacy data to the canonical values contract before using this adapter. idempotentSubmissions: true enables typed created, duplicate, and conflict results from saveSubmission(submission). Pass validateAgainstSchema: true to re-validate against the stored schema. Pass submissionSchema, submissionValidator, or validation to validate every submission before it is written; the same source can be supplied per call as saveSubmission(submission, { validation }). A source can be a FormSchema, a Zod-compatible object with safeParse, or an async validator callback.

saveSubmissionWithinLimit(submission, maxResponses, options?) uses an ETag-protected capacity entity and an Azure Table transaction to update capacity and create the response together. Set responseLimitScope: "form" to share its capacity row across all versions. The submission codec must place a form's responses in one partition (the default codec does), and the injected client must expose submitTransaction.

listTextAnswerPage accepts either the legacy single field ID or TextAnswerPageQueryOptions.fieldIds. Page size counts emitted text items rather than entities. Its opaque Base64 JSON cursor retains the Azure continuation token plus entity and field indexes, so a page can resume inside a multi-answer entity without gaps or duplicates. Empty answers do not consume the item limit, and scanning remains bounded by maxScanPages. Cursor format version 1 also records the form, version, sorted fields, and a SHA-256 filter fingerprint. Reusing a cursor with different query context throws invalid_cursor_context.

The Azure adapter exposes the same required typed submission surface as MongoDB: listSubmissionPage, listTextAnswerPage, aggregateResponses, exportResponsesToCsv, validateSubmission, and idempotent saveSubmission. Aggregation and CSV options accept the same submission filter query, so applications do not need an Azure-specific reporting branch.