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

@orangecheck/legal

v0.2.0

Published

OrangeCheck family-internal legal document engine — composable Terms, Privacy, and Security pages for the .ochk.io sub-sites. Not for third-party use.

Readme

@orangecheck/legal

Family-internal legal-document engine for the .ochk.io sub-sites. Not for third-party integration.

It composes Terms of Service and Privacy Policy pages from one shared clause library plus per-profile content, so the whole family stays in sync from a single source of truth — while the commercial products keep the variants they genuinely need.

Why this exists

The ecosystem outgrew "one Terms page on ochk.io". The non-custodial protocol sites, a consumer product that pays users in sats, a paid encrypted vault, and an enterprise B2B product cannot share one legal document. This package keeps the boilerplate shared and the divergence explicit.

Profiles

| Profile | Sites | |------------|-------------------------------------------------------------------| | protocol | ochk.io + the six verb sites + docs + analytics (one shared doc) | | me | me.ochk.io — consumer identity that pays users in sats | | vault | vault.ochk.io — paid end-to-end-encrypted secrets vault | | fleet | fleet.ochk.io — enterprise managed agent infrastructure |

The nine protocol sites do not host their own pages — their footers link to ochk.io. Only the three commercial products self-host.

Usage

// src/pages/terms.tsx on a self-hosting site
import { buildDoc, LegalDocument } from '@orangecheck/legal';
import { Seo } from '@/components/layout/Seo';

const doc = buildDoc('me', 'terms'); // pure + synchronous

export default function TermsPage() {
    return (
        <>
            <Seo title={doc.metaTitle} description={doc.metaDescription} canonical="/terms" />
            <div className="container py-12">
                <LegalDocument doc={doc} />
            </div>
        </>
    );
}

Tailwind 4 must scan the package so its utility classes emit. In globals.css:

@source '../../node_modules/@orangecheck/legal';

Footer links resolve through one helper:

import { legalHref } from '@orangecheck/legal';
legalHref('me', 'terms');     // → '/terms'
legalHref('stamp', 'terms');  // → 'https://ochk.io/terms'

Security pages stay bespoke per product but share the disclosure block:

import { SecurityDisclosure } from '@orangecheck/legal';
<SecurityDisclosure securityContact="[email protected]" />

Authoring

  • Shared clauses live in src/content/clauses.ts.
  • Each profile composes them in src/content/<profile>.ts.
  • Strings use [[TOKEN]] placeholders (ENTITY, PRODUCT, HOST, CONTACT, SECURITY_CONTACT, GOVERNING_LAW, ARBITRATION_SEAT) resolved by buildDoc.
  • A stub block renders a visible "pending · counsel review" notice — used for money, custody, refund, SLA, and regulated-activity sections that must be finalized by counsel before the commercial products reach general availability.

Entity of record

No formal legal entity is registered yet. LEGAL_ENTITY in src/constants.ts is the single swap point — set it (and LEGAL_ENTITY_LONG) when the entity is formed, rebuild, and publish; every document family-wide updates.

Build

npm install
npm run build