<?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: Nathan M</title>
    <description>The latest articles on DEV Community by Nathan M (@nathanmcmullendev).</description>
    <link>https://dev.to/nathanmcmullendev</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3727216%2Fcb92f18f-9ca6-4739-8cce-e63be9d9c447.png</url>
      <title>DEV Community: Nathan M</title>
      <link>https://dev.to/nathanmcmullendev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nathanmcmullendev"/>
    <language>en</language>
    <item>
      <title>I replaced a $99/month headless CMS with Shopify's built-in Metaobjects — here's the full starter</title>
      <dc:creator>Nathan M</dc:creator>
      <pubDate>Sat, 07 Mar 2026 21:12:03 +0000</pubDate>
      <link>https://dev.to/nathanmcmullendev/i-replaced-a-99month-headless-cms-with-shopifys-built-in-metaobjects-heres-the-full-starter-19eb</link>
      <guid>https://dev.to/nathanmcmullendev/i-replaced-a-99month-headless-cms-with-shopifys-built-in-metaobjects-heres-the-full-starter-19eb</guid>
      <description>&lt;p&gt;Every Hydrogen tutorial eventually hits the same wall.&lt;/p&gt;

&lt;p&gt;You've got your storefront working. Products loading. Cart functional. Then the tutorial says:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"For content management, add Sanity."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Or Contentful. Or Builder.io. The cheapest plan starts at $99/month. You haven't made a single sale yet.&lt;/p&gt;

&lt;p&gt;There's a better way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Metaobjects: The free CMS already inside Shopify
&lt;/h2&gt;

&lt;p&gt;Metaobjects are Shopify's native custom data type. They live in the same admin where you manage products. Free, forever, no extra API keys, no third-party login.&lt;/p&gt;

&lt;p&gt;The pattern is simple:&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Sections&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;SECTIONS_FRAGMENT&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./sections&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// In your route loader&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;metaobject&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="nx"&gt;storefront&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ROUTE_QUERY&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Renders CMS-driven sections&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Sections&lt;/span&gt; &lt;span class="na"&gt;sections&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;metaobject&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your content editors work entirely inside Shopify admin. No new tool to learn. No monthly bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A complete Hydrogen starter built around this pattern.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;14 CMS-driven section types:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hero&lt;/td&gt;
&lt;td&gt;Hero Slider&lt;/td&gt;
&lt;td&gt;Featured Products&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Collection Grid&lt;/td&gt;
&lt;td&gt;Rich Text&lt;/td&gt;
&lt;td&gt;Image + Text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Video&lt;/td&gt;
&lt;td&gt;Testimonials&lt;/td&gt;
&lt;td&gt;Logos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FAQ&lt;/td&gt;
&lt;td&gt;Features&lt;/td&gt;
&lt;td&gt;Banner&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Countdown&lt;/td&gt;
&lt;td&gt;Newsletter&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Full store features:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cart, wishlist, search, collections, product pages&lt;/li&gt;
&lt;li&gt;Works with &lt;a href="https://mock.shop" rel="noopener noreferrer"&gt;mock.shop&lt;/a&gt; out of the box — no Shopify account needed&lt;/li&gt;
&lt;li&gt;Pre-configured Vercel deployment — live in 90 seconds&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;One command to start:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx degit nathanmcmullendev/hydrogen-mockshop-clone my-store
&lt;span class="nb"&gt;cd &lt;/span&gt;my-store &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Deploy to Vercel:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vercel
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why Metaobjects instead of a headless CMS?
&lt;/h2&gt;

&lt;p&gt;The standard Hydrogen + Sanity setup costs $99/month minimum before launch. For an agency building client stores, that's overhead on every project. For an indie developer, that's a real barrier to shipping.&lt;/p&gt;

&lt;p&gt;Metaobjects eliminate that entirely:&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;Sanity / Contentful&lt;/th&gt;
&lt;th&gt;Metaobjects&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;$99–$300/month&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Login&lt;/td&gt;
&lt;td&gt;Separate service&lt;/td&gt;
&lt;td&gt;Inside Shopify admin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API keys&lt;/td&gt;
&lt;td&gt;Extra setup&lt;/td&gt;
&lt;td&gt;Already configured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Learning curve&lt;/td&gt;
&lt;td&gt;New tool&lt;/td&gt;
&lt;td&gt;Same admin as products&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same functionality. Zero extra cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  How content management works
&lt;/h2&gt;

&lt;p&gt;Instead of writing to an external CMS, your content editors create and edit Metaobjects directly in Shopify:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Shopify Admin → Content → Metaobjects&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Create a page metaobject&lt;/li&gt;
&lt;li&gt;Add sections (Hero, Featured Products, etc.)&lt;/li&gt;
&lt;li&gt;Save — changes are live instantly&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No deployments needed for content updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect your own store (optional)
&lt;/h2&gt;

&lt;p&gt;The starter works with mock.shop by default. To connect your real Shopify store:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PUBLIC_STOREFRONT_API_TOKEN=your_token_here
PUBLIC_STORE_DOMAIN=yourstore.myshopify.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. One env file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Landing page:&lt;/strong&gt; &lt;a href="https://helium-store.vercel.app" rel="noopener noreferrer"&gt;helium-store.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://hydrogen-vercel-fresh-self.vercel.app" rel="noopener noreferrer"&gt;hydrogen-vercel-fresh-self.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repo:&lt;/strong&gt; &lt;a href="https://github.com/nathanmcmullendev/hydrogen-mockshop-clone" rel="noopener noreferrer"&gt;github.com/nathanmcmullendev/hydrogen-mockshop-clone&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed. Open source. Built for anyone learning or building with Hydrogen.&lt;/p&gt;




&lt;p&gt;Happy to answer questions about the Metaobjects pattern or section architecture in the comments. If it saves you setup time, a ⭐ on the repo is always appreciated.&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>react</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Shopify Dev Starter Kit - Store Checkout with a Dual-Mode Architecture</title>
      <dc:creator>Nathan M</dc:creator>
      <pubDate>Thu, 22 Jan 2026 23:47:12 +0000</pubDate>
      <link>https://dev.to/nathanmcmullendev/looking-for-feedback-on-my-headless-shopify-architecture-open-source-5dcc</link>
      <guid>https://dev.to/nathanmcmullendev/looking-for-feedback-on-my-headless-shopify-architecture-open-source-5dcc</guid>
      <description>&lt;h1&gt;
  
  
  Solving Shopify's Dev Store Checkout Problem with a Dual-Mode Architecture
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Shopify dev stores are password-protected, which blocks checkout testing entirely. I built a starter kit with Stripe fallback for development, native Shopify checkout for production. Looking for architecture feedback before I keep building.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;If you've built a headless Shopify store, you've probably hit this wall:&lt;/p&gt;

&lt;p&gt;You spin up a free development store. You connect the Storefront API. Products load beautifully. You build your cart. Then you try to test checkout and... password page.&lt;/p&gt;

&lt;p&gt;Shopify dev stores are permanently password-protected, and that protection extends to the hosted checkout. When your headless frontend redirects to &lt;code&gt;checkoutUrl&lt;/code&gt;, visitors (including you) hit the password wall instead of completing a purchase.&lt;/p&gt;

&lt;p&gt;This means you can't:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Demo a complete purchase flow to a client&lt;/li&gt;
&lt;li&gt;Test your order creation webhooks&lt;/li&gt;
&lt;li&gt;Verify fulfillment integrations work&lt;/li&gt;
&lt;li&gt;Show investors/stakeholders a working prototype&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hydrogen has the same limitation — Shopify's own docs acknowledge it: &lt;em&gt;"Online store password protection prevents Hydrogen checkouts."&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;The solution is dual-mode checkout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Development: Cart → Stripe Elements → Payment Intent → Admin API → Order
Production:  Cart → Shopify Checkout URL → Native Hosted Checkout → Order
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One environment variable switches between them:&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="c"&gt;# Development (works on free dev stores)&lt;/span&gt;
&lt;span class="nv"&gt;VITE_CHECKOUT_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;stripe

&lt;span class="c"&gt;# Production (native Shopify checkout)&lt;/span&gt;
&lt;span class="nv"&gt;VITE_CHECKOUT_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;shopify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How Stripe Mode Works
&lt;/h3&gt;

&lt;p&gt;Instead of redirecting to Shopify's hosted checkout, the Stripe path:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Collects payment via Stripe Elements (full UI control)&lt;/li&gt;
&lt;li&gt;Creates a PaymentIntent server-side&lt;/li&gt;
&lt;li&gt;On success, creates a draft order via Admin API&lt;/li&gt;
&lt;li&gt;Completes the draft order (marks as paid)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The result is a real order in Shopify Admin — inventory decrements, webhooks fire, fulfillment workflows trigger. Indistinguishable from a checkout-created order.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Not Just Use Stripe Forever?
&lt;/h3&gt;

&lt;p&gt;You could, but Shopify's native checkout handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shop Pay, Apple Pay, Google Pay&lt;/li&gt;
&lt;li&gt;Shopify's fraud analysis&lt;/li&gt;
&lt;li&gt;Automatic tax calculation&lt;/li&gt;
&lt;li&gt;Their checkout conversion optimizations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For production stores with a paid Shopify plan, native checkout is the right choice. The Stripe path exists purely to unblock development and demos.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Actually Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; React 18, TypeScript (strict), React Router 7, Tailwind, Vite&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Shopify Storefront API integration (products, collections, variants)&lt;/li&gt;
&lt;li&gt;SSR-safe cart persistence (no hydration errors)&lt;/li&gt;
&lt;li&gt;Stripe Elements checkout with Admin API order creation&lt;/li&gt;
&lt;li&gt;Cloudinary CDN for image optimization&lt;/li&gt;
&lt;li&gt;347 tests, 89% coverage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://ecommerce-react-shopify.vercel.app" rel="noopener noreferrer"&gt;ecommerce-react-shopify.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test card:&lt;/strong&gt; &lt;code&gt;4242 4242 4242 4242&lt;/code&gt; (any future expiry, any CVC)&lt;/p&gt;




&lt;h2&gt;
  
  
  Where I Want Feedback
&lt;/h2&gt;

&lt;p&gt;I'm self-taught and working solo on this, so I'd genuinely appreciate experienced eyes on:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Cart Context Pattern
&lt;/h3&gt;

&lt;p&gt;I'm using &lt;code&gt;useSyncExternalStore&lt;/code&gt; for SSR-safe localStorage persistence. It works, but I'm not sure if it's overengineered. The implementation is in &lt;a href="https://github.com/nathanmcmullendev/ecommerce-react/blob/main/src/lib/createPersistedStore.ts" rel="noopener noreferrer"&gt;&lt;code&gt;src/lib/createPersistedStore.ts&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Checkout Flow Security
&lt;/h3&gt;

&lt;p&gt;Payment verification happens server-side before order creation, but are there edge cases I'm missing? The logic is in &lt;a href="https://github.com/nathanmcmullendev/ecommerce-react/blob/main/app/routes/api.create-order.ts" rel="noopener noreferrer"&gt;&lt;code&gt;app/routes/api.create-order.ts&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Project Structure
&lt;/h3&gt;

&lt;p&gt;Does the file organization make sense, or is anything non-obvious?&lt;/p&gt;




&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repo:&lt;/strong&gt; &lt;a href="https://github.com/nathanmcmullendev/ecommerce-react" rel="noopener noreferrer"&gt;github.com/nathanmcmullendev/ecommerce-react&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Setup Guide:&lt;/strong&gt; &lt;a href="https://github.com/nathanmcmullendev/ecommerce-react/blob/main/docs/guides/SETUP-CHECKLIST.md" rel="noopener noreferrer"&gt;docs/guides/SETUP-CHECKLIST.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checkout Docs:&lt;/strong&gt; &lt;a href="https://github.com/nathanmcmullendev/ecommerce-react/blob/main/docs/guides/CHECKOUT-MODES.md" rel="noopener noreferrer"&gt;docs/guides/CHECKOUT-MODES.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Roast it or tell me it's fine. Either helps.&lt;/p&gt;

</description>
      <category>react</category>
      <category>typescript</category>
      <category>shopify</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
