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

@actuarial-ts/compliance

v0.3.0

Published

ASOP-compliance-support layer for the actuarial-ts SDK: estimate metadata, assumption ledger, ASOP 41 disclosure generation, ASOP 56 model cards, reproducibility bundles, and actual-vs-expected roll-forward. Responsibility for compliance remains with the

Readme

@actuarial-ts/compliance

The compliance-support layer of the actuarial-ts SDK: the part no calculator ships. It turns an analysis into the documentation the Actuarial Standards of Practice ask for.

  • Estimate metadata (ASOP 43): intended purpose and measure, gross/net basis, LAE treatment, and the accounting / valuation / review dates — as typed, validated fields instead of tribal knowledge.
  • Assumption ledger (ASOPs 41/43/56): an immutable record of every selection, distinguishing machine defaults from human or agent judgment; judgment entries require a rationale.
  • Disclosure generator (ASOP 41): renders a methods-assumptions-and-data appendix from the analysis itself — written to the "another qualified actuary could appraise it" bar, deterministic to the byte.
  • Model cards (ASOP 56): intended use, specification, key assumptions, known weaknesses, and sensitivities for every method the SDK ships (a cross-package sync test enforces the completeness, so the registry can never silently fall behind core) — the "basic understanding" content an actuary relying on vendor models must hold and disclose.
  • Reproducibility bundles (ASOP 21 / 56): canonical serialization of inputs, parameters, and results with an integrity tag, so an analysis re-runs identically years later for an auditor or examiner.
  • Actual-vs-expected roll-forward: expected emergence from the prior valuation's pattern versus actual, by origin.

Everything here is pure, deterministic, and browser-safe: no clock reads, no randomness, no node builtins. Identical inputs produce byte-identical documents.

Quickstart

import { runChainLadder, runMack } from "@actuarial-ts/core";
import {
  createLedger,
  recordAssumption,
  generateDisclosure,
} from "@actuarial-ts/compliance";

let ledger = createLedger();
ledger = recordAssumption(ledger, {
  timestamp: "2026-01-05T10:05:00Z",
  actor: "actuary",
  field: "paid.tailFactor",
  value: 1.02,
  rationale: "Exponential-decay fit valid with R^2 0.97; judgmentally confirmed",
  source: "fitted",
});

const cl = runChainLadder(paidTriangle, { selected, tailFactor: 1.02 });
const mack = runMack(paidTriangle, { selected, tailFactor: 1.02 });

const markdown = generateDisclosure({
  metadata: {
    intendedPurpose: "Estimate unpaid claims for year-end statutory reporting",
    intendedMeasure: { kind: "central-estimate" },
    basis: { grossNet: "gross", laeTreatment: "dcc-only" },
    accountingDate: "2025-12-31",
    valuationDate: "2025-12-31",
  },
  methods: [
    { methodId: "chainLadder", basisLabel: "paid", parameters: { selected, tailFactor: 1.02 }, resultSummary: { ultimate: cl.totals.ultimate, unpaid: cl.totals.unpaid } },
    { methodId: "mack", basisLabel: "paid", resultSummary: { standardError: mack.totals.standardError } },
  ],
  ledger,
  sdkVersion: "0.3.0",
  generatedAt: "2026-01-05T10:15:00Z",
});

The honest claim

The ASB does not approve, certify, or endorse software, and no software can be "ASOP-compliant" on its own — compliance is a property of a credentialed actuary's work in context. This package is designed to support the actuary's compliance with ASOP Nos. 41, 43, 23, 56, 21, and 20 by generating the disclosures, documentation, and audit artifacts those standards call for. The generated documents are draft support material for the responsible actuary to review, edit, and adopt.

License

Apache-2.0. Copyright 2026 Justin Morrey.