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

@ops-ai/toggly-signed-defs

v1.2.7

Published

Shared ES256 signed-definitions verification for Toggly SDKs (browser and Node)

Downloads

2,147

Readme

@ops-ai/toggly-signed-defs

Shared ES256 signed-definitions verification for Toggly browser and Node SDKs.

Install

npm install @ops-ai/toggly-signed-defs

Dependent packages in this monorepo declare a registry range (not file:):

"@ops-ai/toggly-signed-defs": "^1.0.0"

Runtime resolution

Keep importing from @ops-ai/toggly-signed-defs. Browser-aware bundlers select the browser ESM condition; Node ESM and CommonJS consumers retain their existing root import behavior. All three entry points expose the same public API. Node 18 and newer use the built-in Node WebCrypto provider; browsers use platform WebCrypto and do not import Node modules. Legacy browser bundlers that use main or module also select platform WebCrypto through browser metadata shipped inside each compiled module tree.

Entity context

Evaluated-signed defs may mix booleans and EntityGate objects (EvaluatedDefinitions). This package parses and verifies the envelope; it does not evaluate gates. Consumers resolve gates with @ops-ai/toggly-hooks-types (or an SDK wrapper) and per-eval entity context.

Publishing

Publish @ops-ai/toggly-signed-defs first (workflow: sdk-signed-defs-release.yml), then publish SDKs that depend on it.

Do not ship file: paths in published npm artifacts.

Local development before the package exists on npm

cd toggly-signed-defs && npm run build && npm link
# in each dependent package:
npm link @ops-ai/toggly-signed-defs

After the first registry publish, prefer npm install against ^1.0.0.

Verification

Use Node 24 for the development tooling. The published Node runtime floor is 18.

npm run typecheck
npm run build
npm test
npm run test:coverage
npm run test:consumer -- /path/to/node18/bin/node

The consumer check installs a packed artifact, compiles TypeScript consumers, then runs real CJS and ESM files with the current Node runtime and any additional Node executable paths supplied. It verifies canonical P1363 and DER signatures, rejects malformed DER, and exercises the browser export condition in the current Node runtime. It also builds the packed package with webpack through conditional, legacy module, legacy CommonJS, and dist-only overlay resolution, then verifies signatures in each bundle without Node globals. These checks do not replace a browser-host test.