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
@@ -0,0 +1,151 @@
1
+ <!-- AUTO-GENERATED from AGENTS.md — do not edit directly.
2
+ Run `bash scripts/sync-agent-rules.sh` to regenerate. -->
3
+
4
+ ---
5
+ description: Project conventions for AI Website Clone Template
6
+ alwaysApply: true
7
+ ---
8
+ <!-- BEGIN:nextjs-agent-rules -->
9
+ # This is NOT the Next.js you know
10
+
11
+ 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.
12
+ <!-- END:nextjs-agent-rules -->
13
+
14
+ # Website Reverse-Engineer Template
15
+
16
+ ## What This Is
17
+ A reusable template for reverse-engineering any website into a clean, modern Next.js codebase using AI coding agents. The Next.js + shadcn/ui + Tailwind v4 base is pre-scaffolded — just run `/clone-website <url1> [<url2> ...]`.
18
+
19
+ ## Tech Stack
20
+ - **Framework:** Next.js 16 (App Router, React 19, TypeScript strict)
21
+ - **UI:** shadcn/ui (Radix primitives, Tailwind CSS v4, `cn()` utility)
22
+ - **Icons:** Lucide React (default — will be replaced/supplemented by extracted SVGs)
23
+ - **Styling:** Tailwind CSS v4 with oklch design tokens
24
+ - **Deployment:** Vercel
25
+
26
+ ## Commands
27
+ - `npm run dev` — Start dev server
28
+ - `npm run build` — Production build
29
+ - `npm run lint` — ESLint check
30
+ - `npm run typecheck` — TypeScript check
31
+ - `npm run check` — Run lint + typecheck + build
32
+
33
+ ## Code Style
34
+ - TypeScript strict mode, no `any`
35
+ - Named exports, PascalCase components, camelCase utils
36
+ - Tailwind utility classes, no inline styles
37
+ - 2-space indentation
38
+ - Responsive: mobile-first
39
+
40
+ ## Design Principles
41
+ - **Pixel-perfect emulation** — match the target's spacing, colors, typography exactly
42
+ - **No personal aesthetic changes during emulation phase** — match 1:1 first, customize later
43
+ - **Real content** — use actual text and assets from the target site, not placeholders
44
+ - **Beauty-first** — every pixel matters
45
+
46
+ ## Project Structure
47
+ ```
48
+ src/
49
+ app/ # Next.js routes
50
+ components/ # React components
51
+ ui/ # shadcn/ui primitives
52
+ icons.tsx # Extracted SVG icons as React components
53
+ lib/
54
+ utils.ts # cn() utility (shadcn)
55
+ types/ # TypeScript interfaces
56
+ hooks/ # Custom React hooks
57
+ public/
58
+ images/ # Downloaded images from target site
59
+ videos/ # Downloaded videos from target site
60
+ seo/ # Favicons, OG images, webmanifest
61
+ docs/
62
+ research/ # Inspection output (design tokens, components, layout)
63
+ design-references/ # Screenshots and visual references
64
+ scripts/ # Asset download scripts
65
+ ```
66
+
67
+ ## MOST IMPORTANT NOTES
68
+ - 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.
69
+ - After editing `AGENTS.md`, run `bash scripts/sync-agent-rules.sh` to regenerate platform-specific instruction files.
70
+ - After editing `.claude/skills/clone-website/SKILL.md`, run `node scripts/sync-skills.mjs` to regenerate the skill for all platforms.
71
+
72
+ # Website Inspection Guide
73
+
74
+ ## How to Reverse-Engineer Any Website
75
+
76
+ This guide outlines what to capture when inspecting a target website via Chrome MCP or browser DevTools.
77
+
78
+ ## Phase 1: Visual Audit
79
+
80
+ ### Screenshots to Capture
81
+ - [ ] Every distinct page — desktop, tablet, mobile
82
+ - [ ] Dark mode variants (if applicable)
83
+ - [ ] Light mode variants (if applicable)
84
+ - [ ] Key interaction states (hover, active, open menus, modals)
85
+ - [ ] Loading/skeleton states
86
+ - [ ] Empty states
87
+ - [ ] Error states
88
+
89
+ ### Design Tokens to Extract
90
+ - [ ] **Colors** — background, text (primary/secondary/muted), accent, border, hover, error, success, warning
91
+ - [ ] **Typography** — font family, sizes (h1-h6, body, caption, label), weights, line heights, letter spacing
92
+ - [ ] **Spacing** — padding/margin patterns (look for a scale: 4px, 8px, 12px, 16px, 24px, 32px, etc.)
93
+ - [ ] **Border radius** — buttons, cards, avatars, inputs
94
+ - [ ] **Shadows/elevation** — card shadows, dropdown shadows, modal overlay
95
+ - [ ] **Breakpoints** — when does the layout shift? (inspect with DevTools responsive mode)
96
+ - [ ] **Icons** — which icon library? custom SVGs? sizes?
97
+ - [ ] **Avatars** — sizes, shapes, fallback behavior
98
+ - [ ] **Buttons** — all variants (primary, secondary, ghost, icon-only, danger)
99
+ - [ ] **Inputs** — text fields, textareas, selects, checkboxes, toggles
100
+
101
+ ## Phase 2: Component Inventory
102
+
103
+ For each distinct UI component, document:
104
+ 1. **Name** — what would you call this component?
105
+ 2. **Structure** — what HTML elements / child components does it contain?
106
+ 3. **Variants** — does it have different sizes, colors, or states?
107
+ 4. **States** — default, hover, active, disabled, loading, error, empty
108
+ 5. **Responsive behavior** — how does it change at different breakpoints?
109
+ 6. **Interactions** — click, hover, focus, keyboard navigation
110
+ 7. **Animations** — transitions, entrance/exit animations, micro-interactions
111
+
112
+ ### Common Components to Look For
113
+ - Navigation (top bar, sidebar, bottom bar)
114
+ - Cards / list items
115
+ - Buttons and links
116
+ - Forms and inputs
117
+ - Modals and dialogs
118
+ - Dropdowns and menus
119
+ - Tabs and segmented controls
120
+ - Avatars and user badges
121
+ - Loading skeletons
122
+ - Toast notifications
123
+ - Tooltips and popovers
124
+
125
+ ## Phase 3: Layout Architecture
126
+
127
+ - [ ] **Grid system** — CSS Grid? Flexbox? Fixed widths?
128
+ - [ ] **Column layout** — how many columns at each breakpoint?
129
+ - [ ] **Max-width** — main content area max-width
130
+ - [ ] **Sticky elements** — header, sidebar, floating buttons
131
+ - [ ] **Z-index layers** — navigation, modals, tooltips, overlays
132
+ - [ ] **Scroll behavior** — infinite scroll, pagination, virtual scrolling
133
+
134
+ ## Phase 4: Technical Stack Analysis
135
+
136
+ - [ ] **Framework** — React? Vue? Angular? Check `__NEXT_DATA__`, `__NUXT__`, `ng-version`
137
+ - [ ] **CSS approach** — Tailwind (utility classes), CSS Modules, Styled Components, Emotion, vanilla CSS
138
+ - [ ] **State management** — Redux (check DevTools), React Query, Zustand, Pinia
139
+ - [ ] **API patterns** — REST, GraphQL (check network tab for `/graphql` requests)
140
+ - [ ] **Font loading** — Google Fonts, self-hosted, system fonts
141
+ - [ ] **Image strategy** — CDN, lazy loading, srcset, WebP/AVIF
142
+ - [ ] **Animation library** — Framer Motion, GSAP, CSS transitions only
143
+
144
+ ## Phase 5: Documentation Output
145
+
146
+ After inspection, create these files in `docs/research/`:
147
+ 1. `DESIGN_TOKENS.md` — All extracted colors, typography, spacing
148
+ 2. `COMPONENT_INVENTORY.md` — Every component with structure notes
149
+ 3. `LAYOUT_ARCHITECTURE.md` — Page layouts, grid system, responsive behavior
150
+ 4. `INTERACTION_PATTERNS.md` — Animations, transitions, hover states
151
+ 5. `TECH_STACK_ANALYSIS.md` — What the site uses and our chosen equivalents