Skip to content

Repository files navigation

CtrlC + SectionPack

Node.js 20+License: MITTestsStatus

CtrlC delivers React section packs and recreation guidance from a public page you may analyze.

SectionPack dual export on every section:

  1. Natural language - function, motion, behavior, layout, color, multi-file influences
  2. Code as-is - multi-file pack (TSX + content + CSS + deps)

Not full website creation. Not HTML scraping.
React section packs + recreation guidance - local-first, rights-aware.

Why

NeedCtrlC
Isolate reusable UISection IR + specs + React section components
Hand-off to humans or agentsSection packs: brief + multi-file code
Recreation guidanceSpecs, behavior briefs, describe / prompt
Local controlCLI-first; work stays on your machine
Avoid scrapersReact reconstruction only - never ship mirrored HTML

What CtrlC is not

Not thisInstead
Full website creation productReact section packs you compose
HTML / CSS scrape or mirror hostMulti-file React packs + content modules
Pixel-perfect full-page guaranteeStructure → content → optional visual pass
Auth / ToS bypass toolPublic pages you have rights to analyze

Feature map

AreaWhat you get
Section packsCapture IR, hygiene, specs, scaffold, register, dual export
Recreation guidanceSpecs, briefs, builder prompts, describe / prompt
SectionPack toolingRecipes, catalog, graph, library, drift
Pipelineinit-clone, pipeline, tokens (--ts-*), assets, baseline
Qualityqa (--skip-build when dev runs), doctor, optional visual-diff
AgentsSkills + MCP (@ctrlc/mcp)
ShipDocker demo, CI, MIT

Public demos use the fictional Northline brand only. No third-party product clones ship in this repo.

Documentation

Hub:docs/README.md

StartLink
Getting starteddocs/guide/getting-started.md
Principlesdocs/guide/principles.md
Responsible usedocs/guide/responsible-use.md
Section pipelinedocs/workflows/hybrid-clone-pipeline.md
CLI referencedocs/reference/cli.md
ContributingCONTRIBUTING.md
ChangelogCHANGELOG.md
Completed workdocs/COMPLETED_WORK.md
Path to 1.0docs/roadmap/PATH_TO_1.0.md
Eval harnessdocs/eval/README.md

Repo layout

CtrlC/
packages/
core/ @ctrlc/core SectionPack builder + IR tools
react/ @ctrlc/react Provider, boundary, overlay
next/ @ctrlc/next API route + catalog UI
capture/ @ctrlc/capture Page IR (optional Playwright)
cli/ @ctrlc/cli ctrlc binary
mcp/ @ctrlc/mcp stdio MCP for agents
examples/
next-demo/ Northline demo (:3040)
clone-template/ empty section host
docs/ guide, concepts, reference, workflows
scripts/ scaffold, drift, parallel plan wrapper

Requirements

  • Node.js 20+ (engines on all packages; .nvmrc / .node-version pin 20)
  • npm 10+ (workspaces)
  • Optional: Playwright for live capture --url; pngjs + pixelmatch for visual-diff

Quick start (demo)

cd CtrlC
npm install
npm run build
npm test
npm run validate
npm run validate:demo
npm run dev:demo
URLWhat
http://localhost:3040Northline + SectionPack inspector
http://localhost:3040/dev/packsCatalog (search, recipes, previews)
/api/dev/section-pack?list=1Section list JSON

Keys:Ctrl/Cmd+Shift+P packs on/off · hover section → Natural language / Code as-is

npm run ctrlc -- doctor

Docker demo (optional)

npm run docker:demo
# http://localhost:3040

Build React section packs from a public page

Use only on URLs you have rights to analyze. See responsible use.

npm run build
ctrlc init-clone ../my-sections --url https://example.com --scope page
cd ../my-sections && npm install
# Live URL (needs: npm i -D playwright && npx playwright install chromium)
ctrlc pipeline --url https://example.com --cwd . --out runs/example.com
ctrlc plan-parallel --cwd . --format md
# Implement React sections from docs/research/components/*.spec.md
ctrlc register-from-spec --cwd . --spec docs/research/components/hero.spec.md
ctrlc pack hero --format describe --cwd .
ctrlc pack hero --format prompt-short --cwd .
ctrlc qa --cwd . --skip-build # while npm run dev is running

Fidelity ladder (honest):

  1. Structure - section order, ids, dual export
  2. Content - copy, CTAs, assets
  3. Visual pass - tokens, layout, polish (manual / agent; not guaranteed by capture alone)

Skill: .claude/skills/ctrlc-clone/SKILL.md
Builder prompt: docs/templates/section-builder.prompt.md

Everyday SectionPack commands

npm run ctrlc -- list --cwd examples/next-demo
npm run ctrlc -- pack hero --format describe --cwd examples/next-demo
npm run ctrlc -- pack-multi --recipe landing-core --format prompt --cwd examples/next-demo
npm run ctrlc -- graph --cwd examples/next-demo
npm run library
npm run snapshot && npm run check:drift

Principles

RuleDetail
React section packsDual export hand-off; compose a page from packs
Recreation guidanceSpecs + briefs + describe/prompt - not scrapes
Page defaultOne URL → sections; multi-page only when requested
React onlyNever HTML product dumps
Config-firstEvery section registered for packs
Responsible useRights, ToS, no phishing / brand theft

Path to 1.0 (next)

Honest MVP gaps and the prioritized climb (real-page corpus → API freeze → npm → agent reliability → distribution) live in docs/roadmap/PATH_TO_1.0.md.

npm run eval:northline # score in-repo Northline dual-export loop
npm run eval:aggregate # summarize docs/eval/results

Status

0.1.x MVP - section packs + dual export path is implemented and tested. APIs may evolve before 1.0.

ReadyNotes
Local section packs + dual exportYes
Demo + Docker + CIYes (Northline only)
MCP for agentsYes (MVP)
npm publishMetadata ready; not published yet
Live URL captureOptional Playwright peer
Full website creationNot the product

Responsible use

  • Analyze public pages you own or have permission to study.
  • Rebuild for migration, redesign, learning, or internal sandboxes - not impersonation.
  • Respect site terms; do not bypass auth or paywalls.
  • Output is a starting point for original React reimplementation, not a license to copy brand assets.

Full policy: docs/guide/responsible-use.md.

MIT license. See LICENSE.

About

CtrlC: copy page sections as React components. SectionPack dual export (natural language + code). Never HTML dumps.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages