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

@demystify/finance-contracts

v0.1.1

Published

Zod contracts for Demystify Pay + Demystify Sign — the single source of truth for every cross-boundary type.

Readme

@demystify/finance-contracts

Zod schemas for every cross-boundary type of Demystify Pay + Demystify Sign — money, payments, payouts, mandates, profiles, bank connections, envelopes, outbound webhooks, GL journals, core events, the error envelope, and the canonical RBAC role set.

The single source of truth for the SDK, both services, and every consuming product.

  • Governed by: doc 44 §5, doc 45 §6
  • Status: published. Installable by Finocket / Asher Work / Miatz — see docs/46-INTEGRATION-GUIDE.md.
  • Invariant: regulated custody stays with the licensed partner; this repo never holds funds or signing keys.

The rule this package exists to enforce

Request AND response are contracts. An endpoint whose response is ad-hoc JSON is an endpoint a consumer has to reverse-engineer from a curl transcript. Every request schema here has a matching *Result.

Layout

| Path | What | |---|---| | primitives.ts | Money (integer minor units, never a float), PositiveMoney, DidScope, Uuid, IdempotencyKey, Timestamp | | errors.ts | ErrorEnvelope, the closed ErrorCode catalogue, and the status each maps to | | roles.ts | FINANCE_ROLES / SIGN_ROLES — the canonical access.* grants | | payments/ | status.ts (the normalised vocabulary), collect.ts, payout.ts, mandate.ts, profile.ts | | sign/ | document-type.ts (incl. the IT-Act First Schedule guard), envelope.ts | | bank/ | Account Aggregator consent, accounts, transactions, statement import | | webhooks/ | events.ts (the outbound event catalogue) + signature.ts (HMAC scheme, retry policy) | | gl/ | journal.ts — the Finocket GL bridge's balanced double-entry DTO |

Two things worth knowing before you use it

Money is an integer in minor units. { amountMinor: 150000, currency: "INR" } is ₹1,500.00. There is no float anywhere in this package, because a float rupee amount cannot represent ₹0.01 exactly and a ledger that cannot round-trip its own amounts is not a ledger. Money permits zero (a UPI collection genuinely carries a zero MDR fee); PositiveMoney does not, and is what every instruction that actually moves value uses.

Outbound ≠ inbound webhooks. webhooks/ here is what Demystify sends to a product. services/webhooks is the separate service that ingests provider callbacks from Razorpay, Cashfree and Digio. They share nothing but the word, and conflating them is how a consumer ends up verifying the wrong signature.