
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@orangecheck/legal
Advanced tools
OrangeCheck family-internal legal document engine — composable Terms, Privacy, and Security pages for the .ochk.io sub-sites. Not for third-party use.
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.
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.
| 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.
// 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="security@ochk.io" />
src/content/clauses.ts.src/content/<profile>.ts.[[TOKEN]] placeholders (ENTITY, PRODUCT, HOST, CONTACT,
SECURITY_CONTACT, GOVERNING_LAW, ARBITRATION_SEAT) resolved by
buildDoc.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.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.
npm install
npm run build
FAQs
OrangeCheck family-internal legal document engine — composable Terms, Privacy, and Security pages for the .ochk.io sub-sites. Not for third-party use.
The npm package @orangecheck/legal receives a total of 13 weekly downloads. As such, @orangecheck/legal popularity was classified as not popular.
We found that @orangecheck/legal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.