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

opc-harness

v0.14.0

Published

A project-local website delivery harness for Codex and Claude Code

Readme

OPC Harness gives Codex and Claude Code a reusable website delivery workflow. Choose a finished frontend by its actual appearance, combine a compatible stack and payment mode, then generate, run and verify the project.

Choose a finished layout instead of describing every visual detail. The site's catalogue previews use the same renderer and assets as generated projects. Set your brand and content through configuration; the agent preserves the selected design.

v0.10.1 includes 82 complete templates and 82 ready-made recipes, organized into 11 purpose collections, 8 scenario filters and 8 visual-style filters. It adds sixteen functional interface studies across tables, workflow canvases, stores, learning, maps, communities, support and AI evaluation. All 50 earlier researched directions remain integrated. Names, marks, sample content and artwork are original. Each includes responsive layouts and working local interactions, with Cloudflare / Vercel / static delivery, design preservation and strict TypeScript throughout.

Build this checkout or install its versioned package archive to use the complete catalogue. npm publication and website delivery have separate verification records. See the v0.10.1 changes and classified template guide.

To work from source:

git clone https://github.com/AniChikage/opc-harness.git
cd opc-harness
npm ci
npm run build
node bin/opc.mjs setup --global --host both
node bin/opc.mjs gallery

This repository contains the harness only: agent setup, template generation, the offline selection interface, payments and deployment adapters. The independent product website lives in opc-harness-web. Building or installing the harness does not require that repository.

Module guide and compatibility matrix · Complete frontend examples

Versioned business modules

Private files (files) and background file reports (jobs) are available in the local v0.13.0 implementation. Jobs includes files and accounts; records are optional. Studio exports the selected dependencies, and generated projects use real R2/Queues bindings. File and task guide.

The development checkout is v0.13.0; public npm currently remains v0.10.1. New module functionality requires the built checkout or its reviewed archive until it is published.

member-workspace combines individual accounts and owner-isolated shared records with either Console or Kindred. --modules records resolves its accounts dependency; --modules accounts omits record storage. Run modules --json for module versions, dependencies and acceptance contracts. Business module guide · Component progress.

Build from an ordinary brief

Run node bin/opc.mjs propose --brief TEXT --json for a task contract and module selection, or create --brief TEXT --dir DIR --host both to generate it. The optional request-desk application adds a real shared request database and protected administrator workspace. Run acceptance --url URL --json to exercise its persisted result and cleanup. See the complete product workflow for the three-consumer gate, runtime upgrade/rollback and release preparation.

Authenticated ordinary-message testing is separate: npm run test:hosts -- --package /path/to/archive.tgz --out /private/path. It invokes real coding hosts and records every round, the actual model where exposed, task-plan preservation and independent HTTP acceptance. See host acceptance.

Start once

Requires Node.js 22.13+, npm, and an installed, authenticated Codex or Claude Code. Commands below run from a built source checkout. For a packed archive, use npx --yes --package=file:/ABSOLUTE/PATH/opc-harness-0.13.0.tgz opc-harness in place of node bin/opc.mjs.

node bin/opc.mjs setup --global --host both

Start a new agent session and describe the website:

Build a portfolio for my independent design studio.
Show me the matching example websites, let me choose a frontend and stack,
and use that design exactly. Keep it free and deploy a Cloudflare preview.

The installed Skill uses your profile, offers matching layouts when needed, creates the intended project, and follows its local workflow. An exact user-selected template proceeds directly; an unresolved frontend is shown as matching examples, with a saved default highlighted when applicable. Existing applications retain their framework and instructions.

Setup copies a standalone runtime that survives npx cache removal, preserves unrelated personal instructions, and backs up changed files. Add --dry-run --json to inspect paths first. Automatic selection depends on the host loading its instructions and Skills; use a new session after installation.

Or choose directly

Browse the actual templates:

node bin/opc.mjs gallery

Choose and generate interactively:

node bin/opc.mjs create --interactive

Or use one explicit command:

node bin/opc.mjs create \
  --dir ./my-studio --name my-studio --template portfolio \
  --brand 'North Star Studio' --email [email protected] --host both
cd my-studio
node .opc/runtime/bin/opc.mjs dev

Without --dir, create uses a new my-website subdirectory. The command generates the website, local runtime, and both project Skills together. No model API key, hosting account, or payment account is required to create or preview a free site.

Browse by purpose and style

| Purpose collection | Count | Example templates | | --- | ---: | --- | | Product launches | 8 | Keel, Petal, Gauge, Launchpad | | Creators & portfolios | 4 | Journey, Postcard, Portrait | | Conversation & prompts | 7 | Plainspace, Paperleaf, Prism, BlueDock | | Writing & knowledge | 8 | Blueprint, Sourcebook, Inkwork, Rewrite | | Images & design | 11 | Lilac, Habitat, Palette, Playfield | | Audio & video | 4 | Cinema, Waveform, Mixtape, Transcript | | Developer tools | 6 | Toolbox, Capture, Forge, Foundry | | Directories & research | 5 | Atlas, Ledger, Commons, Trace | | Plans & workspaces | 11 | Ember, Clarity, Delegate, Workspace | | Events & scheduling | 2 | Tempo, Event |

Combine a purpose with Light, Dark, Editorial, Technical, Colorful, Minimal, Canvas or Dense style filters. Search also matches template IDs, references and included features. Selection and filters are saved in the URL. The existing six frontend module types remain available as an additional filter.

Each template includes responsive layouts, keyboard focus, English sample content, and working controls. Local data is labeled accurately: tasks, favorites, and drafts are saved in the browser. Add your own product-specific backend when you need shared accounts, team data, or additional business workflows.

Template catalog and configuration · English paid-tool walkthrough

Compose the modules

Choose frontend, stack, content, data and payments separately. The studio shows exact template previews, desktop/mobile modes, included functionality and related example websites before generation. Choose template-only, Member workspace or Request desk. Account and record checkboxes show their dependency, compatible appearances and backend requirements. Copy a command, download a configuration, or copy an agent prompt. Studio business selection.

| Stack | Runtime and output | Payments | | --- | --- | --- | | Cloudflare | Buildless frontend + Worker; D1 for orders | Free, demo, Stripe test | | Vercel | Complete static frontend in your selected project | Free | | Portable static | Complete frontend and folder export | Free |

Browser-local tasks, contacts, drafts and favorites remain local. Individual accounts are available in member-workspace; team sharing and delegated roles remain additional backend work.

# From this checkout; use opc-harness for an installed package.
node bin/opc.mjs create --dir ./my-launch --recipe bold-launch --host both
node bin/opc.mjs create --dir ./my-admin --recipe personal-admin --host both
node bin/opc.mjs create --dir ./my-site --project-config ./opc-project.json --host both
node bin/opc.mjs templates --type landing --json
node bin/opc.mjs templates --collection media --style dark --json
node bin/opc.mjs modules --json

The 82 recipes choose compatible modules together. Explicit flags override recipes; recipes override saved defaults. Vercel deployment needs VERCEL_TOKEN and VERCEL_PROJECT_ID, plus VERCEL_TEAM_ID for team projects. Cloudflare deployment preserves the existing ownership and recovery checks. The catalogue exports through gallery --out DIR. The independent website repository builds its own static output and consumes a pinned harness showcase export.

Read the module guide for combinations, prerequisites, verification and extension points.

Configure once, reuse later

Choose a default for future websites:

node bin/opc.mjs preferences --interactive

Or configure a generated project:

node .opc/runtime/bin/opc.mjs configure \
  --brand 'North Star Studio' --headline 'Useful design for thoughtful people.'
node .opc/runtime/bin/opc.mjs configure --site-config ./site.json

The site JSON supports branding, headline, description, accent, contact email, content items, and event details. Template selection lives in design.template; payment and hosting choices stay in the same profile. See examples.

configure --template ID switches an untouched template safely. Edited files are reported before any configuration changes. Existing projects keep their choices when personal defaults change.

Payments and deployment

| Choice | Behavior | | --- | --- | | none | Free export, no checkout, no payment database | | demo | Simulated checkout, server confirmation, entitlement, download | | stripe_test | Stripe-hosted test Checkout, signed webhook, durable fulfillment |

Paid templates default to a $19 USD example product. Set the amount and currency through configuration, then supply an exactly matching Stripe test Price:

node .opc/runtime/bin/opc.mjs configure --amount 2900 --currency cny
node .opc/runtime/bin/opc.mjs doctor --json

doctor reports local prerequisites together. Stripe test mode requires your testing environment and three server values: STRIPE_SECRET_KEY, STRIPE_PRICE_ID, and STRIPE_WEBHOOK_SECRET. The harness reports their presence without printing them. Deployment requires your Cloudflare login or environment credentials.

node .opc/runtime/bin/opc.mjs deploy --dry-run --json
node .opc/runtime/bin/opc.mjs deploy --json
node .opc/runtime/bin/opc.mjs verify --url https://your-worker.workers.dev --json

Ordinary free templates skip D1; the optional request-desk application uses D1 for shared requests and administrator sessions. Paid deployments provision or validate the owned database, migrate it, upload the Worker, and verify source identity. Unknown same-name resources are refused. Keep the private .opc/resources.json record for later deployments.

For another static host, export a free site:

node .opc/runtime/bin/opc.mjs export --out ../static-site

Paid static exports are refused. Payment setup, ownership, and deployment details.

What is verified

The regression suite covers both host entries, all 82 templates, purpose/scenario/style classification, combined filtering, design-lock drift detection, preserved edits, safe configuration changes, free deployments without D1, configurable pricing, payment transactions, signatures, idempotency, and resource ownership.

The package smoke check installs the actual tarball in an isolated home, removes the npx cache, generates every template with the copied runtime, verifies saved defaults, and repeats setup without changes. Browser acceptance is recorded separately from API tests and packaging.

npm run test:repro installs the archive three times into separate homes and empty caches. Each installation generates all 71 reference-inspired styles (the original five, fifty earlier directions and sixteen scenario additions), with both default and customized content, through template, recipe or project-configuration selection. Every public file must match the catalogue preview, repeated scaffolding must leave it unchanged, and customized branding must produce identical assets across all three installations. Any mismatch fails the check. This tests deterministic package generation; automatic agent selection and visual browser checks are separate.

Verification details · GitHub Actions

Development

The harness uses TypeScript with strict: true, including the CLI, browser code, payment Worker, tests and release tooling. Node ESM sources use .mts; browser sources use .ts.

git clone https://github.com/AniChikage/opc-harness.git
cd opc-harness
npm ci
npm run typecheck
npm run build
npm test
npm run check
npm run check:release
npm run test:package
npm run test:repro
node bin/opc.mjs gallery

| Path | Responsibility | | --- | --- | | src/catalog.mts, src/pages.mts, src/render.mts | Template catalog, complete pages, deterministic generation | | src/design.mts | Design lock and drift detection for the selected layout | | src/interactive.mts, src/gallery.mts | Terminal selection, exact template previews and serving the built catalogue | | src/studio.mts, templates/studio/ | Offline template selection UI used by the CLI and exported showcase | | src/global.mts | Host setup, profiles, backups, and rollback | | src/workflows.mts, src/core.mts | Configuration, generation, payment, deployment, and evidence | | templates/ | Bundled frontend assets and Worker/D1 payment backend | | skills/opc-build-website/ | Shared workflow for both coding agents | | src/types.mts, types/ | Shared configuration, provider, browser and runtime contracts | | test/, scripts/ | Strictly checked regression, release, build and package installation checks |

npm run build emits the portable JavaScript runtime into dist/ and refreshes the compatibility launcher at bin/opc.mjs. Rebuild after editing TypeScript. The npm tarball includes compiled .mjs / .js and runtime assets; users do not need TypeScript, ts-node or a build step. Global and project-local installations keep their existing CLI paths and work independently of the original checkout or npx cache.

Current scope

The automated backend uses Cloudflare Workers, with D1 for payments or the optional shared request-desk application. Static free sites can use other static hosts. Live payments, subscriptions, merchant onboarding, tenant/team storage, email verification, recovery and MFA are not included. Member-workspace supplies individual accounts and owner-isolated records through versioned modules. Request-desk supplies one administrator role and shared request records. The gallery does not claim that sample content is your finished business or that arbitrary new functionality appears without implementation.

Templates preserve their exact shipped design. Explicit redesigns, existing frameworks, and product-specific behavior remain coding-agent work. Credentials belong in environment variables, an ignored .dev.vars, or Worker Secrets. Installation is local to each machine; native Windows host setup has not yet been verified.

License

MIT. Dependencies retain their own licenses. Codex, Claude Code, Stripe, and Cloudflare are third-party products; OPC Harness is an independent project.

Focused fixes and reproducible reports are welcome. See CONTRIBUTING.md or open an issue.

The optional email notifications module adds explicit address verification, opt-in preferences, durable mail queues and a local HTTP inbox to either member appearance. External Resend delivery is implemented but awaits live configured-mailbox acceptance. AI execution remains deferred.