launchframe 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/.claude/skills/clone-website/SKILL.md +473 -0
  2. package/.clinerules +147 -0
  3. package/.codex/skills/clone-website/SKILL.md +473 -0
  4. package/{template/.continue → .continue}/commands/clone-website.md +475 -566
  5. package/.continue/rules/project.md +151 -0
  6. package/{template/.augment → .cursor}/commands/clone-website.md +470 -565
  7. package/.cursor/rules/project.mdc +7 -0
  8. package/{template/.gemini → .gemini}/commands/clone-website.toml +476 -567
  9. package/.github/copilot-instructions.md +147 -0
  10. package/.github/skills/clone-website/SKILL.md +473 -0
  11. package/.gitignore +49 -0
  12. package/{template/.opencode → .opencode}/commands/clone-website.md +473 -564
  13. package/{template/.cursor/commands → .windsurf/workflows}/clone-website.md +470 -561
  14. package/AGENTS.md +65 -0
  15. package/README.md +137 -31
  16. package/bin/launchframe.mjs +343 -315
  17. package/docs/research/INSPECTION_GUIDE.md +80 -0
  18. package/package.json +71 -26
  19. package/{template/src → src}/app/globals.css +1 -93
  20. package/{template/src → src}/app/layout.tsx +16 -5
  21. package/src/app/page.tsx +40 -0
  22. package/src/lib/launchframe-config.ts +8 -0
  23. package/template/.amazonq/cli-agents/clone-website.json +0 -9
  24. package/template/.amazonq/rules/project.md +0 -281
  25. package/template/.claude/skills/clone-website/SKILL.md +0 -564
  26. package/template/.claude/skills/marketing-social-proof-motion/SKILL.md +0 -47
  27. package/template/.clinerules +0 -285
  28. package/template/.codex/skills/clone-website/SKILL.md +0 -564
  29. package/template/.continue/rules/project.md +0 -285
  30. package/template/.cursor/commands/marketing-social-proof-motion.md +0 -42
  31. package/template/.cursor/rules/project.mdc +0 -22
  32. package/template/.github/copilot-instructions.md +0 -281
  33. package/template/.github/skills/clone-website/SKILL.md +0 -564
  34. package/template/.nvmrc +0 -1
  35. package/template/.windsurf/workflows/clone-website.md +0 -561
  36. package/template/AGENTS.md +0 -160
  37. package/template/LICENSE +0 -21
  38. package/template/README.md +0 -121
  39. package/template/START_HERE.md +0 -15
  40. package/template/docs/design-references/playwright-example.com-1440px.png +0 -0
  41. package/template/docs/design-references/playwright-example.com-390px.png +0 -0
  42. package/template/docs/research/INSPECTION_GUIDE.md +0 -124
  43. package/template/launchframe.config.json +0 -14
  44. package/template/package-lock.json +0 -9873
  45. package/template/package.json +0 -54
  46. package/template/scripts/.gitkeep +0 -0
  47. package/template/scripts/recon-playwright.mjs +0 -396
  48. package/template/src/app/page.tsx +0 -5
  49. package/template/src/components/marketing/scribewise-landing.tsx +0 -34
  50. package/template/src/hooks/.gitkeep +0 -0
  51. package/template/src/types/.gitkeep +0 -0
  52. /package/{template/.aider.conf.yml → .aider.conf.yml} +0 -0
  53. /package/{template/.dockerignore → .dockerignore} +0 -0
  54. /package/{template/.gitattributes → .gitattributes} +0 -0
  55. /package/{template/.github → .github}/ISSUE_TEMPLATE/bug_report.yml +0 -0
  56. /package/{template/.github → .github}/ISSUE_TEMPLATE/config.yml +0 -0
  57. /package/{template/.github → .github}/ISSUE_TEMPLATE/feature_request.yml +0 -0
  58. /package/{template/.github → .github}/PULL_REQUEST_TEMPLATE.md +0 -0
  59. /package/{template/.github → .github}/copilot-setup-steps.yml +0 -0
  60. /package/{template/.github → .github}/workflows/ci.yml +0 -0
  61. /package/{template/.windsurfrules → .windsurfrules} +0 -0
  62. /package/{template/CLAUDE.md → CLAUDE.md} +0 -0
  63. /package/{template/Dockerfile → Dockerfile} +0 -0
  64. /package/{template/Dockerfile.dev → Dockerfile.dev} +0 -0
  65. /package/{template/GEMINI.md → GEMINI.md} +0 -0
  66. /package/{template/components.json → components.json} +0 -0
  67. /package/{template/docker-compose.yml → docker-compose.yml} +0 -0
  68. /package/{template/docs → docs}/design-references/.gitkeep +0 -0
  69. /package/{template/docs → docs}/design-references/comparison.png +0 -0
  70. /package/{template/eslint.config.mjs → eslint.config.mjs} +0 -0
  71. /package/{template/next.config.ts → next.config.ts} +0 -0
  72. /package/{template/postcss.config.mjs → postcss.config.mjs} +0 -0
  73. /package/{template/public/images → scripts}/.gitkeep +0 -0
  74. /package/{template/scripts → scripts}/sync-agent-rules.sh +0 -0
  75. /package/{template/scripts → scripts}/sync-skills.mjs +0 -0
  76. /package/{template/src → src}/app/favicon.ico +0 -0
  77. /package/{template/src → src}/components/ui/button.tsx +0 -0
  78. /package/{template/public/seo → src/hooks}/.gitkeep +0 -0
  79. /package/{template/src → src}/lib/utils.ts +0 -0
  80. /package/{template/public/videos → src/types}/.gitkeep +0 -0
  81. /package/{template/tsconfig.json → tsconfig.json} +0 -0
@@ -1,160 +0,0 @@
1
- <!-- BEGIN:nextjs-agent-rules -->
2
- # This is NOT the Next.js you know
3
-
4
- This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
5
- <!-- END:nextjs-agent-rules -->
6
-
7
- # Launchframe Project (AI Website Cloner + SaaS Rebrand)
8
-
9
- ## What This Is
10
- This project was scaffolded by [Launchframe](https://github.com/evangruhlkey/launchframe) via `npx launchframe@latest <url> "<saas idea>"`. It is a Next.js + shadcn/ui + Tailwind v4 base wired with an AI-cloner skill (`/clone-website`) that reverse-engineers a real website pixel-perfectly and then re-skins its copy/branding for the user's SaaS idea.
11
-
12
- ## Single Source of Truth: `launchframe.config.json`
13
- At the project root there is a `launchframe.config.json` containing:
14
- - `url` — the visual source-of-truth to clone
15
- - `idea` — the SaaS idea used as the rebranding directive after the clone
16
-
17
- **Always read this file first** at the start of any cloning or build task. The `/clone-website` skill depends on it.
18
-
19
- ## What the user says (zero-setup flow)
20
- Users scaffold with `npx launchframe@latest <url> "<saas idea>"` — `npm install` already ran — then they open this folder and say **Build it** (or **Go**, **Ship it**, **Clone the site**).
21
-
22
- When you see that with no other instructions, **start the full clone-website pipeline immediately** using only `launchframe.config.json` for `url` and `idea`. Do not ask them to repeat the URL unless the config is missing or invalid. `/clone-website` is an alias for the same work.
23
-
24
- ## Tech Stack
25
- - **Framework:** Next.js 16 (App Router, React 19, TypeScript strict)
26
- - **UI:** shadcn/ui (Radix primitives, Tailwind CSS v4, `cn()` utility)
27
- - **Motion:** **Framer Motion** (`framer-motion`) — **default for non-trivial animation** (scroll reveals, staggers, layout, gestures). Use CSS `transition` / `@keyframes` only when they reproduce the target exactly without JS.
28
- - **Icons:** Lucide React (default — will be replaced/supplemented by extracted SVGs)
29
- - **Styling:** Tailwind CSS v4 with oklch design tokens
30
- - **Media:** Real **images & videos** from the target URL, saved under `public/images/` and `public/videos/` (see `.claude/skills/clone-website/SKILL.md` and `docs/research/INSPECTION_GUIDE.md`). Do not ship a “pretty shell” with missing raster/video unless extraction is **blocked** and documented in `docs/research/EXTRACTION_LIMITATIONS.md`.
31
- - **Deployment:** Vercel
32
-
33
- ## Priority: images, videos & motion
34
- Treat these as **first-class deliverables**, not polish at the end.
35
-
36
- 1. **Raster & video** — Early in recon, inventory every `<img>`, `<picture>` / `<source>`, `<video>`, poster image, and meaningful `background-image` URL. Download into `public/` and reference **local paths** in specs and components. Hero bands and marketing sections often fail visually when a single layer is skipped.
37
- 2. **Motion** — Match the target’s feel: easing, duration, stagger, scroll triggers. Prefer **`motion` from `framer-motion`** for entrance sequences, viewport-driven animations, shared-layout-style transitions, and anything beyond a one-off CSS transition. Note in each component spec whether behavior is **CSS-only** vs **Framer Motion**.
38
- 3. **Illustration & brand marks** — Inline **SVG React components** (not only Lucide) for motifs that repeat across sections: logo glyph variants, dividers, grain/noise overlays, hero “scene” shapes, feature-card mini-compositions. Prefer **`currentColor`** + CSS variables so SVGs inherit theme tokens. For **pixel art**, keep a tight palette (4–8 fills), consistent pixel grid logic, and use `style={{ imageRendering: "pixelated" }}` on upscaled raster OR build pixel SVG paths intentionally — never blurry upscale.
39
-
40
- ## Production polish for marketing landings *(idea-tailored visuals + motion + brand)*
41
-
42
- Use this whenever the page is **authored or minimalist** (internal templates, rebranded clones that still feel flat, or targets that are mostly typography). “Looks OK” is not ship-ready — **production landings** stack multiple visual layers, choreographed motion, and cues that clearly belong to **this** product (`launchframe.config.json#idea`), not any SaaS.
43
-
44
- ### Idea-tailored imagery *(uniqueness bar)*
45
-
46
- Generic decoration fails review. Apply this to **every** hero composition, feature-card illustration, OG image sketch, and major `public/` marketing raster.
47
-
48
- 1. **Derive metaphors from the idea** — Read `idea` (and product name). List 3–6 concrete nouns/verbs the product owns (e.g. voice → waveform, mic; notes → folded page, margin line; sync → paired arrows). Every bespoke visual must trace back to that list — **not** interchangeable clipart (random apparel, unrelated lifestyle objects, vague “business” silhouettes unless the idea demands them).
49
- 2. **Could this ship on another site unchanged?** If yes, redesign until **no** — different silhouette story, palette accent, or composition so the asset “only fits” this narrative.
50
- 3. **One tie-in sentence per asset** — In specs or `docs/research/REBRAND.md`, each image/SVG scene gets **Idea tie-in:** `<why this belongs to this product>`.
51
- 4. **Prefer authored scenes** — Custom SVG narratives (several shapes telling one moment), optional pixel mascot **on-brand** for the category, or composed raster under `public/images/marketing/` when illustration needs texture. Lucide-only piles and neutral blobs are **last resort**, not default.
52
- 5. **Distinct accents** — Pick accent hues/shapes suggested by the idea’s personality (precise studio vs warm companion vs rugged utility); avoid default gray-only SaaS anonymity unless the brief is explicitly brutalist.
53
-
54
- ### Imagery density (every fold earns a visual idea)
55
-
56
- - **Hero** — Never headline-only on white: add at least two of — soft gradient mesh / radial spotlight, **idea-specific** SVG cluster (metaphors from the list above), notebook/grid lines when the idea is docs, waveform device frame when the idea is capture, masked **purpose-built** raster in `public/images/marketing/`, geometric frame echoing **this** logo shape.
57
- - **Between sections** — Optional dividers whose pattern/stroke **echoes the product motif** (not a stock wave).
58
- - **Feature rows** — Each card illustration is a **different** moment in the same visual language (shared stroke weight, accent, or grid) — all still **idea-native** (e.g. capture → transcript lines; workspace → shared cursors; publish → export channels). No unrelated filler.
59
- - **Social proof** — Logo strip may use grayscale marks; add **slow infinite marquee** or gentle opacity drift — motion sells “living product.” Name recognizable companies where appropriate; use lawful logo marks under `public/images/logos/` (or generate **original** tiles — never counterfeit trademarks). Full workflow: **`.claude/skills/marketing-social-proof-motion/SKILL.md`** · Cursor **`/marketing-social-proof-motion`**.
60
-
61
- ### Motion choreography *(ship several layers; respect `prefers-reduced-motion`)*
62
-
63
- Default minimum bar for authored landings — implement with **`framer-motion`** unless matching CSS-only parity:
64
-
65
- | Tier | What users feel | Typical implementation |
66
- |------|-----------------|-------------------------|
67
- | **A — Page load** | Hero headline, subcopy, CTAs, and hero art **stagger in** (opacity + `y`, or blur-in for type) | Parent `variants` + `staggerChildren`; durations 0.35–0.7s, ease `[0.22, 1, 0.36, 1]` or springs |
68
- | **B — Scroll** | Sections **ease up / fade** on first viewport entry; grids **stagger cards** | `whileInView` + `viewport.once`; `margin: "-80px"` tweak so reveals feel early |
69
- | **C — Looping ambient** | Logo strip marquee; gradient drift; subtle SVG stroke dashoffset loop; “thinking…” **typing caret** | CSS `@keyframes` or Framer `animate` repeat; keep amplitude **low** |
70
- | **D — Interaction** | Buttons scale/shine on hover; cards **lift** (`translateY`, shadow); nav **backdrop blur / height** past threshold | `whileHover`, `whileTap`; scroll listener or Framer scroll hooks for nav |
71
- | **E — Decorative depth** | Pointer parallax on hero cluster (2–4 layers at different strengths) OR scroll-linked `useTransform` | Small rotate/translate ranges (≤ 8px / ≤ 2deg) |
72
-
73
- Always gate looping motion: **`useReducedMotion()`** from Framer Motion — swap loops for static frames and shorten entrances.
74
-
75
- ### Brandability checklist *(distinctive, not generic SaaS gray)*
76
-
77
- - **Motif thread** — One recurring visual hook (pen stroke, folded page corner, hub spark, pixel creature) reused in hero, favicon, OG image sketch, and one feature illustration.
78
- - **Accent discipline** — Define **primary + secondary accent** in `:root` (even if mostly monochrome). Use accents on CTAs, SVG highlights, focus rings — not rainbow scatter.
79
- - **Wordmark lockup** — SVG glyph + tracked type; provide **icon-only** variant for favicon / meta.
80
- - **OG & SEO assets** — Generate **`public/seo/og.png`** (or route og image) that includes motif + product name — not a bare screenshot.
81
-
82
- ### Where artifacts live
83
-
84
- - **Raster/video** — `public/images/`, `public/videos/` (see `MEDIA_MANIFEST.md`).
85
- - **SVG React illustrations** — Prefer `src/components/marketing/art/` or co-located `*-scene.tsx` modules; export named components (`HeroBackdrop`, `FeatureCaptureIllustration`).
86
- - **Pixel art** — Same folder pattern; document palette in file header comment.
87
-
88
- ### Spec requirement *(hand-off quality)*
89
-
90
- When writing `docs/research/components/*.spec.md`, add sections **Illustration** (**Idea tie-in** per asset, layers, SVG components, raster paths) and expand **Motion** with tier **A–E** coverage and reduced-motion fallback. Builders should not invent motion ad hoc — the spec states durations and triggers.
91
-
92
- ## Commands
93
- - `npm run dev` — Start dev server
94
- - `npm run build` — Production build
95
- - `npm run lint` — ESLint check
96
- - `npm run typecheck` — TypeScript check
97
- - `npm run check` — Run lint + typecheck + build
98
- - **`npm run recon`** — **Playwright**: stabilized **full-document** scrolling at **desktop + mobile**, merged **`computed-snapshot.json`** + **`MEDIA_MANIFEST.md`**, **full-page** screenshots under `docs/design-references/` (use when Browser MCP / Chrome DevTools MCP is broken or missing)
99
- - **`npm run recon:headed`** — Same as `recon` but **headed** Chromium (often better for WAF / “Just a moment…” pages)
100
-
101
- **Playwright browser binaries (once per machine):** `npx playwright install chromium`
102
-
103
- ## When Browser MCP is down
104
- Prefer **Playwright** for repeatable extraction in-repo — do **not** rely on Chrome DevTools MCP alone.
105
-
106
- ### Full landing coverage (agents + automation)
107
-
108
- Whether using MCP or Playwright, extraction must cover the **entire visible landing** (hero → footer): slow-scroll until lazy content settles, then **`fullPage`** screenshots — never treat “what fits in one viewport” as sufficient for inventory or specs.
109
-
110
- 1. Run **`npm run recon`** (or **`npm run recon:headed`** if headless hits a challenge page).
111
- 2. Read **`docs/research/computed-snapshot.json`**, **`docs/research/MEDIA_MANIFEST.md`**, and **`docs/research/EXTRACTION_LIMITATIONS.md`** before writing specs.
112
- 3. Fill **`scripts/download-assets.mjs`** from `MEDIA_MANIFEST.md` and run it to populate `public/images/` and `public/videos/`.
113
-
114
- ## Code Style
115
- - TypeScript strict mode, no `any`
116
- - Named exports, PascalCase components, camelCase utils
117
- - Tailwind utility classes, no inline styles
118
- - 2-space indentation
119
- - Responsive: mobile-first
120
-
121
- ## Design Principles
122
- - **Images & video fidelity** — prefer real downloaded assets; preserve aspect ratio, `object-fit`, layering, and poster frames. Rebrand pass may **swap** URLs for IP-safe alternates but must keep layout identical.
123
- - **Motion fidelity** — timing and easing matter as much as color; use Framer Motion when CSS alone cannot match staggered or scroll-driven behavior.
124
- - **Idea-specific imagery** — Marketing art (SVG, raster, OG) must be **tailored to `launchframe.config.json#idea`**: explicit metaphors, per-asset **Idea tie-in** notes, and **no interchangeable filler** that could belong to any generic SaaS.
125
- - **Production landing density** — For authored/minimal pages, deliberately add **idea-specific** illustration (not generic SaaS filler), **pixel-art accents** when they reinforce the metaphor, and **tiered motion (A–E)** per “Production polish” above; static monochrome layouts are incomplete unless the user explicitly wants extreme minimalism.
126
- - **Pixel-perfect emulation** — match the target's spacing, colors, typography exactly
127
- - **No personal aesthetic changes during emulation phase** — match 1:1 first, rebrand later
128
- - **Real content during extraction** — use actual text and assets from the target site so the clone scaffolds against real shapes
129
- - **Rebrand pass swaps copy, not visuals** — once the clone is built, replace product name, headlines, feature copy, and brand marks with content tuned to `launchframe.config.json#idea`. Do NOT alter spacing, color tokens, typography scale, animations, or responsive breakpoints during the rebrand.
130
- - **Beauty-first** — every pixel matters
131
-
132
- ## Project Structure
133
- ```
134
- src/
135
- app/ # Next.js routes
136
- components/ # React components
137
- ui/ # shadcn/ui primitives
138
- marketing/ # Landing sections + authored SVG scenes (`art/` recommended)
139
- icons.tsx # Extracted SVG icons as React components
140
- lib/
141
- utils.ts # cn() utility (shadcn)
142
- types/ # TypeScript interfaces
143
- hooks/ # Custom React hooks
144
- public/
145
- images/ # Downloaded images from target site
146
- videos/ # Downloaded videos from target site
147
- seo/ # Favicons, OG images, webmanifest
148
- docs/
149
- research/ # Inspection output (design tokens, components, layout)
150
- design-references/ # Screenshots and visual references
151
- scripts/ # Asset download scripts
152
- ```
153
-
154
- ## MOST IMPORTANT NOTES
155
- - **Always start by reading `launchframe.config.json`** — that file dictates the URL to clone and the SaaS idea to re-skin for.
156
- - When launching Claude Code agent teams, ALWAYS have each teammate work in their own worktree branch and merge everyone's work at the end, resolving any merge conflicts smartly since you are basically serving the orchestrator role and have full context to our goals, work given, work achieved, and desired outcomes.
157
- - After editing `AGENTS.md`, run `bash scripts/sync-agent-rules.sh` to regenerate platform-specific instruction files.
158
- - After editing `.claude/skills/clone-website/SKILL.md`, run `node scripts/sync-skills.mjs` to regenerate the skill for all platforms.
159
-
160
- @docs/research/INSPECTION_GUIDE.md
package/template/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 JCodesMore
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,121 +0,0 @@
1
- # Launchframe Project
2
-
3
- This project was scaffolded by **[Launchframe](https://github.com/evangruhlkey/launchframe)** — an AI-powered website cloner + SaaS rebrander.
4
-
5
- ```bash
6
- npx launchframe@latest <url> "<saas idea>"
7
- ```
8
-
9
- Dependencies were installed for you. Files were written to **this directory** (project root) so **`.cursor`**, **`.claude`**, etc. work when you open this folder in your editor. Config lives in **`launchframe.config.json`** (`url` + SaaS `idea`).
10
-
11
- ---
12
-
13
- ## Quick start (two steps)
14
-
15
- 1. **Open this folder** in [Cursor](https://cursor.com/) — the directory that **contains** `.cursor/` (not a parent folder).
16
- 2. In chat, say: **Build it.**
17
-
18
- Your AI reads [`launchframe.config.json`](./launchframe.config.json) and [`AGENTS.md`](./AGENTS.md) and runs the full clone + rebrand pipeline (same as **`/clone-website`**).
19
-
20
- Rather read a postcard? See [`START_HERE.md`](./START_HERE.md).
21
-
22
- ## What `/clone-website` does
23
-
24
- A multi-phase pipeline runs inside your AI agent:
25
-
26
- 1. **Reconnaissance** — screenshots, design-token extraction, **image/video inventory** (`MEDIA_MANIFEST.md`), interaction sweep (scroll, click, hover, responsive)
27
- 2. **Foundation** — fonts, globals, **`framer-motion`**, **download images & videos** to `public/` before most UI build
28
- 3. **Component Specs** — writes detailed spec files (`docs/research/components/`) with exact CSS, **local media paths**, and **Motion** (CSS vs Framer)
29
- 4. **Parallel Build** — dispatches builder agents in git worktrees, one per section
30
- 5. **SaaS Rebrand Pass** — swaps product name, headlines, feature copy, CTAs, and brand marks to match `launchframe.config.json#idea`. Visuals stay 1:1.
31
- 6. **Assembly & Visual QA** — merges worktrees, wires up the page, runs visual diff against the original
32
-
33
- Each builder agent receives the full component spec inline — exact `getComputedStyle()` values, interaction models, multi-state content, responsive breakpoints, asset paths. No guessing.
34
-
35
- ## Supported AI Agents
36
-
37
- | Agent | Status |
38
- | ------------------------------------------------------------- | -------------------------- |
39
- | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | **Recommended** — Opus 4.7 |
40
- | [Codex CLI](https://github.com/openai/codex) | Supported |
41
- | [OpenCode](https://opencode.ai/) | Supported |
42
- | [GitHub Copilot](https://github.com/features/copilot) | Supported |
43
- | [Cursor](https://cursor.com/) | Supported |
44
- | [Windsurf](https://codeium.com/windsurf) | Supported |
45
- | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | Supported |
46
- | [Cline](https://github.com/cline/cline) | Supported |
47
- | [Roo Code](https://github.com/RooCodeInc/Roo-Code) | Supported |
48
- | [Continue](https://continue.dev/) | Supported |
49
- | [Amazon Q](https://aws.amazon.com/q/developer/) | Supported |
50
- | [Augment Code](https://www.augmentcode.com/) | Supported |
51
- | [Aider](https://aider.chat/) | Supported |
52
-
53
- ## Tech Stack
54
-
55
- - **Next.js 16** — App Router, React 19, TypeScript strict
56
- - **shadcn/ui** — Radix primitives + Tailwind CSS v4
57
- - **Tailwind CSS v4** — oklch design tokens
58
- - **Framer Motion** — default for non-trivial marketing animation (scroll reveals, staggers, layout); see `AGENTS.md`
59
- - **Lucide React** — default icons (replaced by extracted SVGs during cloning)
60
- - **Media** — targets download to `public/images/` & `public/videos/` per `docs/research/MEDIA_MANIFEST.md` (see `INSPECTION_GUIDE.md`)
61
-
62
- ## Prerequisites
63
-
64
- - [Node.js](https://nodejs.org/) 24+
65
- - An AI coding agent with browser automation MCP **or** [Playwright](https://playwright.dev/) for `npm run recon` when MCP is unavailable
66
- - **First-time Playwright browsers:** after `npm install`, run `npx playwright install chromium`
67
-
68
- ## Project Structure
69
-
70
- ```
71
- src/
72
- app/ # Next.js routes
73
- components/ # React components
74
- ui/ # shadcn/ui primitives
75
- icons.tsx # Extracted SVG icons
76
- lib/utils.ts # cn() utility
77
- types/ # TypeScript interfaces
78
- hooks/ # Custom React hooks
79
- public/
80
- images/ # Downloaded images from target
81
- videos/ # Downloaded videos from target
82
- seo/ # Favicons, OG images
83
- docs/
84
- research/ # Extraction output, component specs, REBRAND.md
85
- design-references/ # Screenshots
86
- scripts/
87
- sync-agent-rules.sh # Regenerate agent instruction files
88
- sync-skills.mjs # Regenerate /clone-website for all platforms
89
- launchframe.config.json # ← URL + SaaS idea (single source of truth)
90
- AGENTS.md # Agent instructions (single source of truth)
91
- START_HERE.md # "Open Cursor → say Build it"
92
- CLAUDE.md # Claude Code config (imports AGENTS.md)
93
- GEMINI.md # Gemini CLI config (imports AGENTS.md)
94
- ```
95
-
96
- ## Commands
97
-
98
- ```bash
99
- npm run dev # Start dev server
100
- npm run build # Production build
101
- npm run lint # ESLint check
102
- npm run typecheck # TypeScript check
103
- npm run check # Run lint + typecheck + build
104
- ```
105
-
106
- ## Use Cases
107
-
108
- - **Launch a SaaS faster** — start from a proven landing page, not a blank canvas
109
- - **Platform migration** — rebuild a site you own from WordPress/Webflow/Squarespace into a modern Next.js codebase
110
- - **Lost source code** — your site is live but the repo is gone; get the code back in a modern format
111
- - **Learning** — deconstruct how production sites achieve specific layouts, animations, and responsive behavior
112
-
113
- ## Not Intended For
114
-
115
- - **Phishing or impersonation** — this project must not be used for deceptive purposes, impersonation, or any activity that breaks the law
116
- - **Passing off someone's design as your own** — logos, brand assets, and original copy belong to their owners
117
- - **Violating terms of service** — some sites prohibit scraping or reproduction. Check first
118
-
119
- ## License
120
-
121
- MIT
@@ -1,15 +0,0 @@
1
- # Start here
2
-
3
- Launchframe wrote files into **this folder** (your project root), including **`.cursor`** and **`.claude`**, so they work when you open this directory in your editor.
4
-
5
- ## Do this next
6
-
7
- 1. **Open this folder** in [Cursor](https://cursor.com/) (the root that contains `.cursor` — not a parent directory).
8
- 2. In chat, say: **Build it.**
9
-
10
- That tells your AI to read `launchframe.config.json` and `AGENTS.md` and run the full **clone + SaaS rebrand** pipeline (same work as `/clone-website`).
11
-
12
- ## Optional
13
-
14
- - Prefer a slash command? Use **`/clone-website`** in Cursor.
15
- - Wrong URL or idea? Edit **`launchframe.config.json`**, then say **Build it** again.
@@ -1,124 +0,0 @@
1
- # Website Inspection Guide
2
-
3
- ## Priority (read first): media & motion
4
-
5
- Launchframe clones live pages for a **visual** result. Two things most often separate a convincing build from a hollow one:
6
-
7
- ### 1. Images & video (do this before obsessing over utility classes)
8
-
9
- - [ ] **Every `<img>`** — `src` / `srcset` / `currentSrc`, `sizes`, `loading`, `decoding`, `alt`, intrinsic dimensions
10
- - [ ] **`<picture>` / `<source>`** — resolution switches, art direction, `type` (WebP/AVIF)
11
- - [ ] **Every `<video>`** — `src` + nested `<source>`, **poster**, `autoplay`, `loop`, `muted`, `playsinline`, `controls`
12
- - [ ] **Background images** — `background-image` on ancestors (hero stacks are often **layers** of img + gradient + PNG mockup)
13
- - [ ] **Lazy / below-fold** — scroll the page once before asset discovery so `data-src` / lazy-loaded URLs resolve if the site uses them
14
- - [ ] **Download** — mirror into `public/images/` and `public/videos/` with stable paths; list failures in `docs/research/EXTRACTION_LIMITATIONS.md`
15
-
16
- If automation hits a bot wall, **do not pretend extraction succeeded** — capture what you can from successful fetches and document gaps.
17
-
18
- ### 2. Motion (prefer Framer Motion in this repo)
19
-
20
- - [ ] **Entrance** — fade/slide/scale on mount or on **scroll into view** (note threshold / `margin`)
21
- - [ ] **Stagger** — children animating in sequence (hero bullets, card grids)
22
- - [ ] **Scroll-linked** — progress, parallax, pinned sections (may combine with CSS `animation-timeline` or libs)
23
- - [ ] **Gestures** — drag, pan, hover follow (often Framer Motion)
24
- - [ ] **Implementation rule** — use **`framer-motion`** for anything beyond trivial single-property CSS `transition`. Record **duration, easing, delay, stagger**, and **trigger** (scroll, hover, tap) in specs.
25
-
26
- ### 3. Idea-tailored illustration & motifs *(production landings)*
27
-
28
- When the reference page is **sparse** (mostly type + gray boxes) or after a **rebrand** the UI still reads generic, illustration is required — and it must be **unique to the SaaS idea** (`launchframe.config.json#idea`), not reusable wallpaper.
29
-
30
- - [ ] **Metaphor list** — 3–6 nouns/verbs derived from `idea`; every bespoke asset maps to ≥ one entry
31
- - [ ] **Uniqueness check** — If the scene works unchanged for another product category, revise
32
- - [ ] **Inline SVG** — hero shapes, dividers, card mini-scenes; note `viewBox`, **`currentColor`** vs fixed fills, **Idea tie-in** sentence per asset
33
- - [ ] **Pixel art / sprites** — only when character reinforces the metaphor; palette hex table; `imageRendering` / grid discipline
34
- - [ ] **Motif thread** — recurring element echoing hero + OG + favicon **for this product**, not a random geometric pattern
35
- - [ ] **Accent tokens** — primary/secondary roles aligned with idea personality (extract from reference or define in `:root`)
36
- - [ ] **Motion tiers A–E** — document with **reduced-motion** fallback (`prefers-reduced-motion`)
37
-
38
- See **`AGENTS.md` → Production polish for marketing landings** for tier definitions and folders (`src/components/marketing/art/`, `public/images/marketing/`).
39
-
40
- ---
41
-
42
- ## How to Reverse-Engineer Any Website
43
-
44
- This guide outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.
45
-
46
- ## Phase 1: Visual Audit
47
-
48
- ### Screenshots to Capture
49
- - [ ] **Single-page landing — full scroll depth** — slow-scroll until lazy sections stabilize; **`fullPage`** / stitched capture so footer and below-fold bands are included (not viewport-only hero grabs)
50
- - [ ] Every distinct page — desktop, tablet, mobile
51
- - [ ] Dark mode variants (if applicable)
52
- - [ ] Light mode variants (if applicable)
53
- - [ ] Key interaction states (hover, active, open menus, modals)
54
- - [ ] Loading/skeleton states
55
- - [ ] Empty states
56
- - [ ] Error states
57
- - [ ] **Video frames** — capture a frame mid-play for reference if motion is subtle
58
- - [ ] **Hero / full-bleed** — wide crops where raster layers are easy to miss
59
-
60
- ### Design Tokens to Extract
61
- - [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning
62
- - [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing
63
- - [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)
64
- - [ ] **Border radius** — buttons, cards, avatars, inputs
65
- - [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay
66
- - [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)
67
- - [ ] **Icons** — which icon library? custom SVGs? sizes?
68
- - [ ] **Avatars** — sizes, shapes, fallback behavior
69
- - [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)
70
- - [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles
71
-
72
- ## Phase 2: Component Inventory
73
-
74
- For each distinct UI component, document:
75
- 1. **Name** — what would you call this component?
76
- 2. **Structure** — what HTML elements / child components does it contain?
77
- 3. **Variants** — does it have different sizes, colors, or states?
78
- 4. **States** — default, hover, active, disabled, loading, error, empty
79
- 5. **Responsive behavior** — how does it change at different breakpoints?
80
- 6. **Interactions** — click, hover, focus, keyboard navigation
81
- 7. **Animations** — transitions, entrance/exit, micro-interactions — **`framer-motion` vs CSS** and exact timing
82
-
83
- ### Common Components to Look For
84
- - Navigation (top bar, sidebar, bottom bar)
85
- - Cards / list items
86
- - Buttons and links
87
- - Forms and inputs
88
- - Modals and dialogs
89
- - Dropdowns and menus
90
- - Tabs and segmented controls
91
- - Avatars and user badges
92
- - Loading skeletons
93
- - Toast notifications
94
- - Tooltips and popovers
95
- - **Video / Lottie / canvas** blocks (do not substitute with static mockups without documenting why)
96
-
97
- ## Phase 3: Layout Architecture
98
-
99
- - [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?
100
- - [ ] **Column layout** — how many columns at each breakpoint?
101
- - [ ] **Max-width** — main content area max-width
102
- - [ ] **Sticky elements** — header, sidebar, floating buttons
103
- - [ ] **Z-index layers** — navigation, modals, tooltips, overlays
104
- - [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling
105
-
106
- ## Phase 4: Technical Stack Analysis
107
-
108
- - [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`
109
- - [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS
110
- - [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia
111
- - [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)
112
- - [ ] **Font loading** — Google Fonts, self-hosted, system fonts
113
- - [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF — **mirror URLs you are allowed to fetch**
114
- - [ ] **Animation library** — site may use GSAP, Lottie, Rive, or CSS only — **in the Next.js clone, default to Framer Motion** unless a different lib is required for parity
115
-
116
- ## Phase 5: Documentation Output
117
-
118
- After inspection, create these files in `docs/research/`:
119
- 1. `DESIGN_TOKENS.md` — All extracted colors, typography, spacing
120
- 2. `COMPONENT_INVENTORY.md` — Every component with structure notes
121
- 3. **`MEDIA_MANIFEST.md`** — (recommended) Table of every image/video/poster URL → local `public/` path or “blocked”
122
- 4. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior
123
- 5. `INTERACTION_PATTERNS.md` — Animations: **CSS vs Framer Motion**, transitions, hover states
124
- 6. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents (Framer Motion for React animation)
@@ -1,14 +0,0 @@
1
- {
2
- "$schema": "https://launchframe.dev/schema/launchframe.config.json",
3
- "url": "https://vercel.com/",
4
- "idea": "saas-idea",
5
- "createdAt": "2026-05-15T00:27:49.833Z",
6
- "launchframeVersion": "0.2.6",
7
- "notes": [
8
- "The /clone-website skill reads this file at the start of every run.",
9
- "After scaffold: open this folder in Cursor (or your AI editor) and say **Build it** — same workflow.",
10
- "`url` is the visual source-of-truth (clone its layout, spacing, tokens, motion).",
11
- "`idea` is the rebranding directive applied AFTER the pixel-perfect clone.",
12
- "Edit either field and re-invoke the skill to re-run."
13
- ]
14
- }