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

@kashscript/trade-core

v0.1.0

Published

Deterministic Kash-Trade kernel — universal FSM, dust-free BPS splitter, manifest compile, Trust-Score, and the off-chain↔on-chain state projection. Pure logic; no I/O.

Downloads

43

Readme

@kashscript/trade-core

The deterministic kernel of the Kash-Trade Suite. Universal trade state machine, dust-free BPS splitter, manifest compiler, deterministic Trust-Score, and the off-chain↔on-chain state projection — pure TypeScript, no I/O, no chain calls.

⚠ Commercial package (SSLA Schedule B). Production use requires an active paid Plan on the Kash-Registry. See LICENSE.

bun add @kashscript/trade-core @kashscript/identity-core

Where it sits

trade-core is the pure-logic foundation; @kashscript/trade-sdk builds on it with chains, EIP-712 signals, ERC-4337, the CLI, and the Solidity contracts. The relationship mirrors identity-coreidentity-sdk: a zero-I/O core that anything can embed, plus an SDK that brings in the outside world.

| Package | Responsibility | |---|---| | @kashscript/trade-core | Deterministic kernel: FSM, splitter, manifest compile, Trust-Score, on-chain projection. No network, no storage, no chain calls. | | @kashscript/trade-sdk | Everything that touches the outside world: hydration, EIP-712 quorum, CREATE2 deploys, gasless (ERC-4337), CLI, Solidity contracts. Depends on trade-core. |

Because the kernel is pure and deterministic, an off-chain preview projects onto the exact on-chain TradeState the contracts report — that's what projectToOnChainState guarantees.


What's in the box

| Subpath | Purpose | |---|---| | @kashscript/trade-core | Re-exports the kernel + Trust-Score + contracts envelope | | @kashscript/trade-core/trust-score | Deterministic 0..1 counterparty Trust-Score from settled-trade history | | @kashscript/trade-core/contracts | Chain-agnostic trade envelope + adapter interface | | @kashscript/trade-core/kernel | Kernel barrel — FSM, splitter, manifest, types, errors, on-chain bridge | | @kashscript/trade-core/kernel/fsm | Universal state machine across all five paradigms | | @kashscript/trade-core/kernel/splitter | Dust-free BPS payout math | | @kashscript/trade-core/kernel/manifest | Deterministic manifest compile + invariant validation | | @kashscript/trade-core/kernel/types | TypeScript types for every paradigm | | @kashscript/trade-core/kernel/errors | Typed KashTradeError codes |

The five paradigms — OTDC, Subscription, Escrow, Auction, Milestone — are the canonical set (CANONICAL_PARADIGMS), matching the on-chain TradeType enum. projectToOnChainState and the paradigm maps are satisfies-total, so the kernel and the contracts can never silently drift.


Licensing

This is a Schedule B Commercial Package under the KashScript Sovereign Software License Agreement v1.0.

| Use | Plan required | |-----------------------------|-------------------------| | Local development / eval | free (no Plan needed) | | 14-day production trial | trial | | Production (any user-facing)| paid / team / enterprise |

Run kash login from @kashscript/kash once installed to obtain an Access Token. The package will function on free for development but will refuse to operate in Production Use mode without a covering Plan.

See LICENSE for the full terms.