n8n template · Code

Rebuild a whole website as code with n8n

MiroMiro reads the site's sitemap and lists every page, grouped by template. You keep the pages worth rebuilding, and each one comes back as code, every section from header to footer, one folder per page in a zip.

Free template · 300 free credits a month · no credit card

The workflow

Every page of a site as code, one folder per page.

  1. Run

    Click Execute

  2. Settings

    Your website

  3. MiroMiro

    List every page

  4. Pick

    Unique pages

  5. MiroMiro

    Each page as code

  6. Zip

    One folder per page

What comes out
linear.app-code.zip
  • header.tsx
  • hero.tsx
  • features.tsx
  • pricing.tsx
  • footer.tsx
export default function Hero() {
  return (
    <section className="mx-auto max-w-6xl px-6 pt-32">
      <h1 className="text-6xl font-semibold">
        Linear is a purpose-built tool
      </h1>
      <a className="rounded-lg bg-[#5e6ad2] px-4">
        Start building
      </a>
    </section>
  )
}
Cost
Listing the pages is free
Setup
About a minute
Starts with
Run
You get
One folder per page
What you get

What the template gives you

  • Every page of the website, from its sitemap, grouped by template (blog posts, products, docs...), for free.

  • Each page you keep rebuilt as Tailwind, React (JSX), HTML + CSS, Vue, Elementor (.json) or Shopify (.liquid), every section in page order.

  • A .zip with one folder per page and one file per section, plus a link to each whole page assembled, with a Download HTML button.

How to use it

Running in about a minute

  1. Your API key

    mm_live_••••••••

    300 free credits a month

    1

    Get a free key and add it in any MiroMiro node: Credential › Create new.

  2. My workflow
    • Download
    • Import from URL…
    • Import from File…
    2

    Import the template: ⋯ menu › Import from URL, and paste the link below.

  3. Execute workflowWorkflow executed successfully
    3

    Run it: set your website, click Execute workflow, and grab the result from the last node.

Template link

Paste it in n8n: ⋯ menu (top right of a workflow) › Import from URL.

Or download the .json and use Import from File. No key yet? Get a free API key.

For this template

  • In "Set Website and Output", set the website, output (tailwind, jsx, html, vue, elementor or shopify) and maxPages. To choose the pages yourself, list them in pages.
  • Click Execute workflow. The zip is on "Zip the Code Files"; "Get Page Preview Links" lists each page with its whole-page link.
Perfect for

Who uses it

  • Agencies migrating a client's whole site to a new stack
  • Moving a site to WordPress or Shopify page by page
  • Developers who want every layout of a site as a starting point
  • Auditing a competitor's page designs in one run
The MiroMiro node

Verified by n8n

The template uses the MiroMiro node. On n8n Cloud, search "MiroMiro" in the nodes panel. On self-hosted n8n, Settings > Community nodes > Install, with the package name below.

FAQ

Frequently asked questions

Does it rebuild all 500 blog posts?

No, and it does not need to: posts share one layout. The page list groups them as one template, and the workflow keeps one example of each, plus every unique page (home, pricing, about...). Put your own list in `pages` to choose exactly which ones.

Why does it need a paid plan?

A website is many pages, and each page is loaded in a real browser and rebuilt one section at a time, so a single site can use more than the free plan's monthly credits. The page list is free on every plan, and the single-page template works on the free plan.

What about a long page?

A page with many sections can run out of time in one call. The workflow calls it a second time to finish it, and that second call is free.

Whose content is it?

The text and images belong to the site you extract from. Replace them with your own unless it is your site or your client's.

Is the template free?

Yes. The template and the MiroMiro node are free. The node calls the MiroMiro API, which includes 300 free credits a month with no card; paid plans start when you need more.

Does it work on n8n Cloud?

Yes. MiroMiro is a verified n8n node, so on n8n Cloud you add it from the nodes panel by searching "MiroMiro". On self-hosted n8n you can also install it from Settings > Community nodes with the package name n8n-nodes-miromiro.

Can I change the workflow?

Yes, it is a normal n8n workflow. Swap the trigger for a schedule, a webhook or a Google Sheet, and send the result to Drive, Dropbox, email or Slack.

More n8n templates

All templates

Get your free API key

300 free credits a month, no credit card. The same key works in n8n, over REST and in ChatGPT, Claude or Cursor.

Get a free API key