Export your Framer site and self-host it on Cloudflare Workers — for free.
Framer charges $15-30/mo just to host your site. Your HTML, CSS, and assets are yours. This tool exports your Framer project and deploys it to Cloudflare Workers in minutes.
- Point the tool at your published Framer site URL
- It exports the complete frontend — HTML, CSS, JS, images, fonts
- Deploys to Cloudflare Workers with one command
- Your site is live on a custom domain or
.workers.devsubdomain — free forever
demo.mp4
- Claude Code CLI installed
- Chrome DevTools MCP server configured in Claude Code — used for site discovery, screenshot comparison, and verifying the mirror (alternatively, Playwright MCP works too)
- A Cloudflare account (free tier works)
- Your published Framer site URL (e.g.
https://your-site.framer.app) - Node.js 18+
Clone this repo and install the Claude Code skill:
git clone https://github.com/rakshith48/framer-to-cloudflare.git
cd framer-to-cloudflare
./install.shThis copies the skill into ~/.claude/skills/replicate-framer/ so Claude Code can use it.
- Open Claude Code in any directory where you want your mirror project:
mkdir my-site && cd my-site
claude- Run the skill with your Framer URL:
/replicate-framer https://your-site.framer.app
-
Claude will:
- Navigate to your site and discover all pages
- Download every page's HTML, all JS bundles, fonts, images, and assets
- Rewrite all CDN URLs to local paths
- Strip Framer editor bar, analytics, and bot protection scripts
- Generate a Cloudflare Worker to serve the static site
- Test locally with
wrangler dev
-
Deploy to Cloudflare:
cd worker
npx wrangler deploy- Full HTML structure and content
- All CSS styling (inline styles, CSS variables, design tokens)
- JavaScript runtime (animations, scroll effects, hover states, responsive behavior)
- Images, fonts (.woff2), and media assets
- Video embed references (Vimeo/YouTube still load from their CDNs)
- Responsive breakpoints (Desktop, Tablet, Mobile)
- SEO metadata (title, description, OG tags, favicons)
- 404 page
This is a tool for exporting and self-hosting your own Framer sites. It's for people who want to own their hosting instead of paying monthly fees for static site delivery.
your-project/
├── dist/ # Static site output
│ ├── index.html # Homepage (URLs rewritten to local paths)
│ ├── about.html # Each page as a separate HTML file
│ ├── 404.html # Error page
│ ├── favicon.png
│ ├── og-image.png
│ └── _deps/ # All CDN assets mirrored locally
│ ├── assets/ # Fonts (.woff2)
│ ├── sites/{siteId}/ # JS bundles (.mjs)
│ ├── images/ # All images
│ ├── modules/ # Icon components
│ └── third-party-assets/
├── worker/
│ ├── src/index.js # Cloudflare Worker
│ ├── wrangler.toml
│ └── package.json
└── scripts/
└── extract.js # Extraction script
- Framer CMS: Dynamic CMS content is exported as static HTML — it won't update automatically
- Forms: Framer's built-in form submissions won't work (they hit Framer's backend). You'll need to wire up your own form handler
- Password-protected pages: Can't export pages behind Framer's password protection
- Scheduled publishing: No equivalent — content is static at the time of export
- Video embeds: Vimeo/YouTube videos still load from their respective CDNs (not mirrored)
- React hydration warnings: Console may show React "recoverable error" warnings — these are normal and don't affect functionality
Framer sites are React apps using Framer Motion, served from CDN. The extraction:
- Fetches each page's HTML from the live site
- Extracts all CDN asset URLs from HTML (fonts, images, JS bundles, modules)
- Downloads assets preserving CDN path structure into
_deps/ - Scans JS bundles for additional asset references (images/videos referenced in code)
- Rewrites URLs — replaces
framerusercontent.comorigins with local/_deps/paths - Strips cruft — editor bar, Cloudflare Turnstile, Sentry, analytics, "Made with Framer" badge
- Generates a Cloudflare Worker with route mapping for all pages
- WordPress export support
- Webflow export support
- Auto-setup custom domains
- CI/CD for re-exports when your Framer site changes
- Cloudflare Pages support (in addition to Workers)
PRs welcome. If you find a Framer site that doesn't export correctly, open an issue with the URL.
MIT