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

@fairmint/daml-js

v0.1.52

Published

Fairmint DAML packages with generated JavaScript bindings (CantonPayments, NFT, Reports, Equity, CouponMinter). OpenCapTable-v34 is published from open-captable-protocol-daml.

Readme

Fairmint DAML contracts

This repository contains Fairmint's DAML contract packages and publishes their generated JavaScript bindings as @fairmint/daml-js.

The package covers:

  • Canton payment streams
  • OCF reporting contracts
  • CIP-0112 equity tokens, OTC settlement, and clearing
  • NFT API and reference contracts
  • test-token helpers used by integrations

The Open Cap Table Protocol contracts are intentionally separate. Install @fairmint/open-captable-protocol-daml-js for Fairmint.OpenCapTable and OCP_TEMPLATES; their source is in Fairmint/open-captable-protocol-daml.

Developer documentation

The GitHub wiki is retired (disabled). Those hubs are canonical.

Install

npm install @fairmint/daml-js

The package declares the DAML JavaScript runtime versions that its generated bindings use. Keep @daml/ledger and @daml/types compatible with the peer dependency versions reported by npm.

Package surface

The browser-safe root entry point exports generated namespaces including:

import { CantonPayments, Fairmint, Nft } from '@fairmint/daml-js';

const registryTemplate = Fairmint.EquityTokens.EquityRegistry.EquityRegistry;
const paymentFactoryTemplate =
  CantonPayments.PaymentStream.PaymentStreamFactory.PaymentStreamFactory;
const nftInterface = Nft.Api.V1.Nft.Nft;

The exact module names are generated from the DAML source. Let TypeScript discover the available templates from the installed package instead of copying package IDs into application code.

Deployed singleton IDs are available through stable JSON subpaths:

import paymentStreamsFactory from '@fairmint/daml-js/paymentStreams-factory-contract-id.json';
import reportsFactory from '@fairmint/daml-js/reports-factory-contract-id.json';

Check package.json for the complete export map. The generated package surface is also enforced by scripts/test-imports.ts and scripts/verify-merged-lib-runtime.ts.

Repository layout

  • multi-package.yaml declares the active package build graph.
  • Each package's daml.yaml is the source of truth for its current name, version, SDK, and DAML dependencies.
  • scripts/ contains code generation, package verification, DAR policy, and deployment tooling.
  • dars/ and dars/dars.lock retain backed-up DARs and their integrity metadata.
  • generated/ and lib/ are produced by the build and packaging pipeline; do not treat them as hand-maintained documentation.

Build and validate

Install dependencies and the DAML SDK versions selected by the package manifests:

npm install
npx canton-dev-tools install-dpm-sdks

The normal local validation path is:

npm run build
npm test

When generated bindings or the published npm surface are affected, also run:

npm run codegen
npm run verify-package

See package.json and the selected script's source for specialized checks and the exact command interface.