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

@knowthankyew/policy-packs

v1.0.1

Published

Centralized statutory and regulatory policy engine for knowthankyew client reality engines

Readme

@knowthankyew/policy-packs

Centralized, version-controlled statutory and regulatory policy engine for knowthankyew client reality engines.

CI Statutory Monitor Zero-Egress Invariant Supply Chain


1. Executive Summary & Architecture

The knowthankyew portfolio provides client-side consumer reality engines across consumer contracts (knowthankyew-extension), residential leases (lease-audit), medical bills & charity care (careCheck), wage statements (paystub-check), subscription auto-renewals (bill-of-rights-bot), and product warranties (warranty-watch).

@knowthankyew/policy-packs unifies and centralizes all portfolio statutory logic into modular, domain-separated subpaths with transparent legal grounding (statuteRef, jurisdiction, effectiveDate, lastAudited, officialSourceUrl).

Modular Domain Subpaths

| Subpath Export | Domain Coverage | Tracked Statutory Baselines | | :--- | :--- | :--- | | @knowthankyew/policy-packs/subscriptions | Auto-Renewals, Click-to-Cancel, Arbitration | 15 U.S.C. § 8401 (ROSCA), 16 CFR Part 425 (FTC Negative Option), State ARLs (CA AB 390/SB 313, NY, CO, IL, DE), UK DMCC Act 2024, EU Consumer Rights Directive (2011/83/EU), FAA | | @knowthankyew/policy-packs/tenancy | Residential Leases & Tenant Protections | Cal. Civ. Code § 1950.5 (AB 12), N.Y. GOB § 7-108 / HSTPA, Tex. Prop. Code Ch. 92, Fla. Stat. Ch. 83, 765 ILCS 710/715, Fair Housing Act (FHA), Servicemembers Civil Relief Act (SCRA) | | @knowthankyew/policy-packs/healthcare | Charity Care & Hospital Price Transparency | 26 U.S.C. § 501(r) Financial Assistance Policies, CMS 45 CFR Part 180, HHS Poverty Guidelines (FPL), State Charity Care Acts (CA H&SC § 127400, NY PHL § 2807-k, WA RCW 70.02) | | @knowthankyew/policy-packs/wage | Overtime, Minimum Wage, Wage Theft | 29 U.S.C. § 201 (FLSA Overtime), State Wage Theft Prevention Acts (CA Labor Code § 203/226, NYLL § 195, MA, WA, CO, TX, FL) | | @knowthankyew/policy-packs/warranties | Consumer Warranties & Lemon Laws | 15 U.S.C. § 2301 (Magnuson-Moss Warranty Act, 16 CFR Part 700 Anti-Tying), UCC § 2-314/2-315 Implied Warranties, State Lemon Laws (CA Song-Beverly, NY, FL, TX, MA, IL, PA, NJ, WA) |


2. Core Architectural Invariants

  1. Pillar 1: Zero-Egress Air-Gap Invariant
    @knowthankyew/policy-packs is consumed strictly as a compile-time dependency. Zero dynamic network requests are executed at runtime. All evaluations in consuming applications run locally in-memory.

  2. Pillar 4: Single Source of Truth & Parity
    Unified TypeScript types, JSON schemas, and rule IDs matching the portfolio's Structured Handoff Protocol (@knowthankyew/privacy-telemetry/react). Every rule specifies verifiable legal grounding.

  3. Pillar 5: Universal Supply-Chain Integrity & Attestation
    Automated CycloneDX SBOM generation (bom.json) on every CI build. SLSA Build Provenance attestation via GitHub Actions + Sigstore keyless Cosign bundles. Zero High/Critical CVEs (npm audit --audit-level=high fail-closed gate).

  4. Legally Defensible Human-in-the-Loop Review
    Daily automated statutory crawlers (legal-statute-monitor.yml) run at 06:00 UTC querying Federal Register, EUR-Lex, UK Legislation, and State feeds. Crawlers output structured markdown diff reports and open draft PRs labeled needs-attorney-review. Automated crawlers never auto-merge statutory updates without attorney verification.


3. Installation & Usage

npm install @knowthankyew/policy-packs

Example: Consuming Subscriptions Policy Pack

import {
  COMPILED_POLICY_RULES,
  STATUTE_CATALOG,
} from '@knowthankyew/policy-packs/subscriptions';

// In-memory pattern evaluation against compiled statutory detection rules
const matches = COMPILED_POLICY_RULES.filter((rule) =>
  rule.patterns.some((pattern) => pattern.test(agreementText))
);

Example: Consuming Tenancy Policy Pack

import {
  JURISDICTION_RULES,
  JURISDICTION_OPTIONS,
} from '@knowthankyew/policy-packs/tenancy';

const caRules = JURISDICTION_RULES.CA;
console.log(`California Tenancy Rules (${caRules.rules.length} active rules):`);

4. Development & Verification Commands

# Install dependencies
npm install

# Audit claims, zero-egress, and statutory grounding
npm run audit:claims

# Run automated regulatory monitor in test mock mode
npm run audit:statutes

# Build distribution bundle & TypeScript declarations
npm run build

# Run unit tests and ReDoS validation
npm test

# Generate CycloneDX Software Bill of Materials (SBOM)
npm run generate:sbom

5. Licensure

Licensed under the MIT License. Attribution notice available in NOTICE.md.