[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112462":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":39,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":16,"starSnapshotCount":16,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},112462,"reverse-engineer-marketing","dansugc\u002Freverse-engineer-marketing","dansugc","Paste a link, get the whole marketing machine behind it: paid ads, organic social, SEO, Reddit, founders, funnel — evidence-cited. CLI, MCP server and a local web app that uses your Claude Code or Codex plan.","https:\u002F\u002Fdansugc.com",null,"TypeScript",1077,135,3,1,0,23,312,944,134,104.39,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38],"ad-library","ai-agents","claude-code","codex","competitor-analysis","growth","marketing","mcp","mcp-server","reddit","reverse-engineering","seo","2026-10-18 19:26:54","2026-11-23 19:50:16","\u003Cdiv align=\"center\">\n\n# REM: Reverse Engineer Marketing\n\n### Paste a link. Get the whole marketing machine behind it.\n\n**Paid ads · organic social · SEO & AI search · founders · funnel · positioning history, with the evidence for every claim.**\n\n\u003Ccode>npx reverse-engineer-marketing notion.so\u003C\u002Fcode>\n\n[Quick start](#quick-start) · [Web app](#web-app-use-your-claude-code-or-codex-plan) · [What it finds](#what-it-finds) · [Use it from your agent (MCP)](#use-it-from-your-agent-mcp) · [Example report](examples\u002Fcalai.app.md) · [How it works](#how-it-works)\n\n\u003C\u002Fdiv>\n\n---\n\nNobody shares their growth alpha anymore. But most of it is public if you know where to look: ad libraries show which ads have been running for months (the winners), pixels show which platforms they buy, sitemaps show programmatic SEO, Wayback shows every repositioning, and founders post their playbook in public.\n\nREM collects all of it from one link and turns it into a report: what the company's growth engine is, how the channels connect, and a step-by-step playbook to copy it. Every fact cites the evidence it came from, and everything REM couldn't see is listed as unknown, with a link to check it yourself.\n\nInspired by [REA (Reverse Engineer Anything)](https:\u002F\u002Fgithub.com\u002Fmorluto\u002Frea), but for marketing instead of binaries.\n\n> [!TIP]\n> **Found their winning ads? Make your own.** REM is built by [DansUGC](https:\u002F\u002Fdansugc.com\u002F?utm_source=github&utm_medium=oss&utm_campaign=reverse-engineer-marketing): 5,000+ real-creator UGC reaction clips and custom videos for paid ads and organic, from $5 a clip. Copy the hooks, skip the creator hunt. **[Get UGC for your ads →](https:\u002F\u002Fdansugc.com\u002F?utm_source=github&utm_medium=oss&utm_campaign=reverse-engineer-marketing)**\n\n## Quick start\n\nTry it with zero setup, no keys: a recorded Cal AI teardown opens in the web app.\n\n```bash\nnpx reverse-engineer-marketing demo\n```\n\nThen run it on any company:\n\n```bash\nnpx reverse-engineer-marketing linear.app\n```\n\nThat works with **no API keys**: website, tracking pixels (including pixels hidden inside Google Tag Manager containers), SEO\u002Fsitemaps, AI-crawler stance, Wayback positioning history, App Store\u002FGoogle Play and Hacker News.\n\nAdd keys to unlock the rest:\n\n```bash\nexport SCRAPECREATORS_API_KEY=...   # ad libraries, social stats, founders, Reddit (~25–50 credits per run)\nexport ANTHROPIC_API_KEY=...        # the written strategy report (Claude)\nnpx reverse-engineer-marketing calai.app\n```\n\nOutput goes to `.\u002Frem-reports\u002F\u003Cdomain>-\u003Cdate>\u002F`: `report.md` plus `evidence.json` (the raw evidence bundle).\n\nIt also accepts App Store and Google Play links: `rem https:\u002F\u002Fapps.apple.com\u002Fus\u002Fapp\u002F…\u002Fid123`.\n\n```\nrem \u003Curl> [--no-ai] [--json] [--only paid,social,seo] [--handle tiktok=name] [--out dir]\nrem web              # local web app (Claude Code \u002F Codex subscription)\nrem demo             # recorded Cal AI teardown in the web app, no keys\nrem diff \u003Cdomain>    # what changed since the last run: new\u002Fkilled ads, growth, repositioning\nrem setup            # connect REM to Claude Code \u002F Codex (shows the plan, asks before changing anything)\nrem doctor           # which sources your keys unlock\nrem mcp              # run the MCP server\n```\n\n## Web app: use your Claude Code or Codex plan\n\n```bash\nnpx reverse-engineer-marketing web\n```\n\nOpens a local web app at `http:\u002F\u002Flocalhost:4321`. Paste a link, pick who writes the report, and watch the evidence come in and the playbook stream out. Every `E12` citation opens the raw evidence behind it.\n\nThe **Posts & ads** tab is a review library of everything collected: Meta ads (active *and* paused, with creatives, inline video, run length, variants, top-by-impressions), Google and LinkedIn ads, TikTok and Instagram videos, YouTube, X and LinkedIn posts (company and founders), and Reddit threads and brand\u002Ffounder replies. Filter by platform, sort by top \u002F newest \u002F longest running, open any original. The rail shows the brand logo and the founders with photos, roles, LinkedIn\u002FX audience and a confidence badge.\n\n| Report writer | How it runs | Cost |\n|---|---|---|\n| **Claude Code** | your installed `claude` CLI, headless, no tools | your Claude subscription |\n| **Codex** | your installed `codex exec`, read-only sandbox | your ChatGPT subscription |\n| Anthropic API | `ANTHROPIC_API_KEY` | per token |\n| Evidence only | no AI | free |\n\nSubscription engines run the CLI you're already logged into. REM strips `ANTHROPIC_API_KEY` \u002F `OPENAI_API_KEY` from their environment so your plan is used, not an API key, and runs them in a scratch folder with your MCP servers and hooks disabled. The server listens on `127.0.0.1` only and rejects other hosts and origins. Add your Scrape Creators key from the top-right pill; it's saved to `~\u002F.config\u002Freverse-engineer-marketing\u002Fconfig.json` (mode 600). Past runs are listed on the home page.\n\n## What it finds\n\n| Area | What REM pulls | Needs a key? |\n|---|---|---|\n| **Paid: Meta** | All ads incl. paused campaigns, active count, most-shown ads, ads launched in the last 30 days, **longest-running active ads (the proven winners)** with hooks, formats, CTAs, landing pages, UTM campaign names, variant counts | Scrape Creators |\n| **Paid: Google** | Ads pointing at the domain, formats, recency, and **other advertisers bidding on the brand** (affiliates\u002Fresellers) | Scrape Creators |\n| **Paid: LinkedIn** | Ads by the company, ad types, headlines, CTAs | Scrape Creators |\n| **Paid: Apple Search Ads** | From Apple's public Ad Repository (EU): App Store ads over the last year, how many still serve, placements, formats, the message each ad shows, markets, audience targeting, and **copycat apps advertising under the same name** | Free |\n| **App Store link forensics** | In Meta ads that point at the App Store: custom product pages (`ppid`), campaign tokens (`ct`\u002F`pt`), attribution parameters | Scrape Creators |\n| **Pixels & stack** | Meta\u002FGoogle\u002FTikTok\u002FLinkedIn\u002FReddit\u002FX\u002FPinterest\u002FSnap pixels with IDs, **including inside GTM containers**; attribution SDKs (AppsFlyer, Adjust, Branch); affiliate tools; email\u002FCRM; visitor-ID tools (RB2B, Warmly, Koala, Clearbit) that reveal an outbound motion; A\u002FB testing | Free |\n| **Organic social** | TikTok, Instagram, YouTube, X, LinkedIn: followers, posts\u002Fweek, median reach, top posts and hooks, spark ads, days since last post. Finds TikTok even when the site doesn't link it | Scrape Creators |\n| **SEO** | Sitemap size and folders, **programmatic page families** (`\u002Fintegrations\u002F{app}`, `\u002F{a}-vs-{b}`, `\u002Ftemplates\u002F…`), comparison\u002Falternatives pages, content cadence, locales, top Google results | Free (+1 credit) |\n| **AI search (GEO)** | llms.txt, which AI crawlers are blocked or allowed | Free |\n| **Founders** | Names from Wikidata, the site's JSON-LD and about page (free), plus LinkedIn and Google search; ranked by confidence; LinkedIn\u002FX audience, photo, recent posts | Free names; enrichment Scrape Creators |\n| **Reddit marketing** | Brand\u002Ffounder posts and replies, owned subreddit activity, comparison and \"what should I use\" threads, organic recommendations, Reddit threads ranking on Google | Scrape Creators |\n| **Brand logo** | apple-touch-icon, LinkedIn logo, App Store icon, JSON-LD, Wikidata, Instagram avatar (best first, with fallbacks) | Free |\n| **Community & launches** | Reddit threads and subreddits, Hacker News launches and points, Product Hunt | HN free; rest Scrape Creators |\n| **Funnel & monetization** | Positioning, CTAs, pricing model, free plan\u002Ftrial, per-seat\u002Fusage, sales-led signals, affiliate program and commission, social proof | Free |\n| **Apps** | App Store ratings (download proxy), release age, update cadence, Play installs | Free |\n| **Positioning history** | Homepage title\u002FH1\u002FCTAs over time from the Wayback Machine: pivots and repositioning | Free |\n\n## Watch competitors over time\n\nRun REM on the same company again next week, then:\n\n```bash\nrem diff calai.app\n```\n\nYou get the deltas: Meta ads in the library and live now, ads launched, Apple Search Ads volume, follower growth per platform, sitemap growth, channels that switched on or off, homepage repositioning, and which ads and posts are new or no longer running.\n\n## Use it from your agent (MCP)\n\nREM is an MCP server, so Claude Code, Codex, Cursor, or any MCP client can run it. With MCP you don't need an Anthropic key: your agent writes the report itself.\n\nOne command, with a plan you approve first (it backs up anything it replaces):\n\n```bash\nnpx reverse-engineer-marketing setup        # detects Claude Code \u002F Codex, shows the plan, asks\nnpx reverse-engineer-marketing setup --dry-run\n```\n\nOr by hand:\n\n```bash\n# Claude Code\nclaude mcp add reverse-engineer-marketing -e SCRAPECREATORS_API_KEY=... -- npx -y reverse-engineer-marketing mcp\n\n# Codex\ncodex mcp add reverse-engineer-marketing --env SCRAPECREATORS_API_KEY=... -- npx -y reverse-engineer-marketing mcp\n```\n\nAny other client:\n\n```json\n{\n  \"mcpServers\": {\n    \"reverse-engineer-marketing\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"reverse-engineer-marketing\", \"mcp\"],\n      \"env\": { \"SCRAPECREATORS_API_KEY\": \"...\" }\n    }\n  }\n}\n```\n\nThen ask:\n\n> Reverse engineer the marketing of linear.app and give me a playbook I can copy.\n\n| Tool | What it does |\n|---|---|\n| `reverse_engineer_marketing` | Collects everything for a URL. Returns a compact scorecard + evidence index + unknowns (token-cheap) and a `run_id` |\n| `get_evidence` | Full data for specific evidence ids or a source (ad copy, top posts, sitemap families…) |\n| `get_playbook` | The analysis method: role, evidence rules, report template, lessons, and per-channel playbooks |\n| `get_content` | The actual ads, videos and posts (media URLs, run length, live\u002Fpaused) to quote or show |\n| `compare_runs` | What changed between two runs of the same company |\n| `validate_report` | Checks the agent's report: citations resolve, sections exist, playbook grounded, no invented spend |\n| `write_report` | Optional server-side report (needs `ANTHROPIC_API_KEY` in the server env) |\n\n### Guided workflows\n\nNamed MCP prompts your client can run in one click (the REA pattern: investigate → spec → build → verify):\n\n| Prompt | What it does |\n|---|---|\n| `investigate_company` | Full teardown: evidence → playbook → cited report → validation |\n| `compare_competitors` | 2–4 companies side by side: who wins each channel, gaps, the best play to copy from each |\n| `what_changed` | Re-run + diff against last time: new angles, killed ads, growth, repositioning |\n| `steal_the_playbook` | Investigate → spec → **build**: a 30-day plan for your product with ad hooks, UGC briefs, landing outline, posting calendar, SEO template |\n| `audit_unknowns` | What REM couldn't see and the fastest way to check each by hand |\n\n### Prompt pack\n\nPaste into Claude Code \u002F Codex once REM is connected:\n\n```text\nReverse engineer the marketing of calai.app. Lead with their longest-running ads and quote the hooks.\n\nCompare notion.so, coda.io and clickup.com: which channel does each one win, and what's the one play I should copy from each?\n\nWhat changed at linear.app since my last run? New ad angles, ads they killed, audience growth.\n\nSteal the playbook: reverse engineer calai.app, then build a 30-day plan for my app (myapp.com) with 10 ad hooks adapted from their winners and 3 UGC video briefs.\n\nWhich competitors bid on App Store search in Europe for \"calorie tracker\"-type apps, and what message does each show?\n```\n\nInstall the bundled skill to teach your agent the workflow: copy `skills\u002Freverse-engineer-marketing\u002F` into `~\u002F.claude\u002Fskills\u002F` (or your agent's skills folder).\n\n## How it works\n\n```\nlink ──► website scan ──► discovers socials, apps, people, brand\n              │\n              ├─► pixels + GTM containers      ├─► Meta \u002F Google \u002F LinkedIn ad libraries\n              ├─► robots, sitemaps, llms.txt   ├─► TikTok \u002F IG \u002F YouTube \u002F X \u002F LinkedIn\n              ├─► Wayback history              ├─► founders (LinkedIn + X)\n              └─► App Store \u002F Play \u002F HN        └─► Reddit \u002F Product Hunt\n                                │\n                    evidence bundle (E1…En) + unknowns\n                                │\n                  deterministic channel scorecard (no AI)\n                                │\n             Claude \u002F your agent + the harness ──► report.md\n                                │\n                    validator (citations, grounding)\n```\n\n**Evidence contract.** Every item is an *observation* (seen at a URL or API) or a *derivation* (computed, e.g. posts\u002Fweek). The report's interpretations must cite evidence ids and label inferences. Anything not checked is an *unknown*, never \"they don't do it\". A pixel means intent, not current spend, and dollar spend is never invented.\n\n**The harness is a versioned file bundle** ([`harness\u002F`](harness)): analyst role, guardrails, report template, a cue → lesson library, and one playbook per channel. Every report records the harness version and SHA. Change a playbook, run `npm run eval`, and compare scores. Recorded evidence bundles in `evals\u002Ffixtures\u002F` let you iterate on the prompt without re-scraping.\n\n**Cost per full run:** about 25–50 Scrape Creators credits plus one Claude call (default `claude-opus-5`, override with `REM_MODEL`). Scrape Creators responses are cached for 24h in `~\u002F.cache\u002Freverse-engineer-marketing` so agents can re-run without paying twice.\n\n## Use it responsibly\n\nREM reads **public** information only: public web pages, public ad transparency libraries (Meta, Google, LinkedIn, Apple), public social profiles. It never logs in as anyone, never touches private data, and never runs anything on the target.\n\nSame rule as clean-room engineering: **study the strategy, ship your own.** Learn which angles, offers, channels and page templates work, then make your own creatives and copy. Don't republish competitors' ads, footage, copy or brand assets; that's their IP. Respect each site's terms and your local laws.\n\n## Limits (honest)\n\n- **Apple Search Ads** are only visible for the EU (Apple's DSA repository); other regions are unknown.\n- **TikTok and X ads** have no global public library; REM reports the pixel and gives you the manual library link. **Reddit's** ad library was shut down.\n- Ad library counts come from samples (first pages); REM says \"in the sample\".\n- Founder, TikTok-handle and Product Hunt matches come from search and can be wrong; weak matches are flagged.\n- Server-side tracking and email tools are invisible from the browser, so they're reported as unknown.\n- Respect each site's terms and your local laws. REM reads public pages and public ad transparency libraries only.\n\n## Develop\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fdansugc\u002Freverse-engineer-marketing && cd reverse-engineer-marketing\nnpm install\nnpm run dev -- notion.so --no-ai   # run from source\nnpm test                           # unit tests (parsers, scorecard, validator)\nnpm run eval                       # validate example reports against recorded fixtures\nnpm run eval -- --live             # regenerate with Claude and score (costs tokens)\n```\n\nAdding a source: write a collector in `src\u002Fsources\u002F` that adds evidence to the store (observations or derivations, never conclusions) and records unknowns with a manual-check link, then teach `src\u002Fanalyze\u002Fscorecard.ts` what it means. See [AGENTS.md](AGENTS.md).\n\n## Built by DansUGC\n\n\u003Ca href=\"https:\u002F\u002Fdansugc.com\u002F?utm_source=github&utm_medium=oss&utm_campaign=reverse-engineer-marketing\">\u003Cb>DansUGC\u003C\u002Fb>\u003C\u002Fa> is where the ads in these reports come from: real human creators, real reactions. Browse 5,000+ UGC reaction clips and b-roll, order custom videos from vetted creators, or let the ReelClaw agent assemble and post reels for you. If REM showed you a competitor winning with UGC, that's the shortcut.\n\n**[Start with DansUGC →](https:\u002F\u002Fdansugc.com\u002F?utm_source=github&utm_medium=oss&utm_campaign=reverse-engineer-marketing)**\n\n## License\n\nMIT. Built by [DansUGC](https:\u002F\u002Fdansugc.com\u002F?utm_source=github&utm_medium=oss&utm_campaign=reverse-engineer-marketing).\n","REM（Reverse Engineer Marketing）是一个开源营销逆向分析工具，通过输入任意网站或应用链接，自动挖掘其背后的完整增长策略。核心功能包括：解析广告库（如Meta\u002FFacebook Ad Library）、追踪像素与第三方SDK、抓取SEO结构与历史快照（Wayback Machine）、提取Reddit\u002FHN讨论、识别创始人公开内容，并生成带证据引用的Markdown报告；支持CLI、本地Web应用及MCP协议集成，可调用Claude Code或Codex进行策略归纳。适用于竞品分析、增长团队调研、独立开发者验证市场假设及营销策略复刻等场景。",2,"2026-11-24 04:43:33","CREATED_QUERY"]