
# userea.fun launch clone — clean-room reimplementation This is a clean-room rebuild of the **userea.fun /launch** page: a pump.fun-style memecoin launchpad whose trading fees fund an AI agent that reverse engineers a target and rebuilds it as working code. It reproduces the *behaviour* of the original launch page — the four-step wizard, image upload, metadata preparation, Solana transaction signing flow, wallet connection, live preview pane with phase tracking, and the fee-funded agent narrative — with no proprietary code copied from userea.fun. ## What the original does (reverse-engineered findings) | Area | Finding | |------|---------| | Stack | Next.js app, 48 JS scripts, AppKit wallet integration | | Flow | 4-step wizard: coin details → target links → model → launch (dev buy) | | Upload | `POST /api/upload` — pins the coin image (PNG/JPG/WEBP/GIF, ≤5 MB) to IPFS | | Prepare | `POST /api/launch/prepare` — pins metadata, derives a per-coin fee vault, builds the Solana transaction | | Submit | `POST /api/launch/submit` — wallet signs as fee payer, broadcasts `create_v2` (+ optional dev buy) in one transaction | | On-chain | pump.fun bonding curve via `create_v2`; the vault (not the user's wallet) is the on-chain creator, so creator fees accrue to the agent's compute budget | | Fees | ~0.02 SOL rent/fees plus optional dev buy (0–50 SOL); agent starts work once ≥$5 of creator fees has accrued | | Preview | Right-hand pane shows ticker, market cap, volume, fees, phase (Research → Reverse → Build → Shipped) and compute remaining | ## What this clone does - Serves the same four-step launch wizard UI at `/launch` - Accepts image upload, name, ticker, description, website, X handle - Accepts target links (website, repository, app, package, contract, docs) plus an agent note - Model picker with pricing (default: Claude Sonnet 5.5, $2 in / $10 out per 1M) - Dev buy slider (0–2 SOL in this demo; original allows 0–50) - Mock wallet connect/sign flow (standalone, no real Solana keys) - Calls `/api/upload`, `/api/launch/prepare`, `/api/launch/submit` - Shows a right-side preview pane: idle → preparing → signing → confirming → confirmed - Phase tracker: Research → Reverse → Build → Shipped, with "Compute · waiting on fees · $0.00 left" until simulated dev buy/creator fees accrue ## How to run ```bash # 1. Install dependencies npm install # 2. Start the server npm start # 3. Open the launch page open http://localhost:3000/launch ``` The app is a single-file Express server (`server.js`) with the frontend served from `public/`. No build step, no external wallet SDK, no real blockchain — it simulates the signing/confirmation flow so you can click through the whole wizard and see the preview pane advance. ## Project layout ``` server.js # Express server + /api/upload, /api/launch/prepare, /api/launch/submit public/ index.html # Launch wizard UI (4 steps + preview pane) style.css # Styling app.js # Wizard state, form handling, API calls, preview updates README.md # this file ``` ## License MIT. This is an independent clean-room reimplementation for educational / demonstration purposes; it is not affiliated with userea.fun, pump.fun, or any of their services.