<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mehdi Hassan</title>
    <description>The latest articles on DEV Community by Mehdi Hassan (@designify101).</description>
    <link>https://dev.to/designify101</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246691%2F8beb780a-bed8-491e-9a72-4ce5b97b7e55.png</url>
      <title>DEV Community: Mehdi Hassan</title>
      <link>https://dev.to/designify101</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/designify101"/>
    <language>en</language>
    <item>
      <title>How to move a Framer custom domain to Vercel</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:32:20 +0000</pubDate>
      <link>https://dev.to/designify101/how-to-move-a-framer-custom-domain-to-vercel-1364</link>
      <guid>https://dev.to/designify101/how-to-move-a-framer-custom-domain-to-vercel-1364</guid>
      <description>&lt;p&gt;To move a Framer custom domain to Vercel, you first need the site as code that Vercel can build, because Vercel can't host a Framer project directly. Convert the published site to a Next.js project, deploy it to Vercel and test it on the &lt;code&gt;*.vercel.app&lt;/code&gt; address, then add your domain in Vercel, change the DNS records at your registrar, and disconnect the domain from Framer once the new site answers. Done in that order, visitors never see a broken page.&lt;/p&gt;

&lt;p&gt;This guide covers the domain side in detail. For the build settings of every host, see &lt;a href="https://deframer.co/blog/deploy-converted-framer-site-vercel-netlify-cloudflare-fly" rel="noopener noreferrer"&gt;deploying a converted Framer site to Vercel, Netlify, Cloudflare or Fly.io&lt;/a&gt;. Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer or Vercel.&lt;/p&gt;

&lt;h2&gt;
  
  
  What has to happen, in order
&lt;/h2&gt;

&lt;p&gt;A domain move has three moving parts: the code, the host and DNS. Mixing up their order is what causes downtime.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What you check before moving on&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Get the code&lt;/td&gt;
&lt;td&gt;Deframer&lt;/td&gt;
&lt;td&gt;The project runs locally&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Deploy&lt;/td&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;*.vercel.app&lt;/code&gt; preview looks right&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Prepare&lt;/td&gt;
&lt;td&gt;Your code&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;metadataBase&lt;/code&gt;, &lt;code&gt;robots.txt&lt;/code&gt;, &lt;code&gt;sitemap.xml&lt;/code&gt; name the real domain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Lower TTL&lt;/td&gt;
&lt;td&gt;Your DNS provider&lt;/td&gt;
&lt;td&gt;A day has passed since you lowered it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Add the domain&lt;/td&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;Vercel shows the records it expects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6. Switch DNS&lt;/td&gt;
&lt;td&gt;Your DNS provider&lt;/td&gt;
&lt;td&gt;The domain resolves to Vercel and HTTPS works&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7. Disconnect&lt;/td&gt;
&lt;td&gt;Framer&lt;/td&gt;
&lt;td&gt;Only after the new site is live&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep your Framer plan active until step 7 is done and a few days have passed. That way, rolling back is a DNS change, not a rebuild.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Get the site as Next.js code
&lt;/h2&gt;

&lt;p&gt;Paste your published site's address into the convert form on &lt;a href="https://deframer.co/" rel="noopener noreferrer"&gt;Deframer&lt;/a&gt;. Next.js is the default framework, and it's the one Vercel builds with no configuration at all. Converting is free. To download, show the site is yours with a one-line meta tag in Framer's Site Settings, then Custom Code, publish, and download the &lt;code&gt;.zip&lt;/code&gt;. A verified download costs 1 credit (1 credit is $25, 10 credits $50, 100 credits $100; large sites use about 1 credit per 100 pages); see &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;. Downloads are for your own sites, or sites whose owner has given permission.&lt;/p&gt;

&lt;p&gt;One decision matters for a domain move: where the assets live. With &lt;strong&gt;Assets on Framer's CDN&lt;/strong&gt; (the default), images, fonts and videos keep loading from &lt;code&gt;framerusercontent.com&lt;/code&gt; after the move. With &lt;strong&gt;Assets in the project&lt;/strong&gt;, they are downloaded into &lt;code&gt;public/&lt;/code&gt; and served by Vercel. If you plan to cancel Framer entirely, the second option is the cleaner exit. &lt;a href="https://deframer.co/blog/framer-fonts-and-assets-cdn-vs-local" rel="noopener noreferrer"&gt;Assets on the CDN or in the project&lt;/a&gt; explains the trade-off.&lt;/p&gt;

&lt;p&gt;Unzip and check it runs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run build
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Deploy to Vercel and test the preview address
&lt;/h2&gt;

&lt;p&gt;Push the project to a Git repository, import it in Vercel, and deploy. The framework is detected as Next.js. If the site has forms, add &lt;code&gt;FORMS_WEBHOOK_URL&lt;/code&gt; (or the per-form variables listed in &lt;code&gt;.env.example&lt;/code&gt;) under the project's environment variables before the first production deploy, so submissions reach you from day one.&lt;/p&gt;

&lt;p&gt;Then test the &lt;code&gt;*.vercel.app&lt;/code&gt; address as if it were the live site:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open every route in the project README's routes table, including CMS detail pages and a URL that should 404.&lt;/li&gt;
&lt;li&gt;Check desktop, tablet and phone widths.&lt;/li&gt;
&lt;li&gt;Submit each form once and confirm the webhook receives it.&lt;/li&gt;
&lt;li&gt;Test two or three of the redirects you set in Framer. They are carried into &lt;code&gt;next.config.ts&lt;/code&gt; with the same status codes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If something is off, fix it now. The domain hasn't moved yet, so nobody but you sees it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Point the code at the real domain
&lt;/h2&gt;

&lt;p&gt;The converted project names the domain the site was published on in three places. If your domain stays the same, nothing needs to change. If you're also changing domains, or the site was converted from a &lt;code&gt;*.framer.website&lt;/code&gt; address, update them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;metadataBase&lt;/code&gt;&lt;/strong&gt; in &lt;code&gt;src/app/layout.tsx&lt;/code&gt;. Canonical URLs and social images resolve against it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public/robots.txt&lt;/code&gt;&lt;/strong&gt;, which usually names the sitemap's full URL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public/sitemap.xml&lt;/code&gt;&lt;/strong&gt;, which lists absolute URLs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Commit, push and let Vercel redeploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Lower the DNS TTL a day ahead
&lt;/h2&gt;

&lt;p&gt;TTL (time to live) tells resolvers how long to cache a DNS answer. If your records have a TTL of several hours, some visitors will keep reaching Framer for that long after you switch. A day before the move, lower the TTL on the records you'll change to a few minutes (300 seconds is common). After the move has settled, you can raise it again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://deframer.co/blog/move-a-framer-domain-without-downtime" rel="noopener noreferrer"&gt;Moving a domain off Framer without downtime&lt;/a&gt; goes deeper on TTLs, record types and rollback.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Add the domain in Vercel
&lt;/h2&gt;

&lt;p&gt;In the Vercel project, open the domains settings and add both forms of your domain, for example &lt;code&gt;example.com&lt;/code&gt; and &lt;code&gt;www.example.com&lt;/code&gt;. Choose which one is primary; Vercel redirects the other to it. Pick the same primary form your Framer site used, so your canonical URLs don't change.&lt;/p&gt;

&lt;p&gt;Vercel then shows the DNS records it expects. Typically that's an &lt;code&gt;A&lt;/code&gt; record for the apex domain and a &lt;code&gt;CNAME&lt;/code&gt; for &lt;code&gt;www&lt;/code&gt;, but use the exact values Vercel shows you, as they can change and can differ per account. If you'd rather move the whole DNS zone to Vercel's nameservers, Vercel offers that too, but you don't need to: changing two records at your current DNS provider is enough and keeps your email records untouched.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Switch the DNS records
&lt;/h2&gt;

&lt;p&gt;At your DNS provider:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Note down the current records for the apex and &lt;code&gt;www&lt;/code&gt; (the ones pointing at Framer). This is your rollback.&lt;/li&gt;
&lt;li&gt;Replace them with the records Vercel showed.&lt;/li&gt;
&lt;li&gt;Leave &lt;code&gt;MX&lt;/code&gt;, &lt;code&gt;TXT&lt;/code&gt; (SPF, DKIM, verification records) and anything else untouched. Your email doesn't care where the website is hosted.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Vercel checks the records and issues a TLS certificate once they resolve. Check the result from the command line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig +short example.com
dig +short www.example.com
curl -sI https://example.com &lt;span class="o"&gt;|&lt;/span&gt; head -n 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;curl&lt;/code&gt; response should come from Vercel (look for Vercel's headers) with status 200 or a redirect to your primary form.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Disconnect the domain from Framer
&lt;/h2&gt;

&lt;p&gt;Once the domain serves the new site over HTTPS, remove the custom domain from your Framer project, following Framer's own docs. Don't cancel the Framer plan yet. Give it a few days, watch for errors, and only then work through &lt;a href="https://deframer.co/blog/before-you-cancel-your-framer-plan" rel="noopener noreferrer"&gt;what to do before you cancel your Framer plan&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  After the move: SEO checks
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Open Google Search Console for the domain and resubmit the sitemap.&lt;/li&gt;
&lt;li&gt;Run the URL inspection on your home page and one CMS page.&lt;/li&gt;
&lt;li&gt;Compare page titles and descriptions on a few URLs with the old site.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;URLs don't change when you convert, because every page keeps its published path. The details are in &lt;a href="https://deframer.co/blog/seo-when-moving-off-framer" rel="noopener noreferrer"&gt;keeping SEO when moving off Framer&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What if something goes wrong?
&lt;/h2&gt;

&lt;p&gt;Put the old records back. Because you lowered the TTL, most visitors are back on Framer within minutes, and since you kept Framer connected until the end, the Framer site is still there to serve them. Common causes worth checking first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Invalid configuration" in Vercel.&lt;/strong&gt; The records don't match yet, or an old &lt;code&gt;AAAA&lt;/code&gt; record still points somewhere else. Remove stray &lt;code&gt;AAAA&lt;/code&gt; records for the same name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certificate pending.&lt;/strong&gt; Vercel can only issue the certificate once DNS resolves to it. Wait for the TTL to pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redirect loop.&lt;/strong&gt; Usually a proxy in front (such as a CDN set to "flexible" TLS) talking HTTP to Vercel. Use full TLS end to end, or turn the proxy off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I connect my Framer domain to Vercel without converting the site?
&lt;/h3&gt;

&lt;p&gt;Not to host the Framer site itself. Vercel builds and serves code, and Framer doesn't export code. You can put Vercel in front of Framer as a proxy, but then Framer still hosts the site. To actually move it, convert it to code first.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will moving the domain hurt my rankings?
&lt;/h3&gt;

&lt;p&gt;Not if URLs, titles, descriptions and content stay the same, which they do in a converted project. Short-term fluctuation can happen with any host change. Resubmit the sitemap and watch Search Console for crawl errors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does my email stop working when I move the domain?
&lt;/h3&gt;

&lt;p&gt;No, as long as you only change the website records (apex and &lt;code&gt;www&lt;/code&gt;) and leave &lt;code&gt;MX&lt;/code&gt; and &lt;code&gt;TXT&lt;/code&gt; records alone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I use Vercel's nameservers?
&lt;/h3&gt;

&lt;p&gt;Only if you want Vercel to manage all your DNS. Changing two records at your current provider is simpler and easier to roll back.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need the lifetime deal to do this?
&lt;/h3&gt;

&lt;p&gt;No. A single verified download costs 1 credit. The lifetime deal only makes sense if you move several sites; &lt;a href="https://deframer.co/blog/deframer-pricing-credits-vs-lifetime" rel="noopener noreferrer"&gt;credits vs the lifetime deal&lt;/a&gt; compares them.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/move-a-framer-custom-domain-to-vercel" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React, TanStack Start, React Router, Nuxt or static HTML code. Converting is free; a verified download is 1 credit ($25 for 1, $50 for 10, $100 for 100).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>vercel</category>
      <category>dns</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Framer animations and scroll effects in Next.js with motion</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:31:45 +0000</pubDate>
      <link>https://dev.to/designify101/framer-animations-and-scroll-effects-in-nextjs-with-motion-jg0</link>
      <guid>https://dev.to/designify101/framer-animations-and-scroll-effects-in-nextjs-with-motion-jg0</guid>
      <description>&lt;p&gt;Framer animations carry over to Next.js as plain TypeScript on the &lt;code&gt;motion&lt;/code&gt; package (&lt;code&gt;motion/react&lt;/code&gt;, formerly framer-motion). In a project converted by Deframer, appear effects, scroll-triggered and scroll-linked transforms, Scroll Speed parallax, sticky layers, hover and press states, variants and page transitions keep their timing, and springs keep their stiffness, damping and mass. A small helper kit in &lt;code&gt;src/lib/deframer&lt;/code&gt; plays them, with no Framer runtime. Animations run on motion the same way if you convert to &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react" rel="noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; or &lt;a href="https://deframer.co/framer-to-nuxt" rel="noopener noreferrer"&gt;Nuxt&lt;/a&gt; instead.&lt;/p&gt;

&lt;p&gt;This guide shows where each kind of animation lives in the converted project, how scroll effects work and how to build new ones with &lt;code&gt;useScroll&lt;/code&gt;, &lt;code&gt;useTransform&lt;/code&gt; and &lt;code&gt;whileInView&lt;/code&gt;, how to tune a spring, how reduced motion is handled, how to keep scroll effects fast, and how to check that everything still feels right.&lt;/p&gt;

&lt;h2&gt;
  
  
  What carries over, and where it lives
&lt;/h2&gt;

&lt;p&gt;Framer stores animations as properties on layers and components. In the converted project they become named constants and props in ordinary &lt;code&gt;.tsx&lt;/code&gt; files.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;In Framer&lt;/th&gt;
&lt;th&gt;In the converted project&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Transitions (spring or tween)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;const transition1 = { … } as const&lt;/code&gt; near the top of the component or view file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appear effects&lt;/td&gt;
&lt;td&gt;Animation objects in the view (&lt;code&gt;animation&lt;/code&gt;, &lt;code&gt;animation1&lt;/code&gt; …) applied through kit helpers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Appear on scroll (layer or section in view)&lt;/td&gt;
&lt;td&gt;The same objects, played when the layer reaches its threshold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scroll transforms&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;__fx_transformTargets&lt;/code&gt; and &lt;code&gt;__fx_transformTrigger&lt;/code&gt; props on a &lt;code&gt;withFX&lt;/code&gt; element&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scroll Speed (parallax)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;__fx_parallaxTransformEnabled&lt;/code&gt; and &lt;code&gt;__fx_speed&lt;/code&gt; props on a &lt;code&gt;withFX&lt;/code&gt; element&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sticky position&lt;/td&gt;
&lt;td&gt;CSS &lt;code&gt;position: sticky&lt;/code&gt; with its offsets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Loop effects&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;__fx_loop…&lt;/code&gt; props on a &lt;code&gt;withFX&lt;/code&gt; element&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hover and press states&lt;/td&gt;
&lt;td&gt;Variant states on the component, played by &lt;code&gt;motion&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Component variants&lt;/td&gt;
&lt;td&gt;Human-readable names such as &lt;code&gt;variant === "Desktop"&lt;/code&gt; with a CSS class per variant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page transitions&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pageEffects&lt;/code&gt; in &lt;code&gt;src/site/routes.ts&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reduced-motion site setting&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;reducedMotion&lt;/code&gt; in &lt;code&gt;src/site/routes.ts&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The kit lives in &lt;code&gt;src/lib/deframer&lt;/code&gt; and is imported as &lt;code&gt;@/deframer&lt;/code&gt;. It is an original, compact reimplementation of the runtime APIs the generated code calls, not Framer's runtime, and only the modules your site uses are kept. Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer.&lt;/p&gt;

&lt;p&gt;If you want the full tour of the folders first, read &lt;a href="https://deframer.co/blog/what-you-get-in-a-converted-nextjs-project" rel="noopener noreferrer"&gt;what you get in a converted Next.js project&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Transitions
&lt;/h3&gt;

&lt;p&gt;A transition in a converted component looks like this (real output from a converted template):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transition1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;damping&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stiffness&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spring"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transition2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;damping&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stiffness&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spring"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tweens keep their duration and cubic-bezier easing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transition1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.45&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ease&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0.44&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.56&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tween"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some Framer springs are defined by duration and bounce rather than physics values, and those stay that way too, for example &lt;code&gt;{ bounce: 0.2, delay: 0, duration: 0.4, type: "spring" }&lt;/code&gt;. The &lt;code&gt;as const&lt;/code&gt; keeps the literal types, so TypeScript knows &lt;code&gt;type&lt;/code&gt; is exactly &lt;code&gt;"spring"&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Appear effects
&lt;/h3&gt;

&lt;p&gt;Appear animations become pairs of objects in the page view: a starting state and a target state with its transition.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transition1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;damping&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stiffness&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spring"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;animation&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;transition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;transition1&lt;/span&gt; &lt;span class="cm"&gt;/* … */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;animation1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.001&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt; &lt;span class="cm"&gt;/* … */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server render paints the starting state, so visitors don't see a flash of final content, and &lt;code&gt;motion&lt;/code&gt; plays the target state as soon as the page hydrates. Appear effects set to play on scroll start when the layer enters the viewport.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hover, press and variants
&lt;/h3&gt;

&lt;p&gt;Components that react to the pointer declare which variants have gestures enabled, and the variant names stay readable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;enabledGestures&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;Button&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;hover&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"Button Small"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;hover&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The element itself is a &lt;code&gt;motion&lt;/code&gt; element (&lt;code&gt;&amp;lt;motion.a&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;motion.div&amp;gt;&lt;/code&gt;), and the CSS module holds a class per variant, so many visual differences between states are plain CSS you can inspect in the browser.&lt;/p&gt;

&lt;h3&gt;
  
  
  Page transitions
&lt;/h3&gt;

&lt;p&gt;Page transitions are site-wide data in &lt;code&gt;src/site/routes.ts&lt;/code&gt;: a global enter effect plus per-route overrides.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pageEffects&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;global&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;enter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;scale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;transition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ease&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0.44&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.56&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tween"&lt;/span&gt; &lt;span class="cm"&gt;/* … */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="c1"&gt;// …&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How do Framer scroll animations work in Next.js?
&lt;/h2&gt;

&lt;p&gt;Framer's scroll effects become props on elements wrapped with the kit's &lt;code&gt;withFX&lt;/code&gt; helper, and the kit plays them with &lt;code&gt;motion&lt;/code&gt;'s scroll and in-view utilities. The server render paints each effect's starting state, and the effect starts moving once the page hydrates. There are four kinds, and they map to Framer's effect settings like this.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Effect in Framer&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;In the converted project&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Appear, triggered by layer or section in view&lt;/td&gt;
&lt;td&gt;Plays once (or every time) when the element reaches a threshold&lt;/td&gt;
&lt;td&gt;Appear options on a &lt;code&gt;withFX&lt;/code&gt; element (&lt;code&gt;__fx_animateOnce&lt;/code&gt;, &lt;code&gt;__fx_threshold&lt;/code&gt;, and &lt;code&gt;__fx_targets&lt;/code&gt; for sections)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scroll transform&lt;/td&gt;
&lt;td&gt;Ties opacity, offset, scale or rotation to scroll position&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;__fx_transformTargets&lt;/code&gt; plus &lt;code&gt;__fx_transformTrigger&lt;/code&gt;: &lt;code&gt;"onScroll"&lt;/code&gt;, &lt;code&gt;"onInView"&lt;/code&gt; or &lt;code&gt;"onScrollTarget"&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scroll Speed&lt;/td&gt;
&lt;td&gt;Moves a layer faster or slower than the page (parallax)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;__fx_parallaxTransformEnabled&lt;/code&gt; and &lt;code&gt;__fx_speed&lt;/code&gt; (a percentage of scroll speed)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sticky&lt;/td&gt;
&lt;td&gt;Holds a layer in place while its parent scrolls past&lt;/td&gt;
&lt;td&gt;CSS &lt;code&gt;position: sticky&lt;/code&gt; with its top, right, bottom or left offset&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Scroll-triggered appear effects
&lt;/h3&gt;

&lt;p&gt;A scroll-triggered appear effect runs once when the element enters the viewport, rather than following the scroll. The kit watches each element with a shared &lt;code&gt;IntersectionObserver&lt;/code&gt; and animates from the starting state to the target state, with the effect's own transition. Two details match Framer's behavior: the visible share is measured against the smaller of the element's height and the viewport's, so a tall section can still reach a threshold like 0.5, and an effect without "once" plays again each time the element re-enters. Effects tied to a section (Framer's section-in-view trigger) list that section in their targets, so they play when the section, not the layer itself, scrolls into place.&lt;/p&gt;

&lt;h3&gt;
  
  
  Scroll-linked transforms
&lt;/h3&gt;

&lt;p&gt;A scroll transform maps scroll position to style values, so the element moves as the reader scrolls. The trigger decides which scroll range is used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;"onScroll"&lt;/code&gt;: the page's scroll progress, top to bottom;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"onInView"&lt;/code&gt;: from when the element's top enters the viewport until its bottom reaches the viewport's bottom;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"onScrollTarget"&lt;/code&gt;: ranges between the sections the effect names, each with its own target values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Values between targets are interpolated, and a configured spring smooths them through &lt;code&gt;animate&lt;/code&gt; instead of setting them directly. On the element, it reads roughly like this (illustrative; your file has its own names and values):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nc"&gt;MotionDivWithFX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;withFX&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;MotionDivWithFX&lt;/span&gt;
  &lt;span class="n"&gt;__fx_styleTransformEffectEnabled&lt;/span&gt;
  &lt;span class="n"&gt;__fx_transformTrigger&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"onInView"&lt;/span&gt;
  &lt;span class="n"&gt;__fx_transformTargets&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To change the effect, edit the target values. To remove it, delete the &lt;code&gt;__fx_&lt;/code&gt; props, or render a plain element.&lt;/p&gt;

&lt;h3&gt;
  
  
  Parallax with Scroll Speed
&lt;/h3&gt;

&lt;p&gt;Framer's Scroll Speed becomes &lt;code&gt;__fx_speed&lt;/code&gt;, a percentage of the page's scroll speed: 100 moves with the page, values below 100 lag behind (a background feel), values above 100 move ahead. The kit measures the element once it first comes into view, then shifts it vertically on every scroll frame. A speed of exactly 100 does nothing, so that is also a quick way to switch parallax off while you test.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sticky sections
&lt;/h3&gt;

&lt;p&gt;Sticky layers are not animations at all: they are CSS &lt;code&gt;position: sticky&lt;/code&gt; with the offset you set in Framer, plus &lt;code&gt;will-change: transform&lt;/code&gt; and a &lt;code&gt;z-index&lt;/code&gt; of 1. They only stick while their parent is taller than the viewport, so if a sticky section stops sticking after you edit the layout, check the parent's height and any &lt;code&gt;overflow&lt;/code&gt; set on an ancestor, which disables sticky positioning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building your own scroll effects with motion
&lt;/h2&gt;

&lt;p&gt;You can add scroll animations of your own with &lt;code&gt;motion&lt;/code&gt;'s documented APIs, independent of the kit. Put them in client components (&lt;code&gt;"use client"&lt;/code&gt;) and keep everything else on the server. The &lt;a href="https://motion.dev/docs/react-scroll-animations" rel="noopener noreferrer"&gt;motion scroll animation docs&lt;/a&gt; cover both kinds in depth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scroll-triggered: &lt;code&gt;whileInView&lt;/code&gt;.&lt;/strong&gt; The &lt;code&gt;FadeIn&lt;/code&gt; example below in "Adding a new animation" is the whole pattern: &lt;code&gt;initial&lt;/code&gt;, &lt;code&gt;whileInView&lt;/code&gt;, and &lt;code&gt;viewport={{ once: true }}&lt;/code&gt; so it plays only the first time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scroll-linked parallax: &lt;code&gt;useScroll&lt;/code&gt; and &lt;code&gt;useTransform&lt;/code&gt;.&lt;/strong&gt; &lt;code&gt;useScroll&lt;/code&gt; with a &lt;code&gt;target&lt;/code&gt; ref gives that element's progress through the viewport from 0 to 1, and &lt;code&gt;useTransform&lt;/code&gt; maps it to a style value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;useScroll&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;useTransform&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"motion/react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;ParallaxImage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;alt&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;HTMLDivElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;scrollYProgress&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useScroll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"start end"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"end start"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useTransform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scrollYProgress&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-10%"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"10%"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"hidden"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"relative"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;aspectRatio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"16 / 9"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;img&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"absolute"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"-10% 0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"100%"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"120%"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;objectFit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cover"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Sticky scroll section with progress.&lt;/strong&gt; Combine a tall outer element, a sticky inner one, and the outer element's scroll progress:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;useScroll&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;useTransform&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"motion/react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;StickySteps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;steps&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;HTMLElement&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;scrollYProgress&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useScroll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;offset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"start start"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"end end"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useTransform&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scrollYProgress&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"0%"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"100%"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`${steps.length * 100}vh`&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sticky"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"100vh"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"grid"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;placeItems&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"center"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"currentColor"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"absolute"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;ol&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;li&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;li&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;ol&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wrap a scroll value in &lt;code&gt;useSpring&lt;/code&gt; if you want it smoothed rather than locked to the scroll position. These are new files you add, for example &lt;code&gt;src/components/parallax-image.tsx&lt;/code&gt;; nothing in the converted project depends on them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to edit a spring
&lt;/h2&gt;

&lt;p&gt;Say a menu opens too slowly. Here is the safe way to tune it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the project locally with &lt;code&gt;npm install&lt;/code&gt; and &lt;code&gt;npm run dev&lt;/code&gt;, and open the page with the menu.&lt;/li&gt;
&lt;li&gt;Find the component file. Components sit in &lt;code&gt;src/components/&lt;/code&gt;, named after the designer's components and folders (for example &lt;code&gt;src/components/nav-menu.tsx&lt;/code&gt;). Searching the project for the layer name usually gets you there fastest.&lt;/li&gt;
&lt;li&gt;Find the transition constant the element uses. Look for &lt;code&gt;transition={transition2}&lt;/code&gt; or &lt;code&gt;__fx_animate={{ transition: transition2 }}&lt;/code&gt; and follow it to the constant at the top of the file.&lt;/li&gt;
&lt;li&gt;Change one value at a time. Raising &lt;code&gt;stiffness&lt;/code&gt; makes the spring faster and snappier; raising &lt;code&gt;damping&lt;/code&gt; reduces overshoot; raising &lt;code&gt;mass&lt;/code&gt; makes it feel heavier and slower to settle.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;   &lt;span class="c1"&gt;// before&lt;/span&gt;
   &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transition2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;damping&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stiffness&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spring"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="c1"&gt;// after: quicker, still without overshoot&lt;/span&gt;
   &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transition2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;damping&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mass&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stiffness&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spring"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Save and watch the hot reload. If the same feel should apply elsewhere, move the constant into a shared file (for example add &lt;code&gt;src/styles/motion.ts&lt;/code&gt;) and import it, rather than copying numbers around.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Constants are per file, so &lt;code&gt;transition1&lt;/code&gt; in one component is unrelated to &lt;code&gt;transition1&lt;/code&gt; in another. Renaming them to something descriptive (&lt;code&gt;menuOpen&lt;/code&gt;, &lt;code&gt;cardHover&lt;/code&gt;) is a good first refactor once you know which is which.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding a new animation
&lt;/h2&gt;

&lt;p&gt;You are not limited to what came from Framer. Any component that already runs in the browser (it starts with &lt;code&gt;"use client"&lt;/code&gt;) can use &lt;code&gt;motion&lt;/code&gt; directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use client"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;motion&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"motion/react"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;FadeIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;children&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ReactNode&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;
      &lt;span class="n"&gt;initial&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="n"&gt;whileInView&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="n"&gt;viewport&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;once&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="n"&gt;transition&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"spring"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stiffness&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;damping&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;children&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;motion&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;div&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a new file you would add yourself, for example &lt;code&gt;src/components/fade-in.tsx&lt;/code&gt;. &lt;code&gt;viewport&lt;/code&gt; also takes &lt;code&gt;amount&lt;/code&gt; (how much of the element must be visible) and &lt;code&gt;margin&lt;/code&gt;, if you need the reveal to start earlier or later. Keep server components free of &lt;code&gt;motion&lt;/code&gt; and wrap only the parts that animate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reduced motion
&lt;/h2&gt;

&lt;p&gt;Framer has a site setting for whether animations respect the visitor's reduced-motion preference, and the converted project keeps your choice in &lt;code&gt;src/site/routes.ts&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="cm"&gt;/** "user": honour prefers-reduced-motion (site setting); "never": always animate. */&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;reducedMotion&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"never"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The kit passes this value to &lt;code&gt;motion&lt;/code&gt;'s &lt;code&gt;MotionConfig&lt;/code&gt;. With &lt;code&gt;"user"&lt;/code&gt;, visitors who ask their operating system for less motion get transforms that jump straight to their end state while opacity still fades. The same applies to scroll effects: scroll transforms keep only their opacity part, and Scroll Speed parallax doesn't start, so the layer stays where the layout puts it.&lt;/p&gt;

&lt;p&gt;For scroll effects you add yourself, check the preference with motion's &lt;code&gt;useReducedMotion&lt;/code&gt; hook and skip the transform, or wrap your components in the same &lt;code&gt;MotionConfig&lt;/code&gt;. Large parallax and scroll-linked movement are exactly the effects that cause discomfort for people with vestibular disorders, so treat this as part of the feature, not an extra. If your site was set to always animate, consider switching to &lt;code&gt;"user"&lt;/code&gt;: it's a one-word change and an accessibility improvement for people sensitive to movement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping scroll animations fast
&lt;/h2&gt;

&lt;p&gt;Scroll effects run on every scroll frame, so they are the animations most likely to cost smoothness. A few rules keep them cheap:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Animate transforms and opacity only.&lt;/strong&gt; &lt;code&gt;x&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;scale&lt;/code&gt;, &lt;code&gt;rotate&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; can be composited by the browser; animating &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, &lt;code&gt;top&lt;/code&gt; or &lt;code&gt;box-shadow&lt;/code&gt; forces layout or paint on every frame. The kit's scroll effects already limit themselves to transform and opacity channels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prefer &lt;code&gt;whileInView&lt;/code&gt; for one-off reveals.&lt;/strong&gt; A reveal that plays once needs an intersection check, not a per-frame scroll listener. motion pools its &lt;code&gt;IntersectionObserver&lt;/code&gt;, and the kit shares one observer per option set.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't stack many parallax layers.&lt;/strong&gt; Each moving layer gets &lt;code&gt;will-change: transform&lt;/code&gt;, which costs memory on the GPU. A handful per page is fine; dozens of large images is not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure on a real phone.&lt;/strong&gt; Record a scroll in the Chrome DevTools Performance panel with CPU throttling, and look for long tasks while scrolling. Heavy images and third-party scripts are the usual cause, not the effect itself.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;motion runs &lt;code&gt;useScroll&lt;/code&gt;-driven animations on the browser's native scroll timeline where it can, and falls back to JavaScript otherwise, according to its documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing animations after conversion
&lt;/h2&gt;

&lt;p&gt;Animations are where small differences are easiest to feel, so check them deliberately.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compare side by side.&lt;/strong&gt; When a live preview is available, the compare view shows the original and the converted site together at 1440, 768 and 390 pixels wide, with synced scrolling. A live preview lasts 10 minutes once it is ready, so plan what you want to check first. Otherwise, open the original beside the project running locally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check every breakpoint.&lt;/strong&gt; Variants often differ between Desktop, Tablet and Phone. The &lt;a href="https://deframer.co/blog/framer-breakpoints-and-responsive-layouts-in-nextjs" rel="noopener noreferrer"&gt;breakpoints guide&lt;/a&gt; explains how those layouts are split.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test reduced motion.&lt;/strong&gt; In Chrome DevTools, open the Rendering panel and emulate &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt;, then reload.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test a production build.&lt;/strong&gt; Run &lt;code&gt;npm run build&lt;/code&gt; and &lt;code&gt;npm run start&lt;/code&gt;. Development mode adds overhead, so judge smoothness on the production build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the notices.&lt;/strong&gt; The result page lists anything that needed attention, such as components that render only in the browser or Framer features replaced by placeholders. If an animated element is affected, it will be named there.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If an animation looks janky on a real device, the cause is usually heavy images or third-party scripts rather than the animation itself; &lt;a href="https://deframer.co/blog/performance-tuning-a-converted-framer-site" rel="noopener noreferrer"&gt;performance tuning a converted site&lt;/a&gt; covers how to measure that.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do I need framer-motion installed?
&lt;/h3&gt;

&lt;p&gt;No. The project depends on &lt;code&gt;motion&lt;/code&gt;, the same library under its current package name, imported as &lt;code&gt;motion/react&lt;/code&gt;. It is pinned in &lt;code&gt;package.json&lt;/code&gt; along with Next.js, React and the site's other packages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are spring values exactly the same as in Framer?
&lt;/h3&gt;

&lt;p&gt;Yes, springs keep their stiffness, damping and mass, and tweens keep their duration and easing. The result is close to the original but not guaranteed identical, so compare the pages that matter most, as the &lt;a href="https://deframer.co/#faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; recommends.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I remove an animation completely?
&lt;/h3&gt;

&lt;p&gt;Yes. Set the starting state equal to the end state, or render a plain element instead of the &lt;code&gt;motion&lt;/code&gt; one. Because the code is ordinary TypeScript, you can delete what you don't need, and your editor will flag constants that are no longer used.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I make Framer scroll animations work in Next.js?
&lt;/h3&gt;

&lt;p&gt;Convert the published site and they come along: appear-on-scroll effects, scroll transforms and Scroll Speed parallax become &lt;code&gt;__fx_&lt;/code&gt; props on &lt;code&gt;withFX&lt;/code&gt; elements, played by &lt;code&gt;motion&lt;/code&gt;, and sticky layers become CSS &lt;code&gt;position: sticky&lt;/code&gt;. For new effects, use motion's &lt;code&gt;whileInView&lt;/code&gt;, &lt;code&gt;useScroll&lt;/code&gt; and &lt;code&gt;useTransform&lt;/code&gt; in a client component.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why is my parallax or scroll effect not moving?
&lt;/h3&gt;

&lt;p&gt;Check three things: the site's &lt;code&gt;reducedMotion&lt;/code&gt; setting together with your system's reduced-motion preference (parallax doesn't run when motion is reduced), a &lt;code&gt;__fx_speed&lt;/code&gt; of exactly 100, which means no parallax, and for sticky layers an ancestor with &lt;code&gt;overflow&lt;/code&gt; set or a parent no taller than the viewport.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do scroll animations hurt performance or Core Web Vitals?
&lt;/h3&gt;

&lt;p&gt;Not much when they animate only transform and opacity, which is what the converted effects do. Content is server-rendered in its starting state, so it is in the HTML from the first response; heavy images and third-party scripts usually matter more, as &lt;a href="https://deframer.co/blog/performance-tuning-a-converted-framer-site" rel="noopener noreferrer"&gt;performance tuning a converted site&lt;/a&gt; shows.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/keeping-framer-animations-in-nextjs-with-motion" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React, TanStack Start, React Router, Nuxt or static HTML code. Converting is free; a verified download is 1 credit ($25 for 1, $50 for 10, $100 for 100).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>nextjs</category>
      <category>animation</category>
      <category>react</category>
    </item>
    <item>
      <title>Framer CMS to Next.js: what happens to your collections, and how to move them to a database</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:31:09 +0000</pubDate>
      <link>https://dev.to/designify101/framer-cms-to-nextjs-what-happens-to-your-collections-and-how-to-move-them-to-a-database-212o</link>
      <guid>https://dev.to/designify101/framer-cms-to-nextjs-what-happens-to-your-collections-and-how-to-move-them-to-a-database-212o</guid>
      <description>&lt;p&gt;When you move a Framer site to Next.js with Deframer, each Framer CMS collection becomes two files: &lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.json&lt;/code&gt; with the records and &lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.ts&lt;/code&gt; with a typed schema. Detail pages are prerendered from those records, so content ships with your code. You can edit the JSON directly, or later move the records into a database or headless CMS and keep the same shape. The CMS files are the same if you convert to &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react" rel="noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; or &lt;a href="https://deframer.co/framer-to-nuxt" rel="noopener noreferrer"&gt;Nuxt&lt;/a&gt; instead.&lt;/p&gt;

&lt;p&gt;That trade-off suits many sites well, and it is worth understanding before you start editing. This guide walks through the files and the detail routes, then shows how to change a record, add a new item, work with rich text and images, handle several languages, and finally move the collection into a database or headless CMS without changing your URLs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two files per collection
&lt;/h2&gt;

&lt;p&gt;A collection called "Blog" in Framer becomes &lt;code&gt;src/cms/blog.json&lt;/code&gt; and &lt;code&gt;src/cms/blog.ts&lt;/code&gt;. Field names are readable (&lt;code&gt;title&lt;/code&gt;, &lt;code&gt;slug&lt;/code&gt;, &lt;code&gt;publishedDate&lt;/code&gt;, &lt;code&gt;thumbnail&lt;/code&gt;) and appear in the same order as in the CMS.&lt;/p&gt;

&lt;p&gt;Here is one record (real output from a converted template, shortened):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cImcpXX5N"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"How to Create a Lasting Impression"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"how-to-create-a-lasting-impression"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publishedDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2025-02-28T00:00:00.000Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Branding &amp;amp; Identity"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"thumbnail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"src"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://framerusercontent.com/images/….jpg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"srcSet"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"… 512w, … 810w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"pixelWidth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;810&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"pixelHeight"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;790&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"alt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Blog Image"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;.ts&lt;/code&gt; file describes the field types and wraps the records in a &lt;code&gt;JsonCollection&lt;/code&gt; from the project's runtime kit (&lt;code&gt;@/deframer&lt;/code&gt;). Shortened, it looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;JsonCollection&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/deframer"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"./blog.json"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;publishedDate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"date"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;thumbnail&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"responsiveimage"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"richtext"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Records live in ./blog.json; edit them there.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nc"&gt;Blog&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;collectionByLocaleId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;JsonCollection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="cm"&gt;/* … */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;displayName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Blog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"blog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nc"&gt;Blog&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pages and components query the collection through the kit, the same way the Framer design filtered, sorted and paginated it. You rarely need to touch the &lt;code&gt;.ts&lt;/code&gt; file; the JSON is where content changes happen. For the wider folder layout, see &lt;a href="https://deframer.co/blog/what-you-get-in-a-converted-nextjs-project" rel="noopener noreferrer"&gt;what you get in a converted Next.js project&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/.%2Fimages%2Fframer-cms-to-json-in-nextjs%2Fcollection-files.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/.%2Fimages%2Fframer-cms-to-json-in-nextjs%2Fcollection-files.webp" alt="A Framer CMS collection called Blog becomes two files: src/cms/blog.json with the records, and src/cms/blog.ts with the field types, wrapped in a JsonCollection" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Each collection becomes its records and a typed module that reads them.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  How are Framer CMS detail pages built in Next.js?
&lt;/h2&gt;

&lt;p&gt;Each CMS detail page becomes a dynamic route with &lt;code&gt;generateStaticParams&lt;/code&gt;, so every item is prerendered at build time. A Framer page at &lt;code&gt;/blog/:slug&lt;/code&gt; becomes &lt;code&gt;src/app/blog/[slug]/page.tsx&lt;/code&gt;, and the parts that matter look like this (shortened):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// The full published item list also validates on-demand requests in live previews.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;publishedItemParams&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"how-to-create-a-lasting-impression"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="cm"&gt;/* … */&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Title, description and social image of every CMS item, evaluated at conversion time.&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;generateMetadata&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Metadata&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;values&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;assertPublishedItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasOwn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;itemMetadata&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;itemMetadata&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Metadata&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;values&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Every CMS item is prerendered; other URLs answer with the 404 page.&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dynamicParams&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;generateStaticParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;publishedItemParams&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;publishedItemParams&lt;/code&gt; lists every item at conversion time, &lt;code&gt;generateStaticParams&lt;/code&gt; returns it, and &lt;code&gt;dynamicParams = false&lt;/code&gt; means any slug not in that list gets the 404 page (&lt;code&gt;assertPublishedItem&lt;/code&gt; calls &lt;code&gt;notFound()&lt;/code&gt; for the same reason). &lt;code&gt;generateMetadata&lt;/code&gt; reads &lt;code&gt;metadata.json&lt;/code&gt; in the same folder, which holds each item's title, description, Open Graph and Twitter data. In Next.js 16, &lt;code&gt;params&lt;/code&gt; is a Promise, which is why it is awaited. The Next.js docs on &lt;a href="https://nextjs.org/docs/app/api-reference/functions/generate-static-params" rel="noopener noreferrer"&gt;&lt;code&gt;generateStaticParams&lt;/code&gt;&lt;/a&gt; describe the API itself.&lt;/p&gt;

&lt;p&gt;This is the key point for editors: a record in the JSON alone does not create a page. The route needs to know about the slug too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Editing an existing record
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;src/cms/blog.json&lt;/code&gt; and find the record by its &lt;code&gt;slug&lt;/code&gt; or &lt;code&gt;title&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Change the field values. Keep the types the schema expects: dates as ISO strings (&lt;code&gt;"2025-02-28T00:00:00.000Z"&lt;/code&gt;), images as objects, rich text as a JSON tree (below).&lt;/li&gt;
&lt;li&gt;If you changed the title or summary that appears in search results and social cards, update the matching entry in &lt;code&gt;src/app/blog/[slug]/metadata.json&lt;/code&gt; as well. It was evaluated at conversion time and doesn't read the JSON record.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;npm run dev&lt;/code&gt; and check both the list page and the detail page.&lt;/li&gt;
&lt;li&gt;Commit, rebuild and redeploy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Changing a &lt;code&gt;slug&lt;/code&gt; changes a URL. If the old URL was indexed or linked, add a redirect for it; the &lt;a href="https://deframer.co/blog/seo-when-moving-off-framer" rel="noopener noreferrer"&gt;SEO guide for moving off Framer&lt;/a&gt; covers redirects in &lt;code&gt;next.config.ts&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding a new item
&lt;/h2&gt;

&lt;p&gt;Adding an item touches four places. Follow them in order.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Add the record.&lt;/strong&gt; Copy an existing record in &lt;code&gt;blog.json&lt;/code&gt;, give it a new unique &lt;code&gt;id&lt;/code&gt; (any string not already used in the file) and a new &lt;code&gt;slug&lt;/code&gt;, then fill in the fields. Some collections have fields that hold another item's &lt;code&gt;id&lt;/code&gt;, such as a "next post" link; check whether your neighbors need updating.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add the slug to the published list&lt;/strong&gt; that &lt;code&gt;generateStaticParams&lt;/code&gt; returns, &lt;code&gt;publishedItemParams&lt;/code&gt; in &lt;code&gt;src/app/blog/[slug]/page.tsx&lt;/code&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;   &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;publishedItemParams&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
     &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"how-to-create-a-lasting-impression"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
     &lt;span class="c1"&gt;// …&lt;/span&gt;
     &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"my-new-post"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Add its metadata&lt;/strong&gt; to &lt;code&gt;src/app/blog/[slug]/metadata.json&lt;/code&gt;, keyed by slug, following the shape of the existing entries:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;   &lt;span class="nl"&gt;"my-new-post"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"My New Post"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
     &lt;span class="nl"&gt;"openGraph"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"My New Post"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"images"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/blog/my-new-post"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
     &lt;span class="nl"&gt;"twitter"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"card"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"summary_large_image"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"My New Post"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"images"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"…"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
     &lt;span class="nl"&gt;"alternates"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"canonical"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/blog/my-new-post"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A top-level &lt;code&gt;"description"&lt;/code&gt; is also valid here if you want a specific summary for search results.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Add the URL to &lt;code&gt;public/sitemap.xml&lt;/code&gt;.&lt;/strong&gt; The sitemap is a copy of the one the site published, so it doesn't update itself.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then run &lt;code&gt;npm run build&lt;/code&gt;. A slug missing from step 2 shows up as a 404, which makes the mistake easy to spot. Removing an item is the same list in reverse.&lt;/p&gt;

&lt;p&gt;If you'd rather derive &lt;code&gt;generateStaticParams&lt;/code&gt; from the JSON instead of listing slugs by hand, that is a reasonable refactor. Keep the output the same and test the build.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rich text
&lt;/h2&gt;

&lt;p&gt;Rich text fields become a readable JSON tree that the kit renders. A paragraph with bold text looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"h6"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Understanding Branding in Business"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Branding is more than just a logo."&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"strong"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Recognition"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Links point at paths, and components embedded in rich text are referenced by name. The collection's &lt;code&gt;.ts&lt;/code&gt; file maps those names to components, for example a YouTube embed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nc"&gt;YouTube&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;lazy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"@/vendor/you-tube"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Youtube"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;richTextComponents&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;YouTube&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For long edits, it is often easiest to write the text elsewhere and convert it to this tree with a small script you add, rather than hand-typing nested arrays.&lt;/p&gt;

&lt;h2&gt;
  
  
  Images
&lt;/h2&gt;

&lt;p&gt;Image fields hold &lt;code&gt;src&lt;/code&gt;, &lt;code&gt;srcSet&lt;/code&gt;, &lt;code&gt;pixelWidth&lt;/code&gt;, &lt;code&gt;pixelHeight&lt;/code&gt; and &lt;code&gt;alt&lt;/code&gt;. By default the URLs point at Framer's CDN (&lt;code&gt;framerusercontent.com&lt;/code&gt;). If you converted with "Assets in the project", they point at files in &lt;code&gt;public/images/&lt;/code&gt; instead.&lt;/p&gt;

&lt;p&gt;For a new image you supply yourself:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add the file to &lt;code&gt;public/images/&lt;/code&gt;, for example &lt;code&gt;public/images/my-new-post.jpg&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;src&lt;/code&gt; to &lt;code&gt;/images/my-new-post.jpg&lt;/code&gt;, and &lt;code&gt;pixelWidth&lt;/code&gt; and &lt;code&gt;pixelHeight&lt;/code&gt; to the file's real dimensions so layouts reserve the right space.&lt;/li&gt;
&lt;li&gt;Write a meaningful &lt;code&gt;alt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;For &lt;code&gt;srcSet&lt;/code&gt;, list the sizes you actually have. With one file, a single entry such as &lt;code&gt;"/images/my-new-post.jpg 1200w"&lt;/code&gt; is valid.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The trade-offs between CDN and local files are covered in &lt;a href="https://deframer.co/blog/framer-fonts-and-assets-cdn-vs-local" rel="noopener noreferrer"&gt;Framer fonts and assets: CDN vs local&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sites with several languages
&lt;/h2&gt;

&lt;p&gt;On a multi-locale site, records that differ by language get their own file per locale, such as &lt;code&gt;src/cms/blog.ja-jp.json&lt;/code&gt;, next to the default &lt;code&gt;blog.json&lt;/code&gt;. A locale file exists only when its content differs. Edit each language in its own file and keep &lt;code&gt;id&lt;/code&gt; and field names aligned across them. Per-locale titles and descriptions for detail pages live in the route's &lt;code&gt;metadata.json&lt;/code&gt;. The &lt;a href="https://deframer.co/blog/multi-locale-framer-sites-in-nextjs" rel="noopener noreferrer"&gt;multi-locale guide&lt;/a&gt; explains the &lt;code&gt;[locale]&lt;/code&gt; route tree.&lt;/p&gt;

&lt;h2&gt;
  
  
  When should you move Framer CMS content to a database?
&lt;/h2&gt;

&lt;p&gt;Move it when the JSON workflow starts to slow people down: non-developers publish often, you need drafts, scheduled posts or editorial review, or a collection grows to hundreds of items that nobody wants to review as one file. Until then, JSON in the repository is versioned, reviewable in pull requests and free to host.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;JSON in the repo (as converted)&lt;/th&gt;
&lt;th&gt;Your own database&lt;/th&gt;
&lt;th&gt;Headless CMS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who edits&lt;/td&gt;
&lt;td&gt;Developers, through Git&lt;/td&gt;
&lt;td&gt;Your app or an admin you build&lt;/td&gt;
&lt;td&gt;Editors, in the CMS's interface&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drafts and scheduling&lt;/td&gt;
&lt;td&gt;By branch, by hand&lt;/td&gt;
&lt;td&gt;You build them&lt;/td&gt;
&lt;td&gt;Usually built in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New item goes live&lt;/td&gt;
&lt;td&gt;Commit, rebuild, redeploy&lt;/td&gt;
&lt;td&gt;Rebuild (or on-demand rendering)&lt;/td&gt;
&lt;td&gt;Rebuild on publish (webhook)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extra running cost&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Database hosting&lt;/td&gt;
&lt;td&gt;CMS plan&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The safest migration keeps two things fixed: the record shape the views already read, and every published URL. Do both, and the generated components and pages barely change. If you are choosing a headless CMS, &lt;a href="https://deframer.co/blog/adding-a-headless-cms-to-a-converted-framer-site" rel="noopener noreferrer"&gt;adding a headless CMS to a converted Framer site&lt;/a&gt; walks through a build-time sync and a fetch-in-server-components approach in detail; the steps below are the parts every target shares, plus a small database example.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Map the schema field by field
&lt;/h3&gt;

&lt;p&gt;The collection's &lt;code&gt;.ts&lt;/code&gt; file is your source of truth for types. Map each field before you create tables or content models:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field in &lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.ts&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;In a SQL database&lt;/th&gt;
&lt;th&gt;In a headless CMS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;id&lt;/code&gt; (string)&lt;/td&gt;
&lt;td&gt;Primary key, keep the existing value&lt;/td&gt;
&lt;td&gt;A text field holding the old id&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;slug&lt;/code&gt; (string)&lt;/td&gt;
&lt;td&gt;Unique text column&lt;/td&gt;
&lt;td&gt;Slug field, marked unique&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;string&lt;/code&gt;, &lt;code&gt;enum&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Text (with a check constraint for enums)&lt;/td&gt;
&lt;td&gt;Text, or a select with the same options&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;date&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;timestamptz&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Date-time field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;number&lt;/code&gt;, &lt;code&gt;boolean&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Numeric, boolean&lt;/td&gt;
&lt;td&gt;Number, boolean&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;responsiveimage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;JSON column, or &lt;code&gt;src&lt;/code&gt;, &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, &lt;code&gt;alt&lt;/code&gt; columns&lt;/td&gt;
&lt;td&gt;Asset or image field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;richtext&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;JSON column holding the existing tree&lt;/td&gt;
&lt;td&gt;The CMS's rich text field, after conversion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reference to another collection&lt;/td&gt;
&lt;td&gt;Column holding the other item's &lt;code&gt;id&lt;/code&gt; (a join table for lists)&lt;/td&gt;
&lt;td&gt;Reference field&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep the old &lt;code&gt;id&lt;/code&gt; values. Reference fields in the JSON hold another item's &lt;code&gt;id&lt;/code&gt;, so changing ids breaks those links unless you remap every reference in the same import.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Keep slugs exactly as they are
&lt;/h3&gt;

&lt;p&gt;A slug is a URL. Import every &lt;code&gt;slug&lt;/code&gt; unchanged, and make it unique in the new store, so &lt;code&gt;/blog/how-to-create-a-lasting-impression&lt;/code&gt; stays where it is. If you want to clean slugs up, do it later as a separate change with a redirect for each old path; the &lt;a href="https://deframer.co/blog/seo-when-moving-off-framer" rel="noopener noreferrer"&gt;SEO guide for moving off Framer&lt;/a&gt; covers redirects in &lt;code&gt;next.config.ts&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Decide what to do with rich text
&lt;/h3&gt;

&lt;p&gt;The rich text tree shown above is plain JSON, which gives you two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Store the tree as it is&lt;/strong&gt; (a JSON column, or a JSON field in the CMS). The kit's renderer keeps working and nothing visual changes. This is the low-risk choice for a database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Convert it to the CMS's format&lt;/strong&gt; (Portable Text, Lexical, Markdown and so on) with a one-off script. Editors then get a real editor, but you also need to render that format, so test headings, links, lists and embedded components such as the YouTube example.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Move or keep the images
&lt;/h3&gt;

&lt;p&gt;Image fields point at Framer's CDN unless you converted with "Assets in the project". Before relying on a new store, download every image the records reference and upload it to your CMS's asset storage or your own bucket, then rewrite &lt;code&gt;src&lt;/code&gt;, keeping &lt;code&gt;pixelWidth&lt;/code&gt;, &lt;code&gt;pixelHeight&lt;/code&gt; and &lt;code&gt;alt&lt;/code&gt;. Files already in &lt;code&gt;public/images/&lt;/code&gt; can stay there.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Read from the database in server code, then build
&lt;/h3&gt;

&lt;p&gt;The generated views query collections through the kit in client components, so database credentials must never reach them. Keep the views reading the record shape they know, and do the database work on the server: in the route files, and in a small script that writes the JSON before each build.&lt;/p&gt;

&lt;p&gt;Here is a minimal module using the &lt;code&gt;postgres&lt;/code&gt; package (&lt;code&gt;npm install postgres&lt;/code&gt;) and a &lt;code&gt;blog_posts&lt;/code&gt; table; any database client works the same way. This is code you add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/lib/blog-db.ts (added). Import it only from route files and scripts, never from client components.&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;postgres&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;postgres&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;DATABASE_URL&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;ImageValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;srcSet&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;pixelWidth&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;pixelHeight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;BlogRow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;published_date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;thumbnail&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ImageValue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// the rich text tree, stored as JSON&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;listBlogSlugs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;Array&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class="sb"&gt;`select slug from blog_posts where published order by published_date desc`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getBlogPost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;BlogRow&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;BlogRow&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="sb"&gt;`select * from blog_posts where slug = ${slug} and published`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;listBlogRecords&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;BlogRow&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="sb"&gt;`select * from blog_posts where published order by published_date desc`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// The shape src/cms/blog.json already uses, so the views don't change.&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;publishedDate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;published_date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toISOString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;thumbnail&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thumbnail&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The detail route then takes its slugs and metadata from the database instead of the lists written at conversion time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/app/blog/[slug]/page.tsx (edited: replaces publishedItemParams and the metadata.json lookup)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Metadata&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;notFound&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next/navigation"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;getBlogPost&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;listBlogSlugs&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/blog-db"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dynamicParams&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;generateStaticParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;listBlogSlugs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;generateMetadata&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Metadata&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;post&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getBlogPost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;notFound&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`/blog/${post.slug}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;openGraph&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thumbnail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;twitter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;card&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"summary_large_image"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;thumbnail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;alternates&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;canonical&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And a script refreshes the JSON the views read, run before every build:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// scripts/export-blog.ts (added)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;writeFileSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:fs"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;listBlogRecords&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"../src/lib/blog-db"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;listBlogRecords&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;writeFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"src/cms/blog.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`src/cms/blog.json: ${records.length} records`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;"prebuild": "tsx scripts/export-blog.ts"&lt;/code&gt; to &lt;code&gt;package.json&lt;/code&gt; (with &lt;code&gt;tsx&lt;/code&gt; as a dev dependency), so &lt;code&gt;npm run build&lt;/code&gt; always starts from current data. Copy the title format from the old &lt;code&gt;metadata.json&lt;/code&gt; (a site-name suffix, for example) so pages don't change in search results, and keep &lt;code&gt;public/sitemap.xml&lt;/code&gt; in step or replace it with a generated &lt;code&gt;app/sitemap.ts&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note&lt;/p&gt;
&lt;p&gt;
With &lt;code&gt;dynamicParams = false&lt;/code&gt;, a new row gets a page on the next build, and the build needs to reach the database. If you want new items to appear without a rebuild, allow dynamic params and set a revalidation policy instead; check the Next.js docs for the caching options in your version.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  6. Check the switch like a migration
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;npm run build&lt;/code&gt; against the new store and compare the number of prerendered detail pages with the number of records you started with.&lt;/li&gt;
&lt;li&gt;Diff the regenerated &lt;code&gt;src/cms/blog.json&lt;/code&gt; against the converted one. Apart from ordering and image URLs you moved on purpose, it should match.&lt;/li&gt;
&lt;li&gt;Request every old detail URL on a preview deployment and expect 200; request a made-up slug and expect 404.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer. It reads the CMS content your published site already serves and needs no access to your Framer editor. More on what Deframer reads and keeps is in the &lt;a href="https://deframer.co/#faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does the converted site still read from Framer's CMS?
&lt;/h3&gt;

&lt;p&gt;No. The records are copied into &lt;code&gt;src/cms/*.json&lt;/code&gt; at conversion time, and the project needs nothing from Framer to run. Images may still load from Framer's CDN unless you converted with "Assets in the project".&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does my new CMS item show a 404?
&lt;/h3&gt;

&lt;p&gt;Its slug is missing from the list &lt;code&gt;generateStaticParams&lt;/code&gt; returns (&lt;code&gt;publishedItemParams&lt;/code&gt; in the route file). Detail routes use &lt;code&gt;dynamicParams = false&lt;/code&gt;, so only listed slugs are prerendered; add the slug and its &lt;code&gt;metadata.json&lt;/code&gt; entry, then rebuild.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I add a new field to a collection?
&lt;/h3&gt;

&lt;p&gt;Yes. Add the field to every record in the JSON and to the schema in the collection's &lt;code&gt;.ts&lt;/code&gt; file, then use it in the view or component that renders the item. Keep the type consistent with existing fields of that kind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need to redeploy after editing content?
&lt;/h3&gt;

&lt;p&gt;Yes. The JSON is part of the build, so content changes ship with your next deployment, just like code changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I move Framer CMS collections to a database?
&lt;/h3&gt;

&lt;p&gt;Map each field in the collection's &lt;code&gt;.ts&lt;/code&gt; schema to a column, import the JSON records with their existing &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;slug&lt;/code&gt; values, and keep rich text as a JSON tree at first. Then read slugs and metadata from the database in the detail route, and regenerate &lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.json&lt;/code&gt; from it before each build so the views don't change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will moving to a headless CMS change my URLs?
&lt;/h3&gt;

&lt;p&gt;Only if the slugs change. Import every slug unchanged and keep the same route folder, and each item stays at the URL Framer published; add redirects for any slug you rename later.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/framer-cms-to-json-in-nextjs" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React, TanStack Start, React Router, Nuxt or static HTML code. Converting is free; a verified download is 1 credit ($25 for 1, $50 for 10, $100 for 100).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>nextjs</category>
      <category>cms</category>
      <category>json</category>
    </item>
    <item>
      <title>Is Framer built on React? Getting React code from a Framer site</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:32:50 +0000</pubDate>
      <link>https://dev.to/designify101/is-framer-built-on-react-getting-react-code-from-a-framer-site-3oee</link>
      <guid>https://dev.to/designify101/is-framer-built-on-react-getting-react-code-from-a-framer-site-3oee</guid>
      <description>&lt;p&gt;Yes. Published Framer sites are rendered with React, Framer's code components are React components, and its animation library started life as Framer Motion, now published as Motion. But Framer doesn't give you the React source of your site. To get React code, you either rebuild the design in React, or convert the published site with a tool such as Deframer, which writes React 19 components in TypeScript inside a Next.js, TanStack Start, Astro, React Router or Vite project.&lt;/p&gt;

&lt;p&gt;What you get from a conversion is real React, with a few particulars worth knowing before you plan to reuse it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How React shows up in Framer
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Published sites.&lt;/strong&gt; Each page you publish is made of modules that Framer's runtime renders with React, on the server and then in the browser. That's why a converter can read a published site as components rather than as flat HTML.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code components and overrides.&lt;/strong&gt; When you write code in Framer, you write React: a code component is a React component, and an override is a function that changes a layer's props. Framer's &lt;a href="https://www.framer.com/developers/" rel="noopener noreferrer"&gt;developer documentation&lt;/a&gt; covers both.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Motion.&lt;/strong&gt; The animation library many React developers know as Framer Motion is now published as &lt;code&gt;motion&lt;/code&gt;, imported from &lt;code&gt;motion/react&lt;/code&gt; (&lt;a href="https://motion.dev/" rel="noopener noreferrer"&gt;Motion&lt;/a&gt;). Framer's springs, transitions and gestures are built on it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that means Framer is "a React app you can open". The editor stores your design in its own format, and the published output is built for Framer's runtime, the &lt;code&gt;framer&lt;/code&gt; package, not for a React project of your own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your options for getting React code
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Rebuild in React
&lt;/h3&gt;

&lt;p&gt;Use your Framer site as the reference and build the components yourself. You get exactly the structure you want, at the cost of matching every breakpoint, variant and animation by hand.&lt;/p&gt;

&lt;h3&gt;
  
  
  Export components from the editor
&lt;/h3&gt;

&lt;p&gt;Framer's marketplace lists plugins aimed at this, such as React Export, whose listing describes it as bridging "Framer's intuitive design environment and your production-ready React codebase" (&lt;a href="https://www.framer.com/marketplace/plugins/react-export/" rel="noopener noreferrer"&gt;Framer Marketplace&lt;/a&gt;). Plugins work on components inside your project; check what each one covers before relying on it for a whole site.&lt;/p&gt;

&lt;h3&gt;
  
  
  Convert the whole published site
&lt;/h3&gt;

&lt;p&gt;Deframer converts the entire published site into a &lt;a href="https://deframer.co/framer-to-nextjs" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; or &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;Vite&lt;/a&gt; project: every page, layout, component, style, CMS collection, form and animation. It reads only the public files the site serves, so it needs no access to your Framer account. See &lt;a href="https://deframer.co/blog/how-to-export-a-framer-site-to-nextjs" rel="noopener noreferrer"&gt;how to export a Framer site to Next.js&lt;/a&gt; for the steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the React code looks like after converting
&lt;/h2&gt;

&lt;p&gt;A converted project is a standard React 19 app in the framework you picked (Next.js 16 by default), where every file is &lt;code&gt;.ts&lt;/code&gt; or &lt;code&gt;.tsx&lt;/code&gt; (plus &lt;code&gt;.astro&lt;/code&gt; pages in Astro). The components are the same in all four:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Design components&lt;/strong&gt; in &lt;code&gt;src/components/&lt;/code&gt;, in the designer's own folders, each with a CSS module. Their props use human names: variants are called what the designer called them, such as &lt;code&gt;"Desktop"&lt;/code&gt; or &lt;code&gt;"D / Light"&lt;/code&gt;, not Framer's internal ids.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pages&lt;/strong&gt; as components in &lt;code&gt;src/views/&lt;/code&gt;, wired to the framework's routes (&lt;code&gt;src/app/&lt;/code&gt; in Next.js, &lt;code&gt;src/routes/&lt;/code&gt; or &lt;code&gt;src/pages/&lt;/code&gt; in the others).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own code components and overrides&lt;/strong&gt; in &lt;code&gt;src/code/&lt;/code&gt;; marketplace code in &lt;code&gt;src/vendor/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styles&lt;/strong&gt; in &lt;code&gt;src/styles/&lt;/code&gt;: color styles as CSS variables, shared text styles as classes, fonts as &lt;code&gt;@font-face&lt;/code&gt; rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two details matter if you want to use these components outside the project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;They're client components.&lt;/strong&gt; Every generated module starts with &lt;code&gt;"use client"&lt;/code&gt;, because the design components use state, effects and animation. Your route files stay server components and render them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;They use the project's kit.&lt;/strong&gt; Instead of the &lt;code&gt;framer&lt;/code&gt; package, the code imports a small helper kit that ships in the project at &lt;code&gt;src/lib/deframer/&lt;/code&gt;, imported as &lt;code&gt;@/deframer&lt;/code&gt;. The kit reproduces what Framer's runtime does for published sites: variants, breakpoints, effects, routing, CMS, forms. The project's &lt;code&gt;tsconfig.json&lt;/code&gt; also points JSX at it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"compilerOptions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"jsx"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"react-jsx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"jsxImportSource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"@/deframer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"@/deframer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/lib/deframer"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"@/deframer/*"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/lib/deframer/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"@/*"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That JSX runtime applies &lt;code&gt;defaultProps&lt;/code&gt; to function components as React 18 did, which code written for Framer relies on, and passes DOM elements only the props they can render.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reusing components in another React app
&lt;/h2&gt;

&lt;p&gt;The simplest path is to keep working in the converted project and build new features there, since it's an ordinary React app. If you do want to move a component into another codebase, bring what it depends on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;the component's &lt;code&gt;.tsx&lt;/code&gt; file and its &lt;code&gt;.module.css&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;the components it imports, and their CSS modules;&lt;/li&gt;
&lt;li&gt;the styles it uses from &lt;code&gt;src/styles/&lt;/code&gt; (color tokens, text styles, fonts);&lt;/li&gt;
&lt;li&gt;the kit, &lt;code&gt;src/lib/deframer/&lt;/code&gt;, plus the &lt;code&gt;@/deframer&lt;/code&gt; path alias and &lt;code&gt;jsxImportSource&lt;/code&gt; setting in your &lt;code&gt;tsconfig.json&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then render the component inside a client boundary and check it at each breakpoint. Deframer's terms let you use, change and distribute the kit as part of the project and its derivatives; read the &lt;a href="https://deframer.co/terms" rel="noopener noreferrer"&gt;terms&lt;/a&gt; for the exact wording.&lt;/p&gt;

&lt;p&gt;For a component you'll maintain long-term, it can be cleaner to treat the converted version as the reference and rewrite it in your app's own conventions. &lt;a href="https://deframer.co/blog/framer-code-components-and-overrides-in-nextjs" rel="noopener noreferrer"&gt;Framer code components and overrides in a Next.js project&lt;/a&gt; covers the code you wrote in Framer, and &lt;a href="https://deframer.co/blog/what-you-get-in-a-converted-nextjs-project" rel="noopener noreferrer"&gt;what you get in a converted Next.js project&lt;/a&gt; tours every folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types and strictness
&lt;/h2&gt;

&lt;p&gt;Framer's editor never type-checks code components, so code you wrote there can contain real type errors. A project that contains such code builds with &lt;code&gt;typescript: { ignoreBuildErrors: true }&lt;/code&gt; in &lt;code&gt;next.config.ts&lt;/code&gt;, with a comment saying why. &lt;code&gt;npx tsc --noEmit&lt;/code&gt; still lists the errors, so you can fix them file by file and then remove the setting. Generated components get explicit prop and ref types where TypeScript can't infer them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost and ownership
&lt;/h2&gt;

&lt;p&gt;Converting is free; downloading a converted project uses one credit: $10 for one, $25 for five or $100 for thirty, on the &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;. You own the converted code of your own site. Deframer is an independent tool, not affiliated with Framer, and gives the code only of sites you own or have the owner's permission to download.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is Framer made with React?
&lt;/h3&gt;

&lt;p&gt;Yes. Published Framer sites are rendered with React, code components are React components, and Framer's animations build on the library now called Motion. The editor itself stores designs in Framer's own format.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I export React code from Framer?
&lt;/h3&gt;

&lt;p&gt;Not natively. Marketplace plugins can export some components, and Deframer converts a whole published site into a Next.js, TanStack Start, Astro, React Router or Vite project with React 19 components in TypeScript (&lt;a href="https://deframer.co/framer-to-react" rel="noopener noreferrer"&gt;Framer to React&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Framer Motion the same as Framer?
&lt;/h3&gt;

&lt;p&gt;No. Framer is the website builder. Framer Motion was its open-source animation library for React and is now published as &lt;code&gt;motion&lt;/code&gt;, imported from &lt;code&gt;motion/react&lt;/code&gt;. You can use it in any React project, and converted Framer sites use it for their animations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use converted Framer components in my existing Next.js app?
&lt;/h3&gt;

&lt;p&gt;Yes, if you bring their dependencies: the CSS modules, the styles they use and the project's &lt;code&gt;@/deframer&lt;/code&gt; kit with its &lt;code&gt;tsconfig&lt;/code&gt; settings. Building inside the converted project is simpler, and if your app uses Next.js, convert to Next.js so the routes match.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do converted components need the Framer runtime?
&lt;/h3&gt;

&lt;p&gt;No. The project contains no Framer runtime. A small, readable helper kit in &lt;code&gt;src/lib/deframer/&lt;/code&gt; replaces it, and you can read and change it like the rest of your code. See the &lt;a href="https://deframer.co/#faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/is-framer-built-on-react" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>react</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to export Framer CMS content: CSV, JSON or code</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:17:48 +0000</pubDate>
      <link>https://dev.to/designify101/how-to-export-framer-cms-content-csv-json-or-code-4pjk</link>
      <guid>https://dev.to/designify101/how-to-export-framer-cms-content-csv-json-or-code-4pjk</guid>
      <description>&lt;p&gt;You can get content out of the Framer CMS in three ways: export a collection as a spreadsheet from the editor where Framer offers it, copy it with a plugin or by hand, or convert the published site, which writes every collection as typed JSON in &lt;code&gt;src/cms/&lt;/code&gt; with its records, rich text and images. A spreadsheet suits a one-off move into another tool. JSON from a conversion suits a site you'll keep running in code, because the records arrive already wired to the pages that render them.&lt;/p&gt;

&lt;p&gt;This post compares the routes, shows what each gives you, and covers the tricky parts: rich text, images, references and locales. Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why export CMS content at all?
&lt;/h2&gt;

&lt;p&gt;People export Framer CMS content for a few reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A backup&lt;/strong&gt; they hold themselves, outside Framer's version history. See &lt;a href="https://deframer.co/blog/back-up-a-framer-site" rel="noopener noreferrer"&gt;how to back up a Framer site&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A move&lt;/strong&gt; to another platform, a headless CMS or a database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reuse&lt;/strong&gt;: a newsletter, an app or a report needs the same records.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bulk edits&lt;/strong&gt; that are faster in a spreadsheet or a script than one item at a time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The right route depends on which of these you're doing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three routes compared
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Spreadsheet export&lt;/th&gt;
&lt;th&gt;Plugin or manual copy&lt;/th&gt;
&lt;th&gt;Convert the site (Deframer)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Needs editor access&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No, reads the published site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Format&lt;/td&gt;
&lt;td&gt;CSV&lt;/td&gt;
&lt;td&gt;Depends on the plugin&lt;/td&gt;
&lt;td&gt;JSON plus a TypeScript schema per collection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rich text&lt;/td&gt;
&lt;td&gt;Usually HTML in a cell&lt;/td&gt;
&lt;td&gt;Depends&lt;/td&gt;
&lt;td&gt;A readable JSON tree&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Images&lt;/td&gt;
&lt;td&gt;URLs&lt;/td&gt;
&lt;td&gt;URLs&lt;/td&gt;
&lt;td&gt;URLs on Framer's CDN, or files in the project&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unpublished drafts&lt;/td&gt;
&lt;td&gt;Depends on the export&lt;/td&gt;
&lt;td&gt;Yes, if you copy them&lt;/td&gt;
&lt;td&gt;No, only published items&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pages that render it&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, detail routes for every item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Included with Framer&lt;/td&gt;
&lt;td&gt;Free or paid&lt;/td&gt;
&lt;td&gt;Free to convert; download uses a credit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Route 1: a spreadsheet export from the editor
&lt;/h2&gt;

&lt;p&gt;Framer's CMS has supported importing collections from CSV for a long time, and its editor has offered ways to get a collection out as a file. Menus and plan features change, so check Framer's own help pages for the current steps on your plan.&lt;/p&gt;

&lt;p&gt;What to expect from a spreadsheet:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One row per item, one column per field.&lt;/strong&gt; Good for reading and bulk editing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rich text flattened&lt;/strong&gt; into a cell, often as HTML. Fine to re-import into most CMSs; awkward to edit by hand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Images as URLs&lt;/strong&gt; pointing at Framer's CDN. Download them separately if you're leaving.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;References as names or ids.&lt;/strong&gt; You'll need to re-link them in the destination.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use it when the destination is another CMS with a CSV importer and you don't need the pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route 2: plugins and manual copying
&lt;/h2&gt;

&lt;p&gt;Framer has a plugin ecosystem, and some plugins sync or export CMS collections to tools like Google Sheets, Airtable or Notion. Plugins vary in what they support and how they're maintained, so test one on a copy of a small collection first and check that rich text and images come through the way you need.&lt;/p&gt;

&lt;p&gt;Manual copying is realistic only for a handful of items. It's also the only way to bring along drafts that were never published, whichever other route you choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route 3: convert the site to code
&lt;/h2&gt;

&lt;p&gt;A conversion takes a different approach: Deframer reads the CMS data the published site already serves and writes each collection as two files.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.json&lt;/code&gt;&lt;/strong&gt;: every published record, with readable field names in the same order as in the CMS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.ts&lt;/code&gt;&lt;/strong&gt;: a typed schema for those records, and the components rich text can embed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A record looks like this (shortened):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cImcpXX5N"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"How to Create a Lasting Impression"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"how-to-create-a-lasting-impression"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"publishedDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2025-02-28T00:00:00.000Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"thumbnail"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"src"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://framerusercontent.com/images/….jpg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"pixelWidth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;810&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"pixelHeight"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;790&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"alt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Blog Image"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The detail pages are wired to these records and prerendered for every item, so the export is also a working site. The files are the same whichever framework you convert to: &lt;a href="https://deframer.co/framer-to-nextjs" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; or &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;Vite&lt;/a&gt;. The full tour is in &lt;a href="https://deframer.co/blog/framer-cms-to-json-in-nextjs" rel="noopener noreferrer"&gt;Framer CMS to JSON in Next.js&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Sign in to Deframer and paste the published site's address.&lt;/li&gt;
&lt;li&gt;Choose "Assets in the project" if you want images downloaded as files rather than kept on Framer's CDN.&lt;/li&gt;
&lt;li&gt;Convert (free) and read the result's notices.&lt;/li&gt;
&lt;li&gt;Verify that the site is yours with the one-line meta tag in Framer's custom code, then download the &lt;code&gt;.zip&lt;/code&gt; for 1 credit, or free with the lifetime deal. Downloading is for sites you own or have the owner's permission to download; see &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;src/cms/&lt;/code&gt; in the project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you only want the data, you can ignore the rest of the project and keep the JSON. Converting to Vite gives you the smallest project around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling the tricky parts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Rich text
&lt;/h3&gt;

&lt;p&gt;In a CSV, rich text is usually HTML. In a converted project, it's a JSON tree of elements:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"h2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Why it matters"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Branding is more than "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"strong"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"children"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"a logo"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"."&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That shape is easy to walk with a script, which makes it simple to turn into Markdown, HTML or a headless CMS's own rich-text format. &lt;a href="https://deframer.co/blog/move-a-framer-blog-to-markdown" rel="noopener noreferrer"&gt;Moving a Framer blog to Markdown&lt;/a&gt; includes such a script.&lt;/p&gt;

&lt;h3&gt;
  
  
  Images
&lt;/h3&gt;

&lt;p&gt;Every image field holds &lt;code&gt;src&lt;/code&gt;, &lt;code&gt;srcSet&lt;/code&gt;, &lt;code&gt;pixelWidth&lt;/code&gt;, &lt;code&gt;pixelHeight&lt;/code&gt; and &lt;code&gt;alt&lt;/code&gt;. If you're leaving Framer, don't rely on CDN URLs indefinitely: convert with "Assets in the project", or download the files with a script and rewrite the &lt;code&gt;src&lt;/code&gt; values.&lt;/p&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;p&gt;A field that references another collection points at the other record. Keep the record ids when you move to another system, so references can be re-linked.&lt;/p&gt;

&lt;h3&gt;
  
  
  Locales
&lt;/h3&gt;

&lt;p&gt;On a multi-locale site, records that differ by language get their own file per locale, such as &lt;code&gt;src/cms/blog.ja-jp.json&lt;/code&gt;, next to the default one. A spreadsheet export usually covers one locale at a time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Drafts
&lt;/h3&gt;

&lt;p&gt;Only published items are on the published site, so only they appear in a conversion. Publish anything you want to keep first, or copy drafts by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning the JSON into CSV
&lt;/h2&gt;

&lt;p&gt;If you converted the site but your destination wants a spreadsheet, a short script does it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// scripts/to-csv.ts&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;writeFileSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"node:fs"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"src/cms/blog.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"utf8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"publishedDate"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cell&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`"${String(value ?? "").replace(/"/g, '""')}"`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;cell&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;writeFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"blog.csv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;","&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it with &lt;code&gt;node scripts/to-csv.ts&lt;/code&gt; (Node.js 22.18 or later runs TypeScript directly). Add the fields you need, and flatten image objects to their &lt;code&gt;src&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which route should you choose?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Moving to another hosted CMS&lt;/strong&gt; that imports CSV: use Framer's spreadsheet export where available.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Syncing into a tool you already use&lt;/strong&gt;: a plugin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keeping the site, in code&lt;/strong&gt;: convert it; the content arrives with the pages that render it. Later, you can &lt;a href="https://deframer.co/blog/adding-a-headless-cms-to-a-converted-framer-site" rel="noopener noreferrer"&gt;add a headless CMS&lt;/a&gt; that writes the same JSON shape.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A backup you control&lt;/strong&gt;: convert and commit the project to Git, so content and design are saved together.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I export Framer CMS content to CSV?
&lt;/h3&gt;

&lt;p&gt;Framer's editor has offered ways to export a collection as a spreadsheet file; check Framer's help pages for the current steps on your plan. If you've converted the site, a short script turns the JSON into CSV.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Deframer need access to my Framer account to export the CMS?
&lt;/h3&gt;

&lt;p&gt;No. It reads only the CMS data the published site serves to visitors. That also means unpublished drafts aren't included.&lt;/p&gt;

&lt;h3&gt;
  
  
  What format is the exported content in?
&lt;/h3&gt;

&lt;p&gt;Each collection is a JSON file of records plus a TypeScript file describing their shape. Rich text is a JSON tree of elements, and images are objects with a URL, dimensions and alt text.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are images included?
&lt;/h3&gt;

&lt;p&gt;Their URLs always are. With "Assets in the project", the image files themselves are downloaded into the project and the records point at them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I re-import exported content into Framer?
&lt;/h3&gt;

&lt;p&gt;Framer's CMS imports CSV, so a spreadsheet round-trip is possible. Rich text and references may need checking after import.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/export-framer-cms-content" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>cms</category>
      <category>json</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to host a Framer site on Netlify</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:02:46 +0000</pubDate>
      <link>https://dev.to/designify101/how-to-host-a-framer-site-on-netlify-1p85</link>
      <guid>https://dev.to/designify101/how-to-host-a-framer-site-on-netlify-1p85</guid>
      <description>&lt;p&gt;To host a Framer site on Netlify, convert the published site to code, push the project to Git and connect the repository to Netlify. Netlify can't run a Framer project as it is, but it hosts both kinds of project Deframer can write for it: a static &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;Vite&lt;/a&gt; site, which comes with &lt;code&gt;netlify.toml&lt;/code&gt; and &lt;code&gt;_redirects&lt;/code&gt; already written and can send form submissions to Netlify Forms, or a &lt;a href="https://deframer.co/framer-to-nextjs" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt; app, which Netlify runs with its Next.js support. For most marketing sites, the Vite route is the simpler fit.&lt;/p&gt;

&lt;p&gt;The general multi-host guide is &lt;a href="https://deframer.co/blog/deploy-converted-framer-site-vercel-netlify-cloudflare-fly" rel="noopener noreferrer"&gt;deploying a converted Framer site&lt;/a&gt;; this post goes further into Netlify specifically. Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer or Netlify.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vite or Next.js: which project should Netlify host?
&lt;/h2&gt;

&lt;p&gt;Both work. They differ in what runs at request time.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Vite (static)&lt;/th&gt;
&lt;th&gt;Next.js&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What Netlify serves&lt;/td&gt;
&lt;td&gt;Files from &lt;code&gt;dist/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A Next.js app through Netlify's Next.js support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forms&lt;/td&gt;
&lt;td&gt;Netlify Forms (&lt;code&gt;VITE_FORM_ENDPOINT=netlify&lt;/code&gt;) or a form service&lt;/td&gt;
&lt;td&gt;The project's own API routes, delivering to your webhooks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Redirects&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;public/_redirects&lt;/code&gt;, written by the converter&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;next.config.ts&lt;/code&gt; and &lt;code&gt;src/proxy.ts&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;404 page&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;netlify.toml&lt;/code&gt; serves it with the 404 status&lt;/td&gt;
&lt;td&gt;Next.js &lt;code&gt;not-found.tsx&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Split tests&lt;/td&gt;
&lt;td&gt;Original version only&lt;/td&gt;
&lt;td&gt;Variants served by &lt;code&gt;src/proxy.ts&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build config you add&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Optional &lt;code&gt;netlify.toml&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Pick Vite if the site is content and marketing pages and you want the least moving parts. Pick Next.js if you plan to add server features (auth, a database, payments) or need Framer's split tests to keep running. &lt;a href="https://deframer.co/blog/which-framework-for-your-framer-export" rel="noopener noreferrer"&gt;Which framework to export Framer to&lt;/a&gt; compares all five.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Convert and download
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Paste the published site's address into the convert form on &lt;a href="https://deframer.co/" rel="noopener noreferrer"&gt;deframer.co&lt;/a&gt;. Converting is free.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;Vite&lt;/strong&gt; or &lt;strong&gt;Next.js&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose where assets live: on Framer's CDN (the default) or in the project. If you're leaving Framer for good, &lt;strong&gt;Assets in the project&lt;/strong&gt; puts images, fonts and videos in &lt;code&gt;public/&lt;/code&gt; so Netlify serves them.&lt;/li&gt;
&lt;li&gt;Verify the site is yours with the meta tag Deframer shows (Site Settings, then Custom Code, publish), and download. A verified download costs 1 credit; see &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Downloads are only for sites you own or have the owner's permission to convert.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Build locally first
&lt;/h2&gt;

&lt;p&gt;For a Vite project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run build      &lt;span class="c"&gt;# prerenders every page into dist/&lt;/span&gt;
npm run preview    &lt;span class="c"&gt;# serves dist/ as a static host does&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a Next.js project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run build
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Click through every route in the README's table. A problem you can see locally is easier to fix than one you find on a deploy log.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Deploy a Vite project to Netlify
&lt;/h2&gt;

&lt;p&gt;The Vite project already has the Netlify pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;netlify.toml&lt;/code&gt;&lt;/strong&gt; at the root, which serves the site's 404 page at unknown URLs with the 404 status (and each locale's 404 page on multi-language sites).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public/_redirects&lt;/code&gt;&lt;/strong&gt;, the redirects you set in Framer's site settings. Netlify has no 307 or 308 codes in &lt;code&gt;_redirects&lt;/code&gt;, so temporary redirects become 302 and permanent ones 301, which search engines treat the same way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clean URLs.&lt;/strong&gt; Each page is written as an HTML file at its URL (&lt;code&gt;about.html&lt;/code&gt; for &lt;code&gt;/about&lt;/code&gt;), which Netlify serves at &lt;code&gt;/about&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Netlify, add a new site from your Git repository and set:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build command: &lt;code&gt;npm run build&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Publish directory: &lt;code&gt;dist&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Node version: 22 or later (set &lt;code&gt;NODE_VERSION&lt;/code&gt; in the site's environment, or in &lt;code&gt;netlify.toml&lt;/code&gt;). The prerender script needs Node.js 22.18 or later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Or from the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i -g netlify-cli
netlify init
netlify deploy --build          &lt;span class="c"&gt;# a draft deploy with its own URL&lt;/span&gt;
netlify deploy --build --prod   &lt;span class="c"&gt;# production&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Forms with Netlify Forms
&lt;/h3&gt;

&lt;p&gt;A static site has no server, so each native form in a Vite project posts to an endpoint you choose at build time. Set the build environment variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;netlify env:set VITE_FORM_ENDPOINT netlify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;netlify&lt;/code&gt;, submissions go to Netlify Forms, where you can see them in the dashboard and set up email notifications. You can also set a form service's URL instead (Formspree, Basin and similar), or a per-form variable such as &lt;code&gt;VITE_FORM_CONTACT_ENDPOINT&lt;/code&gt;; the README lists each form's variable. Because Vite writes the value into the build, redeploy after changing it.&lt;/p&gt;

&lt;p&gt;Check Netlify's current docs for how Forms detects forms and for its plan limits on submissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Deploy a Next.js project to Netlify
&lt;/h2&gt;

&lt;p&gt;Netlify detects Next.js and applies its Next.js runtime. You can make the build explicit with a &lt;code&gt;netlify.toml&lt;/code&gt; you add at the root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[build]&lt;/span&gt;
  &lt;span class="na"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"npm run build"&lt;/span&gt;
  &lt;span class="na"&gt;publish&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;".next"&lt;/span&gt;

&lt;span class="k"&gt;[build.environment]&lt;/span&gt;
  &lt;span class="na"&gt;NODE_VERSION&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"22"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then set your form webhooks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;netlify env:set FORMS_WEBHOOK_URL https://hooks.example.com/your-endpoint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The project uses &lt;code&gt;src/proxy.ts&lt;/code&gt; for the site's URL forms (trailing slashes, locale prefixes) and split tests. Before switching the domain, confirm on a draft deploy that unknown URLs return the 404 page and that a URL with the wrong trailing slash redirects as it did on Framer. Netlify's Next.js support moves with Next.js releases, so check its docs for the version you deploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Move the domain
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Lower the TTL on your apex and &lt;code&gt;www&lt;/code&gt; records a day ahead.&lt;/li&gt;
&lt;li&gt;In Netlify, add your custom domain under the site's domain settings, with the same primary form (with or without &lt;code&gt;www&lt;/code&gt;) the Framer site used.&lt;/li&gt;
&lt;li&gt;Change the DNS records to the values Netlify shows, or delegate DNS to Netlify if you prefer.&lt;/li&gt;
&lt;li&gt;Wait for Netlify to issue the HTTPS certificate, then test.&lt;/li&gt;
&lt;li&gt;Remove the domain from your Framer project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before you switch, update &lt;code&gt;public/robots.txt&lt;/code&gt;, &lt;code&gt;public/sitemap.xml&lt;/code&gt; and (for Next.js) &lt;code&gt;metadataBase&lt;/code&gt; if the domain changes. &lt;a href="https://deframer.co/blog/move-a-framer-domain-without-downtime" rel="noopener noreferrer"&gt;Moving a domain off Framer without downtime&lt;/a&gt; covers rollback.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deploy previews for review
&lt;/h2&gt;

&lt;p&gt;Every pull request on a connected repository gets its own deploy preview URL on Netlify. That's a good way to let a designer approve changes before they go live; &lt;a href="https://deframer.co/blog/preview-deployments-for-a-converted-framer-site" rel="noopener noreferrer"&gt;preview deployments for a converted Framer site&lt;/a&gt; sets up the workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things to know on Netlify
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CMS items added later.&lt;/strong&gt; On the Vite target, each CMS item known at conversion has its prerendered page. An item added in Framer afterwards renders in the browser from &lt;code&gt;404.html&lt;/code&gt;, with a 404 status, until you convert again. If you keep editing content, move it into the project's JSON or a headless CMS; see &lt;a href="https://deframer.co/blog/framer-cms-to-json-in-nextjs" rel="noopener noreferrer"&gt;Framer CMS to JSON in Next.js&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build minutes and bandwidth.&lt;/strong&gt; Netlify's plans meter both. A static Vite site with assets on Framer's CDN uses little of either.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Headers.&lt;/strong&gt; You can add security headers in &lt;code&gt;netlify.toml&lt;/code&gt;. &lt;a href="https://deframer.co/blog/security-headers-for-a-self-hosted-framer-site" rel="noopener noreferrer"&gt;Security headers for a self-hosted Framer site&lt;/a&gt; has a starting set.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I host a Framer site on Netlify for free?
&lt;/h3&gt;

&lt;p&gt;Netlify has a free plan that suits small static sites. The conversion is free too; downloading the code uses 1 credit with verification. Check Netlify's current plan limits for bandwidth and form submissions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do Framer forms work on Netlify?
&lt;/h3&gt;

&lt;p&gt;Yes. On a Vite project, set &lt;code&gt;VITE_FORM_ENDPOINT&lt;/code&gt; to &lt;code&gt;netlify&lt;/code&gt; and Netlify Forms receives the submissions. On a Next.js project, forms post to the project's own API routes, which forward them to the webhook you set in &lt;code&gt;FORMS_WEBHOOK_URL&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are my Framer redirects kept?
&lt;/h3&gt;

&lt;p&gt;Yes. A Vite project writes them to &lt;code&gt;public/_redirects&lt;/code&gt;, which Netlify reads; a Next.js project keeps them in &lt;code&gt;next.config.ts&lt;/code&gt;. Test a few after deploying.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Netlify need any changes to the converted code?
&lt;/h3&gt;

&lt;p&gt;For Vite, no: &lt;code&gt;netlify.toml&lt;/code&gt; and &lt;code&gt;_redirects&lt;/code&gt; are already there. For Next.js, you only add an optional &lt;code&gt;netlify.toml&lt;/code&gt; and your environment variables.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I keep designing in Framer?
&lt;/h3&gt;

&lt;p&gt;Yes. Convert again after you republish, merge the new output in Git, and push; Netlify rebuilds. &lt;a href="https://deframer.co/blog/maintaining-a-converted-framer-site-with-git" rel="noopener noreferrer"&gt;Maintaining a converted site with Git&lt;/a&gt; explains the branch workflow.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/host-a-framer-site-on-netlify" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>netlify</category>
      <category>webdev</category>
      <category>hosting</category>
    </item>
    <item>
      <title>How to back up a Framer site</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 05:47:42 +0000</pubDate>
      <link>https://dev.to/designify101/how-to-back-up-a-framer-site-4n2f</link>
      <guid>https://dev.to/designify101/how-to-back-up-a-framer-site-4n2f</guid>
      <description>&lt;p&gt;To back up a Framer site, keep copies that don't depend on your Framer account: export your CMS collections as CSV or JSON, keep your original images, fonts and videos, and store a code copy of the pages themselves. Framer has no code export, so for the pages you convert the published site into a project with a tool such as Deframer, commit the result to Git, and refresh it after significant changes. Framer's own version history is useful for undoing mistakes, but it lives inside the account it's meant to protect you from losing.&lt;/p&gt;

&lt;p&gt;This post explains what Framer's built-in safety nets cover, what a backup you own looks like, and how to make and maintain one without much effort.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Framer's version history does cover
&lt;/h2&gt;

&lt;p&gt;Framer keeps a history of your project, so you can look at earlier versions and restore one when an edit goes wrong. It's the right tool for the everyday problem: someone deleted a section, a layout change broke a breakpoint, you want yesterday's version back. You can also duplicate a project inside Framer to experiment on a copy. How far back history goes and how it behaves on your plan is described in Framer's help center, so check there for the current details rather than relying on a blog post.&lt;/p&gt;

&lt;p&gt;Used for that purpose, it works well. The gap is what it can't be.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it doesn't cover
&lt;/h2&gt;

&lt;p&gt;Version history and duplicated projects all sit inside Framer. That leaves a few situations where they don't help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You lose access to the account.&lt;/strong&gt; A lapsed login, a collaborator who owned the project and left, a billing problem or a suspended account can all cut you off from the history too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want to leave, or switch plans.&lt;/strong&gt; Before you cancel a plan or move to other hosting, you need something that works without Framer. &lt;a href="https://deframer.co/blog/before-you-cancel-your-framer-plan" rel="noopener noreferrer"&gt;Before you cancel your Framer plan&lt;/a&gt; is the checklist for that moment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need the site as code.&lt;/strong&gt; A version in Framer's history can't be opened in an editor, built on another server or diffed in Git. Framer has no code export; its help center says it does not offer HTML export for self-hosting (&lt;a href="https://www.framer.com/help/articles/can-i-export-my-website-to-html-and-self-host-it/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;). We cover the routes that exist in &lt;a href="https://deframer.co/blog/can-you-export-code-from-framer" rel="noopener noreferrer"&gt;Can you export code from Framer?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want an off-site, dated copy.&lt;/strong&gt; A backup that matters is stored somewhere else, by you, with a date on it. History inside the same service is a convenience, not a second copy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this says Framer is unreliable. It's the general rule that a backup shouldn't live in the same place as the thing it backs up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three parts of a Framer backup
&lt;/h2&gt;

&lt;p&gt;A complete copy of a Framer site has three parts, and they come from different places.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The CMS content
&lt;/h3&gt;

&lt;p&gt;If your site uses CMS collections, the records are the part you can't regenerate. Framer's data-portability article says CMS content can be exported with plugins into structured formats such as CSV or JSON (&lt;a href="https://www.framer.com/help/articles/porting-your-data-from-framer/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;). Export every collection and keep the files with the rest of the backup. Do it again whenever you publish a batch of new items.&lt;/p&gt;

&lt;p&gt;A converted project also carries the collections as JSON files, one per collection with its schema, covering everything known when the site was converted. That's a useful second copy, but it's a snapshot of the published site, so a dedicated export before a big edit is still sensible. How those files behave in the code is in &lt;a href="https://deframer.co/blog/framer-cms-to-json-in-nextjs" rel="noopener noreferrer"&gt;Framer CMS to JSON in Next.js&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The assets
&lt;/h3&gt;

&lt;p&gt;Images, videos and fonts you uploaded are, or should be, files you already have. In practice they're often scattered across a designer's laptop and Framer's asset manager. Two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Collect the originals into one folder and keep it with the backup.&lt;/li&gt;
&lt;li&gt;Convert with the &lt;strong&gt;Assets in the project&lt;/strong&gt; option, which downloads every Framer-hosted image, font and video into the project's &lt;code&gt;public/&lt;/code&gt; folder. The default, &lt;strong&gt;Assets on Framer's CDN&lt;/strong&gt;, leaves them loading from Framer's CDN, which is fine for a working site but means the backup depends on those files still being there. &lt;a href="https://deframer.co/blog/framer-fonts-and-assets-cdn-vs-local" rel="noopener noreferrer"&gt;Assets on the CDN or in the project&lt;/a&gt; explains the choice. For a backup, choose Assets in the project.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. The pages: layout, components, interactions, forms
&lt;/h3&gt;

&lt;p&gt;This is the part that has no export. The answer is to convert the published site into a project you hold. Deframer reads what your published site serves (the same files a browser loads, never your Framer account) and writes a TypeScript project: every page as a route with its metadata, components as React components with CSS modules, design tokens, CMS collections as JSON, and native forms handled by their own route or, in a Vite project, posted to a form service. There's no Framer runtime in the result.&lt;/p&gt;

&lt;p&gt;That code can be built and run with no Framer account at all, which is exactly what a backup should allow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making the code backup with Deframer
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Convert the published site.&lt;/strong&gt; Paste your site's published address into the convert form at &lt;a href="https://deframer.co/" rel="noopener noreferrer"&gt;deframer.co&lt;/a&gt;. Converting is free and never touches your Framer account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick the target.&lt;/strong&gt; Next.js is the default and the best-known option. If your goal is a cheap, portable backup you could host anywhere, &lt;a href="https://deframer.co/framer-to-html" rel="noopener noreferrer"&gt;static HTML&lt;/a&gt; gives you a site with no server; &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react" rel="noopener noreferrer"&gt;React&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; and &lt;a href="https://deframer.co/framer-to-nuxt" rel="noopener noreferrer"&gt;Nuxt&lt;/a&gt; are also available. For a backup, the one your team can read matters more than the framework's reputation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose Assets in the project&lt;/strong&gt; if you want the copy to be self-contained.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify ownership.&lt;/strong&gt; To download, Deframer gives you a one-line meta tag, &lt;code&gt;&amp;lt;meta name="deframer-verification" content="dfv_…"&amp;gt;&lt;/code&gt;. Add it in Framer under Site Settings, then Custom Code, at the end of the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;, publish, and click &lt;strong&gt;Check again&lt;/strong&gt;. Only someone who can publish the site can do this. See &lt;a href="https://deframer.co/blog/verifying-framer-site-ownership" rel="noopener noreferrer"&gt;verifying Framer site ownership&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download the &lt;code&gt;.zip&lt;/code&gt;.&lt;/strong&gt; A verified download costs 1 credit; a direct download without verification costs 10. Credits never expire, and the file stays available to re-download for 7 days. Prices are on the &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Deframer is only for your own site, or one whose owner has given you permission and published your verification tag. If you're backing up a client's site, ask them to add your tag; the &lt;a href="https://deframer.co/blog/agency-workflow-converting-client-framer-sites" rel="noopener noreferrer"&gt;agency workflow post&lt;/a&gt; covers how.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put it in Git
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;.zip&lt;/code&gt; in a downloads folder is a backup in the loosest sense. A Git repository is a better one: dated, comparable and stored on a remote.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;unzip my-site.zip
&lt;span class="nb"&gt;cd&lt;/span&gt; my-site
npm install
npm run build        &lt;span class="c"&gt;# confirm the backup actually builds&lt;/span&gt;
git init
git add .
git commit -m &lt;span class="s2"&gt;"Initial conversion from Deframer"&lt;/span&gt;
git branch -M main
git remote add origin git@github.com:your-name/your-site-backup.git
git push -u origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details are worth the minute they take:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Commit the untouched conversion first.&lt;/strong&gt; It becomes the reference point; later commits show exactly what changed. This is the same habit described in &lt;a href="https://deframer.co/blog/maintaining-a-converted-framer-site-with-git" rel="noopener noreferrer"&gt;maintaining a converted Framer site with Git&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a private repository&lt;/strong&gt; if the site has unpublished content or your form endpoints are in the project. The &lt;code&gt;.gitignore&lt;/code&gt; in the project already keeps &lt;code&gt;node_modules&lt;/code&gt;, build output and local &lt;code&gt;.env&lt;/code&gt; files out of history, and &lt;code&gt;.env.example&lt;/code&gt; documents which variables the site reads without their values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Running the build as part of the backup is the important step. A backup you've never built is an assumption. If it builds and runs locally, you've proved it works without Framer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Re-export after changes
&lt;/h2&gt;

&lt;p&gt;If the site keeps changing in Framer, the backup goes stale. Re-converting is free; downloading a republished site is a new project and uses a credit, as the &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt; explains. A reasonable rhythm:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;After a redesign or launch:&lt;/strong&gt; convert and commit. This is the one worth always doing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;After routine content edits:&lt;/strong&gt; re-export the CMS collections, and re-convert when the changes touch layout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Before a risky change, or before cancelling a plan:&lt;/strong&gt; convert first, so the last version before the change is on record.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put the fresh conversion on its own branch and merge it into your main branch, rather than overwriting the folder. That keeps any edits you've made in the code, and Git shows what changed in each conversion. The step-by-step version is in the &lt;a href="https://deframer.co/blog/maintaining-a-converted-framer-site-with-git" rel="noopener noreferrer"&gt;Git maintenance post&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a code backup doesn't capture
&lt;/h2&gt;

&lt;p&gt;Be clear about the limits, so the backup does what you expect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It's a copy of the published site, not of the Framer project.&lt;/strong&gt; The project file, with its editor-only structure and unpublished drafts, stays in Framer. What you back up is what visitors see. Keep the project in Framer for as long as you plan to design there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unpublished changes aren't in it.&lt;/strong&gt; Publish first, then convert.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Password-protected pages and other gated content&lt;/strong&gt; depend on what the published site serves; check the converted output rather than assuming.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Third-party services aren't backed up.&lt;/strong&gt; Form submissions already received, analytics and email lists live wherever they live. &lt;a href="https://deframer.co/blog/forms-after-leaving-framer" rel="noopener noreferrer"&gt;Forms after leaving Framer&lt;/a&gt; covers how to get those out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It isn't a pixel-perfect guarantee.&lt;/strong&gt; Converted sites usually match closely, but check the conversion against the original. The &lt;a href="https://deframer.co/blog/common-framer-to-nextjs-conversion-issues" rel="noopener noreferrer"&gt;common conversion issues&lt;/a&gt; post lists what to look for.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A simple routine
&lt;/h2&gt;

&lt;p&gt;For most sites, this is enough:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Export CMS collections to CSV or JSON, and keep your original assets in one folder.&lt;/li&gt;
&lt;li&gt;Convert the published site with Assets in the project, verify, and download.&lt;/li&gt;
&lt;li&gt;Commit it to a private Git repository and confirm &lt;code&gt;npm run build&lt;/code&gt; passes.&lt;/li&gt;
&lt;li&gt;Repeat after each major change, on a branch.&lt;/li&gt;
&lt;li&gt;Keep the repository's host and your own storage separate from your Framer login.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Building sites for clients? The &lt;a href="https://deframer.co/affiliates" rel="noopener noreferrer"&gt;affiliates program&lt;/a&gt; pays 50% on each sale you refer, so recommending a backup routine can pay for itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does Framer back up my site automatically?
&lt;/h3&gt;

&lt;p&gt;Framer keeps a version history of your project that you can restore from, and the details depend on your plan, so check Framer's help center. That history lives inside Framer. It doesn't give you a copy you hold yourself, which is what a backup is for.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I download my Framer site as a backup?
&lt;/h3&gt;

&lt;p&gt;Not as code from Framer: it has no code or HTML export. You can export CMS content with plugins as CSV or JSON, and you can convert the published site into a TypeScript project with Deframer, then download and keep it.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does a Framer backup with Deframer cost?
&lt;/h3&gt;

&lt;p&gt;Converting is free. A download with ownership verification costs 1 credit and one without costs 10. Credits come in one-time packs (1 credit for $25, 10 credits for $50, 100 credits for $100) and never expire. Large sites use about 1 credit per 100 pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  How often should I back up my Framer site?
&lt;/h3&gt;

&lt;p&gt;After every launch or redesign, before risky changes and before cancelling or changing a plan. For sites that change weekly, re-export the CMS content on a schedule and convert again when layout changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I back up a site I don't own?
&lt;/h3&gt;

&lt;p&gt;Only with the owner's permission. Deframer downloads are for your own site or one whose owner publishes your verification tag.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/back-up-a-framer-site" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React, TanStack Start, React Router, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>webdev</category>
      <category>backup</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Framer to HTML, CSS and JavaScript, or Framer to Next.js, which do you need?</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 05:32:37 +0000</pubDate>
      <link>https://dev.to/designify101/framer-to-html-css-and-javascript-or-framer-to-nextjs-which-do-you-need-gd8</link>
      <guid>https://dev.to/designify101/framer-to-html-css-and-javascript-or-framer-to-nextjs-which-do-you-need-gd8</guid>
      <description>&lt;p&gt;Framer doesn't export HTML, CSS and JavaScript. You can save a third-party snapshot of the published site: a frozen copy for archiving or cheap hosting that still leans on Framer's scripts, CDN and form service unless you replace them. Or you can convert it into a Next.js project you keep editing, with components, CMS data and your own form routes. A snapshot copies output; a project produces it.&lt;/p&gt;

&lt;p&gt;This post covers what Framer officially allows, what is actually inside an HTML, CSS and JS copy of a Framer page, what happens to assets, fonts, interactions and forms in that copy, and how to choose. Deframer, the tool behind this blog, writes projects (Next.js by default, or TanStack Start, Astro, React Router or Vite), and also a &lt;a href="https://deframer.co/framer-to-html" rel="noopener noreferrer"&gt;Static HTML&lt;/a&gt; download: the converted site built into HTML, CSS and JavaScript files, without Framer's runtime. We'll be fair to both.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does Framer officially allow?
&lt;/h2&gt;

&lt;p&gt;No HTML export. Framer's help center says "Framer does not offer HTML export for self-hosting", because "published sites are not fully static and cannot be exported as standalone HTML files for self-hosting"; Framer "uses dynamic backend services to optimize your website after it is published" (&lt;a href="https://www.framer.com/help/articles/can-i-export-my-website-to-html-and-self-host-it/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;). As of October 2026, what Framer does offer is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CMS content&lt;/strong&gt;, which "can be exported using plugins into structured formats such as CSV or JSON" (&lt;a href="https://www.framer.com/help/articles/porting-your-data-from-framer/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;);&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;reverse-proxy hosting&lt;/strong&gt; through Advanced Hosting on Pro and Enterprise plans, which puts your infrastructure in front of Framer but still gives you no code (&lt;a href="https://www.framer.com/help/articles/how-to-self-host-using-reverse-proxy/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;);&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;your own uploads&lt;/strong&gt;: the images, videos and fonts you added are files you already have.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Framer also notes that "every Framer site is published as standard HTML, CSS, JavaScript, and static assets" (&lt;a href="https://www.framer.com/help/articles/porting-your-data-from-framer/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;). That's true of what a browser receives, and it's why snapshot tools exist. It isn't the same as a source project, as the next section shows.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the published HTML isn't an editable source project
&lt;/h2&gt;

&lt;p&gt;The files a browser receives are the output of Framer's build, not the design you edit. We looked at a typical published Framer page (framer.com itself, in October 2026), and its HTML had:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS inlined&lt;/strong&gt; in &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; blocks in the page, with no separate stylesheet, using generated class names such as &lt;code&gt;framer-1w39556&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JavaScript as ES modules&lt;/strong&gt; loaded from &lt;code&gt;framerusercontent.com/sites/&amp;lt;site-id&amp;gt;/&lt;/code&gt;, including Framer's runtime and React, preloaded with &lt;code&gt;&amp;lt;link rel="modulepreload"&amp;gt;&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;fonts&lt;/strong&gt; declared with &lt;code&gt;@font-face&lt;/code&gt; rules pointing at &lt;code&gt;framerusercontent.com/assets/…woff2&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;images&lt;/strong&gt; served from &lt;code&gt;framerusercontent.com/images/&lt;/code&gt; with &lt;code&gt;srcset&lt;/code&gt; sizes generated by Framer's image service;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;attributes&lt;/strong&gt; such as &lt;code&gt;data-framer-name&lt;/code&gt; and &lt;code&gt;data-framer-appear-id&lt;/code&gt; that the runtime reads to run layers and appear animations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that is the components, variants, breakpoints and CMS templates you built. Shared parts like the navigation are rendered into every page instead of written once. The scripts are minified bundles. You can edit the result, but you're editing compiled output.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a static HTML, CSS and JS snapshot is
&lt;/h2&gt;

&lt;p&gt;A static exporter visits each page of your published site and saves what the browser receives, laid out as folders a basic web server can serve:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;index.html
about/index.html          one HTML file per URL, styles inlined in &amp;lt;head&amp;gt;
blog/my-first-post/index.html   CMS detail pages as they rendered that day
assets/                   images, fonts and scripts, if the tool downloads them
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upload the folder to any static host and the pages load. It's a good fit when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the site is a landing page, an event page or a portfolio that's essentially finished;&lt;/li&gt;
&lt;li&gt;you want an offline archive of a site before you take it down;&lt;/li&gt;
&lt;li&gt;you need the cheapest possible hosting and will never edit the design again.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What happens to assets, fonts, interactions and forms in a snapshot?
&lt;/h2&gt;

&lt;p&gt;Each part behaves differently, and the result depends on the tool you use. Check each of these in your copy before you take the Framer site down.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;In a snapshot&lt;/th&gt;
&lt;th&gt;What to check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Images and video&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Links point to &lt;code&gt;framerusercontent.com&lt;/code&gt; unless the tool downloads and rewrites them; responsive &lt;code&gt;srcset&lt;/code&gt; sizes come from Framer's image service&lt;/td&gt;
&lt;td&gt;Whether every size in each &lt;code&gt;srcset&lt;/code&gt; was saved locally, or still loads from Framer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Fonts&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;@font-face&lt;/code&gt; URLs point to Framer's CDN unless rewritten&lt;/td&gt;
&lt;td&gt;That fonts load from your host, and that your font licence allows self-hosting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Interactions and animations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Hover states, menus, carousels and appear effects run from Framer's JavaScript modules; kept, they still load from Framer, and stripped, the page goes static&lt;/td&gt;
&lt;td&gt;Open menus, hover states and scroll effects at each width, with Framer's domains blocked in the browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Native forms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Submissions are handled by Framer's servers, which a copy you host doesn't control&lt;/td&gt;
&lt;td&gt;Point each form at your own endpoint or a form service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;CMS pages&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Frozen as rendered; a new post means a new HTML file by hand&lt;/td&gt;
&lt;td&gt;Whether search, filters or pagination still work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Redirects&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Not in the files at all&lt;/td&gt;
&lt;td&gt;Recreate them in your host's config&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The safe assumption is that a snapshot works while Framer's CDN keeps serving your files. If your goal is to leave Framer completely, every row above needs a fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a Next.js project is
&lt;/h2&gt;

&lt;p&gt;A converter that targets Next.js writes the source code that renders your pages, not the pages themselves. With Deframer, a converted project looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;src/
  app/          one page.tsx per URL, with its metadata
  views/        page components, each with a CSS module
  components/   design components in the designer's folders
  styles/       color styles as CSS variables, text styles, fonts
  cms/          each collection as &amp;lt;name&amp;gt;.ts (schema) + &amp;lt;name&amp;gt;.json (records)
  site/forms.ts native forms, served by app/api/forms/&amp;lt;form&amp;gt;/route.ts
  lib/deframer/ the helper kit that replaces Framer's runtime
public/         robots.txt and sitemap.xml as the site publishes them
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the header component once and every page that uses it changes. Add a record to &lt;code&gt;src/cms/blog.json&lt;/code&gt; and the detail page is prerendered on the next build, through &lt;code&gt;generateStaticParams&lt;/code&gt;. Forms post to the project's own route handlers and deliver to a webhook URL you set. Animations run on the &lt;code&gt;motion&lt;/code&gt; package, and there's no Framer runtime. Assets either stay on Framer's CDN (&lt;strong&gt;Assets on Framer's CDN&lt;/strong&gt;, the default) or, with &lt;strong&gt;Assets in the project&lt;/strong&gt;, are downloaded into &lt;code&gt;public/&lt;/code&gt;. &lt;a href="https://deframer.co/blog/what-you-get-in-a-converted-nextjs-project" rel="noopener noreferrer"&gt;What you get in a converted Next.js project&lt;/a&gt; goes folder by folder.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A snapshot copies what the browser received; a project contains the source that produces it.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Static HTML snapshot&lt;/th&gt;
&lt;th&gt;Next.js project (Deframer)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What you get&lt;/td&gt;
&lt;td&gt;The pages as rendered&lt;/td&gt;
&lt;td&gt;The source that renders them, in TypeScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shared parts&lt;/td&gt;
&lt;td&gt;Repeated in each file&lt;/td&gt;
&lt;td&gt;React components, written once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Styles&lt;/td&gt;
&lt;td&gt;Inline generated CSS&lt;/td&gt;
&lt;td&gt;CSS modules, design tokens as CSS variables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Interactions&lt;/td&gt;
&lt;td&gt;Framer's bundled scripts, or none&lt;/td&gt;
&lt;td&gt;React and &lt;code&gt;motion&lt;/code&gt;, in readable code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Editing text or layout&lt;/td&gt;
&lt;td&gt;Edit generated markup&lt;/td&gt;
&lt;td&gt;Edit a component or a JSON record&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CMS&lt;/td&gt;
&lt;td&gt;Pages frozen as they were&lt;/td&gt;
&lt;td&gt;Collections as JSON with a schema, detail pages prerendered&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native forms&lt;/td&gt;
&lt;td&gt;Need a new endpoint&lt;/td&gt;
&lt;td&gt;One route handler per form, webhook delivery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Redirects&lt;/td&gt;
&lt;td&gt;Depend on your host's config&lt;/td&gt;
&lt;td&gt;Listed in &lt;code&gt;next.config.ts&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page metadata&lt;/td&gt;
&lt;td&gt;In each HTML file&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;metadata&lt;/code&gt; per route, &lt;code&gt;metadataBase&lt;/code&gt; in the root layout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosting&lt;/td&gt;
&lt;td&gt;Any static host&lt;/td&gt;
&lt;td&gt;Anywhere Next.js runs: Vercel, Netlify, a container, your own server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who maintains it&lt;/td&gt;
&lt;td&gt;Anyone who can edit HTML&lt;/td&gt;
&lt;td&gt;Someone comfortable with React and Next.js&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Note&lt;/p&gt;
&lt;p&gt;
A Next.js project can also be built into plain static files with &lt;code&gt;output: 'export'&lt;/code&gt;, but that mode doesn't support redirects in &lt;code&gt;next.config&lt;/code&gt; or route handlers that read the request (&lt;a href="https://nextjs.org/docs/app/guides/static-exports" rel="noopener noreferrer"&gt;Next.js docs&lt;/a&gt;). A converted project uses both for redirects and forms, so you'd move those to your host and a form service first. Deframer doesn't do this for you.&lt;/p&gt;

&lt;p&gt;[!NOTE]&lt;br&gt;
If what you want is prerendered HTML you can still edit as a project, Deframer's &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; and &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;Vite&lt;/a&gt; exports prerender every page to static HTML at build time. Astro and React Router still run a small Node.js &lt;code&gt;server.ts&lt;/code&gt; for redirects and forms, so they are projects, not a folder of files; Vite's build is a folder of static files (&lt;code&gt;dist/&lt;/code&gt;) for any static host, its redirects in the host's files and its forms posting to a form service. Deframer's &lt;a href="https://deframer.co/framer-to-html" rel="noopener noreferrer"&gt;Static HTML&lt;/a&gt; download is that folder, already built, for when you only want files to upload.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Where the snapshot wins
&lt;/h2&gt;

&lt;p&gt;Simplicity. A folder of HTML has no build step, no dependencies to update and no Node.js version to think about. For a site that's finished, that's a real advantage, and a Next.js project would be more machinery than you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the project wins
&lt;/h2&gt;

&lt;p&gt;Change. Most sites keep changing: a new case study, a pricing update, a form that should go to a CRM. In a project, each of those is a small edit in a file that says what it is. You can put it under Git, review changes on branches, and deploy previews before anything goes live. &lt;a href="https://deframer.co/blog/maintaining-a-converted-framer-site-with-git" rel="noopener noreferrer"&gt;Maintaining a converted Framer site with Git&lt;/a&gt; shows that workflow.&lt;/p&gt;

&lt;p&gt;It also leaves room to grow. A Next.js project can add an API route, authentication or a headless CMS without leaving the codebase. &lt;a href="https://deframer.co/blog/adding-a-headless-cms-to-a-converted-framer-site" rel="noopener noreferrer"&gt;Adding a headless CMS to a converted Framer site&lt;/a&gt; is one example.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to choose
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Will anyone change this site after the move?&lt;/strong&gt; If not, a snapshot is enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Must it run with no requests to Framer?&lt;/strong&gt; Then a snapshot needs every asset, font and script rewritten, or a project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it have CMS collections that grow?&lt;/strong&gt; Then a project, where records are data, will save repeated manual work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it have forms?&lt;/strong&gt; Either route needs a destination for submissions. In a converted project that's an environment variable; see &lt;a href="https://deframer.co/blog/forms-after-leaving-framer" rel="noopener noreferrer"&gt;how Framer forms work after moving to Next.js&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who will maintain it?&lt;/strong&gt; A Next.js project needs someone comfortable with React. If nobody is, consider staying on Framer, where editing stays visual.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does search traffic matter?&lt;/strong&gt; Both can preserve URLs. A project also keeps your redirects, per-page metadata and canonical URLs in code you can check; &lt;a href="https://deframer.co/blog/seo-when-moving-off-framer" rel="noopener noreferrer"&gt;keeping your SEO when moving off Framer&lt;/a&gt; has the list.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want React without Next.js, &lt;a href="https://deframer.co/blog/convert-framer-to-react" rel="noopener noreferrer"&gt;converting Framer to React&lt;/a&gt; covers the options.&lt;/p&gt;

&lt;h2&gt;
  
  
  What converting to Next.js costs
&lt;/h2&gt;

&lt;p&gt;Converting is free. Downloading a converted project costs 1 credit when you verify the site by publishing a one-line meta tag on it, or 10 credits without verification after confirming you own it or have permission. Packs are one-time: $10 for 1 credit, $25 for 5 or $100 for 30, on the &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;. Credits never expire, a failed conversion costs nothing, and re-downloading the same project is free for the 7 days the download is kept.&lt;/p&gt;

&lt;p&gt;Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer. It reads only the public files your published site serves; nothing in your Framer account is touched.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I export my Framer site to HTML, CSS and JavaScript?
&lt;/h3&gt;

&lt;p&gt;Not from Framer itself; its help center says it doesn't offer HTML export for self-hosting. Third-party tools can save a static copy of the published site. Deframer converts it instead: as a Next.js, TanStack Start, Astro, React Router or Vite project, or as &lt;a href="https://deframer.co/framer-to-html" rel="noopener noreferrer"&gt;Static HTML&lt;/a&gt;, the converted site built into files to upload, without Framer's runtime.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does a Framer HTML snapshot still depend on Framer?
&lt;/h3&gt;

&lt;p&gt;Usually, unless the tool rewrites it. Published pages load their scripts, fonts and images from &lt;code&gt;framerusercontent.com&lt;/code&gt;, and native forms submit to Framer's service, so check each one in your copy.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will animations and interactions work in an HTML export?
&lt;/h3&gt;

&lt;p&gt;Only while Framer's JavaScript bundles still load. Without them, hover states, menus and appear animations stop working. A converted Next.js project replays them with the &lt;code&gt;motion&lt;/code&gt; package instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do Framer forms work in an HTML export?
&lt;/h3&gt;

&lt;p&gt;No, they need a new destination. In a Deframer project each form posts to its own route, &lt;code&gt;/api/forms/&amp;lt;name&amp;gt;&lt;/code&gt;, which delivers submissions to the webhook URLs you configure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is a static HTML export good enough for SEO?
&lt;/h3&gt;

&lt;p&gt;It can be, if every URL stays the same and each page keeps its title, description and canonical tag. You'll need to recreate redirects on your new host. A converted Next.js project keeps redirects in &lt;code&gt;next.config.ts&lt;/code&gt; and metadata in each route file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which is cheaper to host, HTML or Next.js?
&lt;/h3&gt;

&lt;p&gt;A folder of static HTML can be hosted almost anywhere for very little. A Next.js project needs a host that runs Next.js, or a container or server of your own; see &lt;a href="https://deframer.co/blog/framer-hosting-vs-self-hosting-costs" rel="noopener noreferrer"&gt;Framer hosting vs. self-hosting&lt;/a&gt; for how the costs are structured.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/framer-to-html-or-nextjs" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>html</category>
      <category>nextjs</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to convert a Framer website to React</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 05:17:35 +0000</pubDate>
      <link>https://dev.to/designify101/how-to-convert-a-framer-website-to-react-1d32</link>
      <guid>https://dev.to/designify101/how-to-convert-a-framer-website-to-react-1d32</guid>
      <description>&lt;p&gt;To convert a Framer website to React, you either rebuild it in React, export selected components with an editor plugin, or convert the whole published site with a tool that writes React source. Framer has no code export. Deframer produces a React 19 project for Next.js, TanStack Start, Astro, React Router or Vite (&lt;a href="https://deframer.co/framer-to-react" rel="noopener noreferrer"&gt;Framer to React&lt;/a&gt; compares them); if you need a standalone React app, you can lift components out with their CSS modules, styles and the small &lt;code&gt;@/deframer&lt;/code&gt; kit.&lt;/p&gt;

&lt;p&gt;This post is the how-to. For the background question, whether Framer is "React under the hood" and what that means, see &lt;a href="https://deframer.co/blog/is-framer-built-on-react" rel="noopener noreferrer"&gt;is Framer built on React?&lt;/a&gt;. Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why isn't a published Framer site already a React project?
&lt;/h2&gt;

&lt;p&gt;Because it's the output of a build, not the source. A published Framer page is rendered by Framer's runtime from modules the editor publishes, then hydrated with React in the browser. You can see React running, but there's no project to open: no &lt;code&gt;package.json&lt;/code&gt;, no component files with names you chose, no routes folder. Framer's help center says plainly that it "does not offer HTML export for self-hosting" and that published sites "are not fully static" (&lt;a href="https://www.framer.com/help/articles/can-i-export-my-website-to-html-and-self-host-it/" rel="noopener noreferrer"&gt;Framer Help&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;So "convert to React" means producing source that a React toolchain can build, and there are three different things people mean by it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Static snapshot vs generated components
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Static snapshot&lt;/th&gt;
&lt;th&gt;Component export (plugin)&lt;/th&gt;
&lt;th&gt;Whole-site conversion&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What you get&lt;/td&gt;
&lt;td&gt;Saved HTML, CSS, JS and assets&lt;/td&gt;
&lt;td&gt;Selected components as React files&lt;/td&gt;
&lt;td&gt;Routes, pages, components, styles and data as source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is it React source?&lt;/td&gt;
&lt;td&gt;No; markup plus Framer's scripts&lt;/td&gt;
&lt;td&gt;Yes, but generated and usually not meant to be edited&lt;/td&gt;
&lt;td&gt;Yes, readable and meant to be edited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pages and routing&lt;/td&gt;
&lt;td&gt;As saved files&lt;/td&gt;
&lt;td&gt;You build pages and routing&lt;/td&gt;
&lt;td&gt;Generated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keeps Framer as the design tool&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes; you re-export after publishing&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Examples&lt;/td&gt;
&lt;td&gt;PullPage, NoCodeExport, HTTrack&lt;/td&gt;
&lt;td&gt;React Export (Unframer), Proofly React Export&lt;/td&gt;
&lt;td&gt;Deframer (Next.js, TanStack Start, Astro, React Router, Vite)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A snapshot is useful for hosting a copy, but it doesn't give you React components to work with. We cover it in &lt;a href="https://deframer.co/blog/framer-to-html-or-nextjs" rel="noopener noreferrer"&gt;Framer to HTML or Framer to Next.js&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Component exporters are built for a different workflow: you keep designing in Framer and drop its components into a React app you already have. Unframer's docs, for example, say the generated files should never be edited by hand and that you re-run its CLI after changes in Framer, and its components run with the &lt;code&gt;unframer&lt;/code&gt; package (&lt;a href="https://unframer.co/how-it-works" rel="noopener noreferrer"&gt;Unframer&lt;/a&gt;). Its full-website guide has you assemble pages and react-router routing yourself in a Vite app (&lt;a href="https://unframer.co/guides/export-full-website" rel="noopener noreferrer"&gt;Unframer guide&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;A whole-site conversion is the route when you're leaving Framer and want code you'll maintain. &lt;a href="https://deframer.co/blog/best-framer-to-nextjs-converters" rel="noopener noreferrer"&gt;Best Framer to Next.js converters in 2026&lt;/a&gt; compares the tools in each group.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A snapshot copies output, a component export keeps Framer as the source, a conversion gives you the source.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  When does a standalone React app (Vite) make sense instead of Next.js?
&lt;/h2&gt;

&lt;p&gt;A marketing site usually belongs in a framework that renders HTML on the server, because search engines and link previews read that HTML. Next.js does this out of the box, and so do the other frameworks Deframer writes: TanStack Start renders on the server, and Astro, React Router and Vite prerender every page to HTML at build time. A client-rendered React app built with Vite still makes sense when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Framer pages are going into an existing React app&lt;/strong&gt;, such as a product dashboard, and that app is already a Vite single-page app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO doesn't matter for these screens&lt;/strong&gt;, for example pages behind a login.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your team has standardized on a React framework Deframer doesn't write&lt;/strong&gt; (Remix, for example) and you're adapting components into it. For React Router's framework mode or TanStack Start, convert to it directly instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If none of those apply, keeping the converted project is usually less work than moving out of it. It's a normal React 19 app: you write React components, use hooks, and add any npm package.&lt;/p&gt;

&lt;h2&gt;
  
  
  Converting with Deframer: what you get
&lt;/h2&gt;

&lt;p&gt;Deframer converts the published site into a TypeScript project: &lt;a href="https://deframer.co/framer-to-nextjs" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt; (App Router) by default, or &lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;, &lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt; or &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;Vite&lt;/a&gt; if you choose one. In short:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Paste the published URL (framer.website, framer.app or a custom domain) and convert. Converting is free.&lt;/li&gt;
&lt;li&gt;Review the result in the compare view when live previews are on.&lt;/li&gt;
&lt;li&gt;Verify the site and download the project (1 credit with a verification tag, 10 without; see &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;npm install&lt;/code&gt; and &lt;code&gt;npm run dev&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The React code lives in predictable places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;src/views/&lt;/code&gt; holds one component per page (&lt;code&gt;home.tsx&lt;/code&gt; with &lt;code&gt;home.module.css&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/components/&lt;/code&gt; holds the design components, in the designer's folders, each with a CSS module.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/layouts/&lt;/code&gt; holds templates such as navigation and footer.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/styles/&lt;/code&gt; holds color tokens (&lt;code&gt;tokens.ts&lt;/code&gt;), text styles and &lt;code&gt;@font-face&lt;/code&gt; rules.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/cms/&lt;/code&gt; holds CMS collections as JSON plus a schema module.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/code/&lt;/code&gt; and &lt;code&gt;src/vendor/&lt;/code&gt; hold your own code components and marketplace code.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/lib/deframer/&lt;/code&gt; is the kit, imported as &lt;code&gt;@/deframer&lt;/code&gt;, which replaces Framer's runtime.&lt;/li&gt;
&lt;li&gt;The routes are each framework's own: &lt;code&gt;src/app/&lt;/code&gt; in Next.js, &lt;code&gt;src/routes/&lt;/code&gt; in TanStack Start, React Router and Vite, &lt;code&gt;src/pages/&lt;/code&gt; in Astro. They hold only routes and their metadata; the pages themselves are the same in all five.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full tour is in &lt;a href="https://deframer.co/blog/what-you-get-in-a-converted-nextjs-project" rel="noopener noreferrer"&gt;what you get in a converted Next.js project&lt;/a&gt;, and the step-by-step export is in &lt;a href="https://deframer.co/blog/how-to-export-a-framer-site-to-nextjs" rel="noopener noreferrer"&gt;how to export a Framer site to Next.js&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you move converted components into another React app?
&lt;/h2&gt;

&lt;p&gt;You copy the component with what it depends on, then replace the few places the kit talks to its framework. The steps below use a Next.js export as the example. Expect real work for a whole site and modest work for a few sections. Here's what's involved.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Copy the component and its dependencies
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;[ ] The component's &lt;code&gt;.tsx&lt;/code&gt; file and its &lt;code&gt;.module.css&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;[ ] Every component it imports from &lt;code&gt;src/components/&lt;/code&gt;, &lt;code&gt;src/icons/&lt;/code&gt;, &lt;code&gt;src/code/&lt;/code&gt; or &lt;code&gt;src/vendor/&lt;/code&gt;, with their CSS modules.&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;src/styles/&lt;/code&gt; (tokens, text styles, fonts) and &lt;code&gt;src/app/globals.css&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;src/lib/deframer/&lt;/code&gt;, the kit. Only the modules your site uses are in it.&lt;/li&gt;
&lt;li&gt;[ ] What the root layout, &lt;code&gt;src/app/layout.tsx&lt;/code&gt;, wraps every page in: the kit's &lt;code&gt;&amp;lt;SiteStyles&amp;gt;&lt;/code&gt; (given the design tokens), &lt;code&gt;&amp;lt;SiteRouter&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;SVGTemplates&amp;gt;&lt;/code&gt;, inside a &lt;code&gt;&amp;lt;div id="main"&amp;gt;&lt;/code&gt;. Your app's root needs the same wrappers.&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;src/site/routes.ts&lt;/code&gt;, because the kit's links and routing read the site's route table from &lt;code&gt;@/site/routes&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;[ ] Any CMS files in &lt;code&gt;src/cms/&lt;/code&gt; the component reads.&lt;/li&gt;
&lt;li&gt;[ ] The npm dependencies from &lt;code&gt;package.json&lt;/code&gt;: at least &lt;code&gt;react&lt;/code&gt;, &lt;code&gt;react-dom&lt;/code&gt; and &lt;code&gt;motion&lt;/code&gt;, plus any packages your code components import.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Reproduce the TypeScript and JSX settings
&lt;/h3&gt;

&lt;p&gt;The generated code expects two settings from &lt;code&gt;tsconfig.json&lt;/code&gt;: the &lt;code&gt;@/&lt;/code&gt; path aliases, and JSX compiled through the kit's runtime:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"compilerOptions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"jsx"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"react-jsx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"jsxImportSource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"@/deframer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"paths"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"@/deframer"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/lib/deframer"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"@/deframer/*"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/lib/deframer/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"@/*"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The kit's JSX runtime matters: it applies &lt;code&gt;defaultProps&lt;/code&gt; the way React 18 did and passes DOM elements only props they can render, which code written for Framer relies on. In a Vite app you'd mirror this with &lt;code&gt;resolve.alias&lt;/code&gt; entries for &lt;code&gt;@/deframer&lt;/code&gt; and &lt;code&gt;@/&lt;/code&gt;, and the React plugin's &lt;code&gt;jsxImportSource&lt;/code&gt; option set to &lt;code&gt;@/deframer&lt;/code&gt;. CSS modules work in Vite without extra setup.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Replace the Next.js touchpoints in the kit
&lt;/h3&gt;

&lt;p&gt;The generated components themselves don't import &lt;code&gt;next/link&lt;/code&gt; or &lt;code&gt;next/image&lt;/code&gt;; links go through the kit's own &lt;code&gt;Link&lt;/code&gt;, and the project already serves images unoptimized. The Next.js dependencies are inside the kit, in a handful of files (only some will exist in your project):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Kit file&lt;/th&gt;
&lt;th&gt;Uses from Next.js&lt;/th&gt;
&lt;th&gt;What you'd do in a Vite app&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;route.tsx&lt;/code&gt;, &lt;code&gt;route-link.tsx&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;usePathname&lt;/code&gt;, &lt;code&gt;useRouter&lt;/code&gt;, &lt;code&gt;useSelectedLayoutSegments&lt;/code&gt; from &lt;code&gt;next/navigation&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Back them with your router (for example React Router's location and navigate)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;styles.tsx&lt;/code&gt;, &lt;code&gt;breakpoints.tsx&lt;/code&gt;, &lt;code&gt;cms.tsx&lt;/code&gt;, &lt;code&gt;content-svg.tsx&lt;/code&gt;, &lt;code&gt;effects/appear.tsx&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;useServerInsertedHTML&lt;/code&gt; and &lt;code&gt;ServerInsertedHTMLContext&lt;/code&gt;, which stream CSS into server-rendered HTML&lt;/td&gt;
&lt;td&gt;In a client-only app there's no server HTML to stream into; the kit also inserts rules in the browser, so these need a client-side replacement or no-op. Test each breakpoint after the change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cursors.tsx&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Next's internal router contexts (&lt;code&gt;next/dist/...&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Pass your own router context, or drop custom cursors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Treat this table as a map of where to look, not a finished port: we don't ship or test a Vite build of the kit.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Rebuild what lived in Next.js routes
&lt;/h3&gt;

&lt;p&gt;Some features are Next.js files rather than components, so they don't come along:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Page metadata.&lt;/strong&gt; Titles, descriptions, Open Graph and canonical URLs are &lt;code&gt;metadata&lt;/code&gt; exports in &lt;code&gt;src/app/**/page.tsx&lt;/code&gt;. In React 19 you can render &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; tags inside a component; for crawlers you still want server rendering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forms.&lt;/strong&gt; Each form posts to a route handler, such as &lt;code&gt;src/app/api/forms/contact/route.ts&lt;/code&gt;, which calls &lt;code&gt;src/lib/forms.ts&lt;/code&gt; (rate limit, honeypot, validation, webhook delivery). Point the form at an endpoint your app provides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Routing policy.&lt;/strong&gt; &lt;code&gt;src/proxy.ts&lt;/code&gt; (trailing slashes, redirects) and the &lt;code&gt;redirects()&lt;/code&gt; list in &lt;code&gt;next.config.ts&lt;/code&gt; need equivalents on your host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CMS pages.&lt;/strong&gt; Detail routes like &lt;code&gt;src/app/blog/[slug]/page.tsx&lt;/code&gt; list items with &lt;code&gt;generateStaticParams()&lt;/code&gt;. Recreate them with your router, reading the same JSON.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Check it
&lt;/h3&gt;

&lt;p&gt;Render the moved component inside your app, then compare it with the original at 1440, 768 and 390 pixels wide, hover and click everything, and run &lt;code&gt;npx tsc --noEmit&lt;/code&gt;. Code components written in Framer were never type-checked there, so some type errors may be yours, not the port's; &lt;a href="https://deframer.co/blog/framer-code-components-and-overrides-in-nextjs" rel="noopener noreferrer"&gt;Framer code components and overrides in Next.js&lt;/a&gt; explains how to tighten them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Tip&lt;/p&gt;
&lt;p&gt;
For a component you'll maintain for years, it's often cleaner to use the converted version as a reference and rewrite it in your app's conventions, keeping the CSS values and motion transitions it already worked out.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can Framer export my site as React code?
&lt;/h3&gt;

&lt;p&gt;No. Framer has no built-in React or code export. You can rebuild in React, export selected components with a third-party plugin, or convert the published site with a tool such as Deframer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Deframer output a plain React (Vite) app?
&lt;/h3&gt;

&lt;p&gt;No. Deframer outputs a Next.js, TanStack Start, Astro, React Router or Vite project with React 19 and TypeScript. You can move components into another React app, but you'll bring the kit along and replace its framework hooks (the Next.js ones are listed above).&lt;/p&gt;

&lt;h3&gt;
  
  
  Is a Next.js project still "React"?
&lt;/h3&gt;

&lt;p&gt;Yes. Next.js is a React framework: pages and components are React components, and you can use hooks and React libraries as usual. Next.js adds routing, server rendering and metadata on top.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do converted Framer components need the framer package?
&lt;/h3&gt;

&lt;p&gt;Not with Deframer. The project has no Framer runtime; a readable kit in &lt;code&gt;src/lib/deframer&lt;/code&gt; replaces it. Component exporters may rely on their own runtime package instead, such as &lt;code&gt;unframer&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will animations work after I move components to Vite?
&lt;/h3&gt;

&lt;p&gt;They run on &lt;code&gt;motion/react&lt;/code&gt;, which works in any React app, so the animation code itself moves with the component. Check hover, scroll and appear effects after replacing the kit's Next.js touchpoints.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/convert-framer-to-react" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>react</category>
      <category>typescript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Learn React by reading your own Framer site's code</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:44:30 +0000</pubDate>
      <link>https://dev.to/designify101/learn-react-by-reading-your-own-framer-sites-code-4amj</link>
      <guid>https://dev.to/designify101/learn-react-by-reading-your-own-framer-sites-code-4amj</guid>
      <description>&lt;p&gt;The fastest way for a Framer designer to learn React is to read a React project whose design you already know: your own site. Convert your published Framer site to code, run it locally, and trace each thing you built on the canvas (a component, a variant, a breakpoint, a CMS list) to the file that renders it. Because you know what every part should look like, you can focus on how the code expresses it, and every change you make shows up in the browser straight away.&lt;/p&gt;

&lt;p&gt;This guide uses Deframer, which converts a published Framer site into a TypeScript project. Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer. Use it on your own site, or one whose owner allows it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why your own site beats a tutorial
&lt;/h2&gt;

&lt;p&gt;Tutorials teach React with to-do lists. That works, but the gap between a to-do list and a real website is wide. Your own site closes the gap from the other side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You know the intent.&lt;/strong&gt; You know the hero should stack on phones and the card should lift on hover, so you can tell whether you understand the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framer already taught you the concepts.&lt;/strong&gt; Components, variants, props (Framer's property controls), breakpoints and CMS collections all exist in React too, under similar names.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's real.&lt;/strong&gt; The project is a standard React app, so what you learn carries over to any React job.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: get the code running
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Convert your site with Deframer: paste the published address and keep the default framework, Next.js. Converting is free.&lt;/li&gt;
&lt;li&gt;To download, verify the site is yours by publishing a one-line meta tag in Framer's Site Settings, Custom Code. A verified download uses 1 credit ($10 as a single pack). See &lt;a href="https://deframer.co/blog/verifying-framer-site-ownership" rel="noopener noreferrer"&gt;verifying Framer site ownership&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Install &lt;a href="https://nodejs.org" rel="noopener noreferrer"&gt;Node.js&lt;/a&gt; (20.9 or later), unzip the project and run:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;http://localhost:3000&lt;/code&gt;. That's your site, running from code on your machine.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Open the folder in an editor such as VS Code. Keep the browser and the editor side by side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: learn the map
&lt;/h2&gt;

&lt;p&gt;The project's README has a "Where to edit" table. These are the folders that matter while learning:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Framer concept&lt;/th&gt;
&lt;th&gt;Where it is in code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A page&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;src/views/&amp;lt;page&amp;gt;.tsx&lt;/code&gt; plus &lt;code&gt;&amp;lt;page&amp;gt;.module.css&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The URL of a page&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;src/app/&amp;lt;path&amp;gt;/page.tsx&lt;/code&gt; (a few lines that render the view)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Layout templates (nav, footer)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;src/layouts/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A design component&lt;/td&gt;
&lt;td&gt;&lt;code&gt;src/components/&amp;lt;your folders&amp;gt;/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Color styles&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;src/styles/tokens.ts&lt;/code&gt;, as CSS variables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Text styles&lt;/td&gt;
&lt;td&gt;&lt;code&gt;src/styles/text/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CMS collections&lt;/td&gt;
&lt;td&gt;&lt;code&gt;src/cms/&amp;lt;collection&amp;gt;.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code components you wrote&lt;/td&gt;
&lt;td&gt;&lt;code&gt;src/code/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Components keep the folder names you used in Framer, and props and variants keep the names you gave them. A variant you called "Hover" or "Mobile Open" is called that in the code. &lt;a href="https://deframer.co/blog/what-you-get-in-a-converted-nextjs-project" rel="noopener noreferrer"&gt;What you get in a converted Next.js project&lt;/a&gt; tours every folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: five small exercises
&lt;/h2&gt;

&lt;p&gt;Do these in order. Each one teaches a core React idea using something you designed.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Change some text (JSX)
&lt;/h3&gt;

&lt;p&gt;Open the view for your home page and find a headline you wrote. Change the words and save; the browser updates. You've just edited JSX, React's HTML-like syntax. Notice how text sits inside elements, and how elements nest the way layers nest in Framer.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Change a color everywhere (CSS variables)
&lt;/h3&gt;

&lt;p&gt;Open &lt;code&gt;src/styles/tokens.ts&lt;/code&gt; and change one of your color styles. Every component that uses it changes. This is the same idea as a Framer color style, expressed as a CSS variable such as &lt;code&gt;--token-...&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Follow a component's props
&lt;/h3&gt;

&lt;p&gt;Pick a component you reuse, such as a button. Find where a page uses it and look at what it passes in: a label, a link, a variant. Then open the component file and find where it reads those values. That's props: data passed from the parent, like property controls in Framer.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Read a variant
&lt;/h3&gt;

&lt;p&gt;In the same component, look for its variants by name, such as &lt;code&gt;variant === "Primary"&lt;/code&gt;. Variants in React are usually just a prop that picks different styles or content. Hover and press states are written with &lt;code&gt;motion/react&lt;/code&gt;, the animation library Framer's own animations grew from. &lt;a href="https://deframer.co/blog/framer-variants-and-hover-states-in-react" rel="noopener noreferrer"&gt;Framer variants and hover states as React code&lt;/a&gt; explains the patterns.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Add a CMS item
&lt;/h3&gt;

&lt;p&gt;Open a collection's JSON in &lt;code&gt;src/cms/&lt;/code&gt;, copy one record, change its fields and give it a new slug. Restart the dev server if needed and visit its URL. You've just seen how data drives a list and a detail page: a component maps over records and renders one card per item.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: learn the concepts behind what you saw
&lt;/h2&gt;

&lt;p&gt;Once the exercises feel natural, read the official React docs at react.dev with your project open. The sections on components, props, rendering lists, conditional rendering and state will each map to something you've already touched. When the docs show an example, find the equivalent in your site.&lt;/p&gt;

&lt;p&gt;For routing and pages, read the Next.js docs on the App Router. Each folder in &lt;code&gt;src/app&lt;/code&gt; is a URL, and each &lt;code&gt;page.tsx&lt;/code&gt; is what that URL renders.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to skip at first
&lt;/h2&gt;

&lt;p&gt;Some parts of the project are there to reproduce Framer's runtime, and they're not where a beginner should start:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;src/lib/deframer/&lt;/code&gt;: the small kit that replaces Framer's runtime. Useful later, distracting now.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/vendor/&lt;/code&gt;: marketplace components as source, written by other people.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/proxy.ts&lt;/code&gt; and &lt;code&gt;next.config.ts&lt;/code&gt;: redirects and URL forms.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Treat them like a car's engine bay: know it's there, don't start learning to drive by opening it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use AI as a tutor, not a replacement
&lt;/h2&gt;

&lt;p&gt;Tools like Cursor or Claude Code can explain any file in plain language. Ask "explain what this component does and which props it takes" rather than "change this for me". When you do let a tool edit, read the diff before you accept it. &lt;a href="https://deframer.co/blog/edit-a-framer-site-with-cursor-or-claude-code" rel="noopener noreferrer"&gt;Editing a Framer site with Cursor or Claude Code&lt;/a&gt; has prompts and guardrails.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep designing in Framer if you like
&lt;/h2&gt;

&lt;p&gt;Learning React doesn't mean leaving Framer. Many designers keep designing there and use the code to understand what developers will build, to prototype ideas faster in code, or to hand cleaner work to a team. If you want to understand the differences in depth, &lt;a href="https://deframer.co/blog/is-framer-built-on-react" rel="noopener noreferrer"&gt;is Framer built on React?&lt;/a&gt; is a good next read, and &lt;a href="https://deframer.co/blog/which-framework-for-your-framer-export" rel="noopener noreferrer"&gt;which framework should your Framer site use?&lt;/a&gt; explains the other export options.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do I need to know JavaScript before starting?
&lt;/h3&gt;

&lt;p&gt;It helps to know the basics, such as variables, functions and arrays, but you can learn them alongside. Your site gives you real examples of each.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is the code readable for a beginner?
&lt;/h3&gt;

&lt;p&gt;It's generated code, but it is formatted, uses human names for props and variants, and keeps your folders. Some parts are dense; start with views and components.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will I break my live Framer site?
&lt;/h3&gt;

&lt;p&gt;No. The code is a copy on your computer. Nothing you do in it changes the site Framer hosts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which framework should a beginner pick?
&lt;/h3&gt;

&lt;p&gt;Next.js, the default. It has the most learning material and is what most React jobs use.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does it cost?
&lt;/h3&gt;

&lt;p&gt;Converting and reviewing are free. Downloading your own site's code uses 1 credit with verification; a single credit costs $10. See &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/learn-react-with-your-own-framer-site" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>beginners</category>
      <category>framer</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Self-host a Framer site with Docker on your own server</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:37:29 +0000</pubDate>
      <link>https://dev.to/designify101/self-host-a-framer-site-with-docker-on-your-own-server-4b21</link>
      <guid>https://dev.to/designify101/self-host-a-framer-site-with-docker-on-your-own-server-4b21</guid>
      <description>&lt;p&gt;To self-host a Framer site with Docker, convert the published site to a code project, build it into a Docker image, run the container on your server, and put a reverse proxy such as Caddy or nginx in front for HTTPS. Framer itself can't be self-hosted, because it doesn't export files; a converted project can, because it's a standard Node.js app. Next.js is the most common choice, and the TanStack Start, Astro and React Router targets work the same way with a different start command.&lt;/p&gt;

&lt;p&gt;Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer. Downloads are for sites you own or have the owner's permission to convert.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Linux server (any VPS provider) with Docker and Docker Compose installed.&lt;/li&gt;
&lt;li&gt;A domain whose DNS you control.&lt;/li&gt;
&lt;li&gt;The converted project. Paste your published Framer address on &lt;a href="https://deframer.co/" rel="noopener noreferrer"&gt;deframer.co&lt;/a&gt;, pick a framework, verify the site is yours and download. Converting is free; a verified download costs 1 credit (&lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;For a fully independent site, choose &lt;strong&gt;Assets in the project&lt;/strong&gt; when converting, so images, fonts and videos are served from your server instead of Framer's CDN.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you don't want a server at all, a &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;static Vite export&lt;/a&gt; on any static host is simpler. This guide is for when you want the box to be yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which target, and how it starts
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;th&gt;Start&lt;/th&gt;
&lt;th&gt;Node.js&lt;/th&gt;
&lt;th&gt;Default port&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://deframer.co/framer-to-nextjs" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npm run build&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm start&lt;/code&gt; (&lt;code&gt;next start&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;20.9 or later&lt;/td&gt;
&lt;td&gt;3000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://deframer.co/framer-to-tanstack-start" rel="noopener noreferrer"&gt;TanStack Start&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm run build&lt;/code&gt; (Rsbuild)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm start&lt;/code&gt; (srvx)&lt;/td&gt;
&lt;td&gt;22.18 or later&lt;/td&gt;
&lt;td&gt;see srvx's docs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://deframer.co/framer-to-astro" rel="noopener noreferrer"&gt;Astro&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm run build&lt;/code&gt; (prerenders every page)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm start&lt;/code&gt; (the project's &lt;code&gt;server.ts&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;22.18 or later&lt;/td&gt;
&lt;td&gt;4321&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://deframer.co/framer-to-react-router" rel="noopener noreferrer"&gt;React Router&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm run build&lt;/code&gt;, then prerender&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm start&lt;/code&gt; (the project's &lt;code&gt;server.ts&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;22.22 or later&lt;/td&gt;
&lt;td&gt;3000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Astro and React Router &lt;code&gt;server.ts&lt;/code&gt; read &lt;code&gt;HOST&lt;/code&gt; and &lt;code&gt;PORT&lt;/code&gt;; their default host is &lt;code&gt;localhost&lt;/code&gt;, so inside a container set &lt;code&gt;HOST=0.0.0.0&lt;/code&gt; or the proxy can't reach them. For Next.js in standalone mode, set &lt;code&gt;HOSTNAME=0.0.0.0&lt;/code&gt; for the same reason; the Dockerfile below does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Build and run locally
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run build
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the site and click through the routes in the README. Fix anything here first; Docker won't make a broken build better.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Write the Dockerfile
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Next.js, with standalone output
&lt;/h3&gt;

&lt;p&gt;Next.js can trace exactly the files a production server needs into &lt;code&gt;.next/standalone&lt;/code&gt;, which makes a much smaller image. Add one line to &lt;code&gt;next.config.ts&lt;/code&gt; (the converted config doesn't set it):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;nextConfig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;NextConfig&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"standalone"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// … the rest stays as converted&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then add a &lt;code&gt;Dockerfile&lt;/code&gt; at the project root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt; node:22-slim AS build
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app
&lt;span class="k"&gt;COPY&lt;/span&gt; package.json package-lock.json ./
&lt;span class="k"&gt;RUN&lt;/span&gt; npm ci
&lt;span class="k"&gt;COPY&lt;/span&gt; . .
&lt;span class="k"&gt;RUN&lt;/span&gt; npm run build

&lt;span class="k"&gt;FROM&lt;/span&gt; node:22-slim
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;NODE_ENV&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;production
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;HOSTNAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0.0.0.0
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;3000
&lt;span class="k"&gt;COPY&lt;/span&gt; --from=build /app/.next/standalone ./
&lt;span class="k"&gt;COPY&lt;/span&gt; --from=build /app/.next/static ./.next/static
&lt;span class="k"&gt;COPY&lt;/span&gt; --from=build /app/public ./public
&lt;span class="k"&gt;USER&lt;/span&gt; node
&lt;span class="k"&gt;EXPOSE&lt;/span&gt; 3000
&lt;span class="k"&gt;CMD&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"node"&lt;/span&gt;, &lt;span class="s2"&gt;"server.js"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The standalone server doesn't copy &lt;code&gt;public/&lt;/code&gt; or &lt;code&gt;.next/static&lt;/code&gt; itself, which is why the two extra &lt;code&gt;COPY&lt;/code&gt; lines are there. Without them, styles and assets are missing.&lt;/p&gt;

&lt;h3&gt;
  
  
  TanStack Start, Astro or React Router
&lt;/h3&gt;

&lt;p&gt;These run with &lt;code&gt;npm start&lt;/code&gt;, so copy the whole built app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt; node:22-slim AS build
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app
&lt;span class="k"&gt;COPY&lt;/span&gt; package.json package-lock.json ./
&lt;span class="k"&gt;RUN&lt;/span&gt; npm ci
&lt;span class="k"&gt;COPY&lt;/span&gt; . .
&lt;span class="k"&gt;RUN&lt;/span&gt; npm run build

&lt;span class="k"&gt;FROM&lt;/span&gt; node:22-slim
&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;NODE_ENV&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;production
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;HOST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0.0.0.0
&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;3000
&lt;span class="k"&gt;COPY&lt;/span&gt; --from=build /app ./
&lt;span class="k"&gt;USER&lt;/span&gt; node
&lt;span class="k"&gt;EXPOSE&lt;/span&gt; 3000
&lt;span class="k"&gt;CMD&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"npm"&lt;/span&gt;, &lt;span class="s2"&gt;"start"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;node:22-slim&lt;/code&gt; installs the newest Node.js 22 release, which satisfies 22.18 and 22.22. Pin a specific tag if you want reproducible images.&lt;/p&gt;

&lt;h3&gt;
  
  
  .dockerignore
&lt;/h3&gt;

&lt;p&gt;Add a &lt;code&gt;.dockerignore&lt;/code&gt; so local files stay out of the image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node_modules
.next
dist
.env
.env*.local
.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Compose the app and Caddy
&lt;/h2&gt;

&lt;p&gt;Caddy gets and renews TLS certificates on its own, which makes it a good default. Create &lt;code&gt;compose.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;.&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;env_file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;.env.production&lt;/span&gt;
    &lt;span class="na"&gt;expose&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"3000"&lt;/span&gt;

  &lt;span class="na"&gt;caddy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;caddy:2&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"80:80"&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"443:443"&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;./Caddyfile:/etc/caddy/Caddyfile:ro&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;caddy_data:/data&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;caddy_config:/config&lt;/span&gt;
    &lt;span class="na"&gt;depends_on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;site&lt;/span&gt;

&lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;caddy_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;caddy_config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And a &lt;code&gt;Caddyfile&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;example.com {
  encode zstd gzip
  reverse_proxy site:3000
}

www.example.com {
  redir https://example.com{uri} permanent
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap the two blocks if your site's primary form is &lt;code&gt;www&lt;/code&gt;. Keep the same primary form the Framer site used so canonical URLs match.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Environment variables
&lt;/h2&gt;

&lt;p&gt;Put secrets in &lt;code&gt;.env.production&lt;/code&gt; on the server, not in the image or in Git:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;FORMS_WEBHOOK_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://hooks.example.com/your-endpoint
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The converted project's &lt;code&gt;.env.example&lt;/code&gt; lists every variable: &lt;code&gt;FORMS_WEBHOOK_URL&lt;/code&gt; for all forms and one &lt;code&gt;FORMS_&amp;lt;NAME&amp;gt;_WEBHOOK_URL&lt;/code&gt; per form. Without a webhook, submissions are only logged by the server, which in Docker means &lt;code&gt;docker compose logs site&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A self-hosted single container has one advantage for forms: the project's in-memory rate limit is one counter, rather than one per serverless instance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Deploy and point DNS
&lt;/h2&gt;

&lt;p&gt;On the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone git@github.com:you/your-site.git
&lt;span class="nb"&gt;cd&lt;/span&gt; your-site
&lt;span class="c"&gt;# create .env.production&lt;/span&gt;
docker compose up -d --build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Test with the server's IP and a &lt;code&gt;Host&lt;/code&gt; header before touching DNS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sI -H &lt;span class="s2"&gt;"Host: example.com"&lt;/span&gt; http://YOUR_SERVER_IP/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then lower the TTL on your DNS records a day ahead, change the &lt;code&gt;A&lt;/code&gt; (and &lt;code&gt;AAAA&lt;/code&gt;, if you have IPv6) records to the server, and wait for Caddy to fetch certificates. Remove the domain from your Framer project once the new site answers. &lt;a href="https://deframer.co/blog/move-a-framer-domain-without-downtime" rel="noopener noreferrer"&gt;Moving a domain off Framer without downtime&lt;/a&gt; has the full cutover and rollback plan.&lt;/p&gt;

&lt;p&gt;Before the switch, update &lt;code&gt;metadataBase&lt;/code&gt; (Next.js, in &lt;code&gt;src/app/layout.tsx&lt;/code&gt;), &lt;code&gt;public/robots.txt&lt;/code&gt; and &lt;code&gt;public/sitemap.xml&lt;/code&gt; if the domain changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updating the site
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git pull
docker compose up -d --build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's a short gap while the container restarts. If that matters, run two &lt;code&gt;site&lt;/code&gt; replicas behind Caddy and restart them one at a time, or use a deploy tool that does blue-green swaps. When you change the design in Framer and republish, convert again, merge the new output on a branch (&lt;a href="https://deframer.co/blog/maintaining-a-converted-framer-site-with-git" rel="noopener noreferrer"&gt;maintaining a converted site with Git&lt;/a&gt;) and redeploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardening checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The container runs as the &lt;code&gt;node&lt;/code&gt; user, not root (the &lt;code&gt;USER node&lt;/code&gt; line).&lt;/li&gt;
&lt;li&gt;Only ports 80 and 443 are open on the firewall; the app port stays on the Docker network.&lt;/li&gt;
&lt;li&gt;Automatic OS security updates are on.&lt;/li&gt;
&lt;li&gt;Security headers are set, in Caddy or in the app. &lt;a href="https://deframer.co/blog/security-headers-for-a-self-hosted-framer-site" rel="noopener noreferrer"&gt;Security headers for a self-hosted Framer site&lt;/a&gt; gives a starting set.&lt;/li&gt;
&lt;li&gt;You have uptime monitoring and a backup of &lt;code&gt;.env.production&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The Git repository is the source of truth, so a dead server is a rebuild, not a loss. See &lt;a href="https://deframer.co/blog/back-up-a-framer-site" rel="noopener noreferrer"&gt;how to back up a Framer site&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Is self-hosting cheaper?
&lt;/h2&gt;

&lt;p&gt;It depends on how you count your time. A small VPS is inexpensive, but you take on updates, monitoring and incidents. &lt;a href="https://deframer.co/blog/framer-hosting-vs-self-hosting-costs" rel="noopener noreferrer"&gt;Framer hosting vs self-hosting costs&lt;/a&gt; gives a worksheet. If you want a Node.js host without the server work, &lt;a href="https://deframer.co/blog/host-a-framer-site-on-render-or-railway" rel="noopener noreferrer"&gt;Render or Railway&lt;/a&gt; is a middle ground.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I self-host a Framer site?
&lt;/h3&gt;

&lt;p&gt;Not as a Framer project; Framer only hosts sites itself. Convert the published site to a code project with Deframer, and that project runs on any server with Node.js, in Docker or not.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Docker?
&lt;/h3&gt;

&lt;p&gt;No. You can run &lt;code&gt;npm run build&lt;/code&gt; and &lt;code&gt;npm start&lt;/code&gt; under a process manager such as systemd. Docker makes the environment reproducible and updates simpler.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which reverse proxy should I use?
&lt;/h3&gt;

&lt;p&gt;Caddy is the simplest because it handles HTTPS certificates automatically. nginx or Traefik work too; point them at the container's port.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the site still load anything from Framer?
&lt;/h3&gt;

&lt;p&gt;Not code. With the default asset setting, images, fonts and videos still load from Framer's CDN. Convert with "Assets in the project" to serve everything from your server.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much memory does the container need?
&lt;/h3&gt;

&lt;p&gt;It depends on the site and traffic. Watch &lt;code&gt;docker stats&lt;/code&gt; under real traffic and size the server from that; a marketing site with prerendered pages is usually light.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/self-host-a-framer-site-with-docker" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>docker</category>
      <category>selfhosted</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to host a Framer site on Cloudflare Pages</title>
      <dc:creator>Mehdi Hassan</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:30:27 +0000</pubDate>
      <link>https://dev.to/designify101/how-to-host-a-framer-site-on-cloudflare-pages-3d6d</link>
      <guid>https://dev.to/designify101/how-to-host-a-framer-site-on-cloudflare-pages-3d6d</guid>
      <description>&lt;p&gt;To host a Framer site on Cloudflare Pages, convert the published site to a static project, build it into a folder of HTML files, and deploy that folder to Pages from Git or with Wrangler. Pages serves static files, so the right Deframer target is &lt;a href="https://deframer.co/framer-to-vite" rel="noopener noreferrer"&gt;Vite&lt;/a&gt;: every page is prerendered into &lt;code&gt;dist/&lt;/code&gt;, the site's redirects come as a &lt;code&gt;_redirects&lt;/code&gt; file Pages reads, and nothing runs on a server. If you need a Next.js app on Cloudflare instead, that runs on Cloudflare Workers through the OpenNext adapter, covered briefly at the end.&lt;/p&gt;

&lt;p&gt;Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer or Cloudflare.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the Vite target fits Pages
&lt;/h2&gt;

&lt;p&gt;Cloudflare Pages is a static host with optional functions. A converted Vite project matches it closely:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pages expects&lt;/th&gt;
&lt;th&gt;The Vite project gives&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A build command and an output folder&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm run build&lt;/code&gt;, output in &lt;code&gt;dist/&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTML files at each URL&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;about.html&lt;/code&gt; for &lt;code&gt;/about&lt;/code&gt;, &lt;code&gt;index.html&lt;/code&gt; for &lt;code&gt;/&lt;/code&gt;, and so on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A &lt;code&gt;404.html&lt;/code&gt; for unknown URLs&lt;/td&gt;
&lt;td&gt;The site's own 404 page as &lt;code&gt;404.html&lt;/code&gt; (per locale on multi-language sites)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A &lt;code&gt;_redirects&lt;/code&gt; file&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;public/_redirects&lt;/code&gt; with the redirects from Framer's site settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No server&lt;/td&gt;
&lt;td&gt;None needed; forms post to a form service&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Pages serves &lt;code&gt;about.html&lt;/code&gt; at &lt;code&gt;/about&lt;/code&gt; and redirects &lt;code&gt;/about.html&lt;/code&gt; to &lt;code&gt;/about&lt;/code&gt;, which is exactly the URL form the converted site uses. It serves the nearest &lt;code&gt;404.html&lt;/code&gt; with a 404 status for URLs that don't exist.&lt;/p&gt;

&lt;p&gt;The other targets (Next.js, TanStack Start, Astro, React Router) need a Node.js server at request time, which Pages doesn't provide. See &lt;a href="https://deframer.co/blog/which-framework-for-your-framer-export" rel="noopener noreferrer"&gt;which framework to export Framer to&lt;/a&gt; if you're still deciding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Convert to Vite and download
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;On &lt;a href="https://deframer.co/" rel="noopener noreferrer"&gt;deframer.co&lt;/a&gt;, paste the published site's address and pick &lt;strong&gt;Vite&lt;/strong&gt; in the framework menu. Converting is free.&lt;/li&gt;
&lt;li&gt;Decide on assets. &lt;strong&gt;Assets on Framer's CDN&lt;/strong&gt; (default) keeps images, fonts and videos on &lt;code&gt;framerusercontent.com&lt;/code&gt;. &lt;strong&gt;Assets in the project&lt;/strong&gt; downloads them into &lt;code&gt;public/&lt;/code&gt; so Cloudflare serves everything. For a full exit from Framer, choose the second.&lt;/li&gt;
&lt;li&gt;Verify the site is yours (a meta tag in Framer's Site Settings, then Custom Code; publish; Check again) and download the &lt;code&gt;.zip&lt;/code&gt;. A verified download is 1 credit, or free with the lifetime deal; see &lt;a href="https://deframer.co/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Deframer downloads are for your own sites or sites whose owner has given you permission.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Build and preview locally
&lt;/h2&gt;

&lt;p&gt;You need Node.js 22.18 or later, because the prerender script runs as TypeScript directly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run build
npm run preview
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;npm run preview&lt;/code&gt; serves &lt;code&gt;dist/&lt;/code&gt; the way a static host does, including the 404 page. Check every route in the README's routes table at desktop, tablet and phone widths.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Deploy
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Option A: connect the Git repository
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Push the project to GitHub or GitLab. Commit &lt;code&gt;package-lock.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In the Cloudflare dashboard, create a Pages project and connect the repository.&lt;/li&gt;
&lt;li&gt;Set the build command to &lt;code&gt;npm run build&lt;/code&gt; and the build output directory to &lt;code&gt;dist&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Set a &lt;code&gt;NODE_VERSION&lt;/code&gt; environment variable of &lt;code&gt;22&lt;/code&gt; (or later) so the build image uses a recent Node.js.&lt;/li&gt;
&lt;li&gt;If the site has forms, add &lt;code&gt;VITE_FORM_ENDPOINT&lt;/code&gt; (see below) as a build environment variable.&lt;/li&gt;
&lt;li&gt;Save and deploy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each push to the production branch redeploys; every other branch and pull request gets its own preview URL.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option B: deploy from your machine with Wrangler
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install --save-dev wrangler
npm run build
npx wrangler pages deploy dist --project-name my-site
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first run asks you to log in and creates the project. This is handy for a one-off move or a CI pipeline you already have. Check Cloudflare's docs for current Wrangler flags; Cloudflare has also been steering new static projects toward Workers with static assets, and the same &lt;code&gt;dist/&lt;/code&gt; folder works there too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Forms on Pages
&lt;/h2&gt;

&lt;p&gt;A Vite project has no server to receive form posts. Each native Framer form posts its fields as JSON to an endpoint set at build time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;VITE_FORM_ENDPOINT&lt;/code&gt; for every form, or&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;VITE_FORM_&amp;lt;NAME&amp;gt;_ENDPOINT&lt;/code&gt; for one form (the README lists each form's variable).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Point it at a form service such as Formspree, Basin or Web3Forms. Because the value is compiled into the build, change it in the Pages settings and redeploy. If none is set, the form shows its error state and the browser console names the missing variable. The value &lt;code&gt;netlify&lt;/code&gt; is for Netlify Forms only, so don't use it on Cloudflare. More on the form setup is in &lt;a href="https://deframer.co/blog/forms-after-leaving-framer" rel="noopener noreferrer"&gt;forms after leaving Framer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you'd rather receive submissions on Cloudflare itself, you can write a Pages Function at a path such as &lt;code&gt;/api/contact&lt;/code&gt; and point the form's variable at it. That's your own code; Deframer doesn't generate it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Redirects and headers
&lt;/h2&gt;

&lt;p&gt;The redirects you set in Framer's site settings are in &lt;code&gt;public/_redirects&lt;/code&gt;, which Vite copies into &lt;code&gt;dist/&lt;/code&gt;. Pages reads it on deploy. Netlify-style &lt;code&gt;_redirects&lt;/code&gt; has no 307 or 308 in the file the converter writes, so temporary redirects are 302 and permanent ones 301.&lt;/p&gt;

&lt;p&gt;To add response headers (for example security headers), create &lt;code&gt;public/_headers&lt;/code&gt; yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/*
  X-Content-Type-Options: nosniff
  Referrer-Policy: strict-origin-when-cross-origin
  X-Frame-Options: DENY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A full set, including a Content Security Policy that allows your Custom Code scripts, is in &lt;a href="https://deframer.co/blog/security-headers-for-a-self-hosted-framer-site" rel="noopener noreferrer"&gt;security headers for a self-hosted Framer site&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Move the domain
&lt;/h2&gt;

&lt;p&gt;If your domain's DNS is already on Cloudflare, adding it to the Pages project under Custom domains creates the record for you. If the DNS is elsewhere, Pages shows the &lt;code&gt;CNAME&lt;/code&gt; to add; for an apex domain on another provider, Cloudflare's docs explain the options, and moving the zone to Cloudflare is the simplest.&lt;/p&gt;

&lt;p&gt;Before switching:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Lower the TTL on the records you'll change a day ahead.&lt;/li&gt;
&lt;li&gt;Update the domain in &lt;code&gt;public/robots.txt&lt;/code&gt; and &lt;code&gt;public/sitemap.xml&lt;/code&gt; if it changes.&lt;/li&gt;
&lt;li&gt;Test the &lt;code&gt;*.pages.dev&lt;/code&gt; address end to end.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After switching, remove the domain from your Framer project. &lt;a href="https://deframer.co/blog/move-a-framer-domain-without-downtime" rel="noopener noreferrer"&gt;Moving a domain off Framer without downtime&lt;/a&gt; has the full checklist and rollback steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits of a static site
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;New CMS items need a new conversion.&lt;/strong&gt; Items known at conversion each have their page. One added in Framer later renders in the browser from &lt;code&gt;404.html&lt;/code&gt; with a 404 status until you convert again. If the content keeps changing, edit it in the project's JSON instead, or connect a headless CMS (&lt;a href="https://deframer.co/blog/adding-a-headless-cms-to-a-converted-framer-site" rel="noopener noreferrer"&gt;adding a headless CMS&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split tests don't run.&lt;/strong&gt; A static site has no server to pick variants, so visitors see each tested page's original. A Next.js project keeps them; see &lt;a href="https://deframer.co/blog/framer-split-tests-after-conversion" rel="noopener noreferrer"&gt;Framer A/B tests after conversion&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pages limits.&lt;/strong&gt; Cloudflare documents limits on file count, file size and builds per month. Large sites with assets in the project should check them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What about Next.js on Cloudflare?
&lt;/h2&gt;

&lt;p&gt;A converted Next.js project can run on Cloudflare Workers through the OpenNext adapter (&lt;code&gt;@opennextjs/cloudflare&lt;/code&gt;), which needs a Wrangler config and an OpenNext config you add. The steps are in &lt;a href="https://deframer.co/blog/deploy-converted-framer-site-vercel-netlify-cloudflare-fly" rel="noopener noreferrer"&gt;deploying a converted Framer site&lt;/a&gt;. Confirm in the adapter's docs that the version you install supports the Next.js version in the project, and test &lt;code&gt;proxy.ts&lt;/code&gt; behavior (URL forms, 404s) before you switch the domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can I host a Framer site on Cloudflare Pages for free?
&lt;/h3&gt;

&lt;p&gt;Cloudflare Pages has a free plan suitable for many static sites. Converting is free; downloading the code is 1 credit with verification. Check Cloudflare's current limits.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why can't I just upload my Framer site to Pages?
&lt;/h3&gt;

&lt;p&gt;Framer doesn't export a site's files. Convert the published site to a Vite project, build it, and upload the resulting &lt;code&gt;dist/&lt;/code&gt; folder.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do my Framer redirects work on Cloudflare Pages?
&lt;/h3&gt;

&lt;p&gt;Yes. The Vite project writes them to &lt;code&gt;public/_redirects&lt;/code&gt;, which Pages applies.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do forms work without a server?
&lt;/h3&gt;

&lt;p&gt;They post to a form service you choose with &lt;code&gt;VITE_FORM_ENDPOINT&lt;/code&gt;, or to a Pages Function you write.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will the site still depend on Framer?
&lt;/h3&gt;

&lt;p&gt;The code doesn't. With the default asset setting, images and fonts still load from Framer's CDN; choose "Assets in the project" to serve them from Cloudflare.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://deframer.co/blog/host-a-framer-site-on-cloudflare-pages" rel="noopener noreferrer"&gt;Deframer blog&lt;/a&gt;. Deframer converts a published Framer site into Next.js, Astro, React Router, TanStack Start, Vite, Nuxt or static HTML code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>framer</category>
      <category>cloudflare</category>
      <category>webdev</category>
      <category>hosting</category>
    </item>
  </channel>
</rss>
