<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Muhammad Moiz – Building Production-Ready Apps]]></title><description><![CDATA[Practical guides on making AI-built apps production-ready: Supabase security, Next.js, SaaS billing and offline-first apps, by Muhammad Moiz]]></description><link>https://muhammadmoiz.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/616026ef8e8734462af5e439/d80ee95a-9cdd-40eb-b5a3-2e4ac309ac9f.jpg</url><title>Muhammad Moiz – Building Production-Ready Apps</title><link>https://muhammadmoiz.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 09:50:30 GMT</lastBuildDate><atom:link href="https://muhammadmoiz.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Best AI App Builders in 2026, Reviewed by a Developer]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. The best AI app builder in 2026 depends on what happens after the demo. For a founder who wants a working web app…]]></description><link>https://muhammadmoiz.hashnode.dev/best-ai-app-builders-in-2026-reviewed-by-a-developer</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/best-ai-app-builders-in-2026-reviewed-by-a-developer</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Tue, 24 Nov 2026 06:23:29 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/best-ai-app-builder"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>The best AI app builder in 2026 depends on what happens after the demo. For a founder who wants a working web app with a login and a database, Lovable is still the most complete all-in-one option. Bolt and v0 are strong for fast front ends, Replit suits people who want the whole app hosted in one place, and Cursor is the pick once a developer is involved. What separates them for production is code ownership, the backend, security tooling and SEO, not how pretty the first screen looks.</p>
<p>Part of my work is taking over apps built with these tools, usually when a founder has hit a wall. This guide compares them on the things that decide whether an app survives real users. All pricing and plan details below were checked on the official pages in November 2026.</p>
<h2>What makes an AI app builder good for production?</h2>
<p>Most reviews score these tools on how quickly they turn a prompt into a nice-looking page. That matters for a first demo, but it says very little about month three, when you have paying users, a bug in the checkout and a request from an investor to see the code. These are the five questions I ask about any builder:</p>
<ol>
<li><strong>Can you own and export the code?</strong> If the tool disappears or the price changes, you need a Git repository you control.</li>
<li><strong>What backend do you get?</strong> A real app needs a database, authentication, file storage and server-side code for things like payment webhooks.</li>
<li><strong>What security help is built in?</strong> AI-generated apps very often ship with weak database access rules. A builder that warns you about this is worth more than one that does not.</li>
<li><strong>Will Google index it?</strong> Many builders output a client-rendered React app, which is a weak starting point for SEO.</li>
<li><strong>How predictable is the pricing?</strong> Almost every tool now bills in credits or tokens, so heavy iteration can cost more than the headline price.</li>
</ol>
<h2>The best AI app builders compared</h2>
<table>
<thead>
<tr>
<th>Tool</th>
<th>Entry paid plan (Nov 2026)</th>
<th>Code ownership</th>
<th>Backend</th>
<th>Built-in security help</th>
<th>Best for</th>
</tr>
</thead>
<tbody><tr>
<td>Lovable</td>
<td>$25/month (Pro)</td>
<td>Two-way GitHub sync on all plans</td>
<td>Lovable Cloud (built on Supabase) or your own Supabase</td>
<td>Quick scan on publish, manual deep scan</td>
<td>Non-technical founders building a full app</td>
</tr>
<tr>
<td>Bolt</td>
<td>$25/month (Pro)</td>
<td>GitHub integration with automatic commits</td>
<td>Databases included on all plans</td>
<td>Not listed on pricing page</td>
<td>Fast prototypes and front ends</td>
</tr>
<tr>
<td>v0</td>
<td>$30/user/month (Plus)</td>
<td>GitHub sync, pull requests</td>
<td>Connects to your APIs and databases</td>
<td>Not listed on pricing page</td>
<td>Next.js and React UI work</td>
</tr>
<tr>
<td>Replit</td>
<td>$20/month (Core)</td>
<td>GitHub import documented; export less clear</td>
<td>Agent configures databases and deployment</td>
<td>Not covered in the pages I read</td>
<td>All-in-one hosted apps</td>
</tr>
<tr>
<td>Cursor</td>
<td>$30/month (Premium, new customers)</td>
<td>Your own local repo</td>
<td>Whatever you build</td>
<td>Up to you</td>
<td>Developers and technical founders</td>
</tr>
</tbody></table>
<p>Prices change often, so treat the table as a snapshot. Free tiers exist for Lovable, Bolt, v0 and Cursor, but they are capped tightly enough that you will feel the limit within a few sessions of serious building.</p>
<img src="https://images.unsplash.com/photo-1534665482403-a909d0d97c67?w=1200&amp;q=80" alt="A developer working on a laptop at a desk" style="display:block;margin:0 auto" />

<p><em>Photo: Danial Igdery on Unsplash</em></p>
<h2>Lovable: the most complete for non-technical founders</h2>
<p>Lovable's Pro and Business plans are $25 and $50 a month, each with 100 monthly credits, and the free plan gives a small daily allowance of build credits. Its biggest production advantage is the backend. Lovable Cloud gives you a database, user authentication, file storage, realtime updates and edge functions, and the docs say it runs on Supabase's open-source foundation. You can also connect your own Supabase project instead.</p>
<p>Code ownership is good. The GitHub integration is available on every plan and syncs both ways: edits in Lovable land in your repo, and commits pushed to the active branch flow back into Lovable. If you disconnect, the repository stays in your GitHub account with its history.</p>
<p>Security tooling has improved a lot. A quick scan runs automatically when you publish and flags tables without per-record access control, policies that let everyone through and vulnerable npm packages. A deeper scan that reviews your application code has to be started by hand, and the workspace-wide Security center is limited to Business and Enterprise. That is a real step forward, but a scan is not an audit. A common gap is rules that technically exist but do not match how the business actually works. I explain that problem in detail in <a href="https://muhammadmoiz.dev/blog/supabase-rls">Supabase RLS explained</a>.</p>
<p>The weak spot is SEO. If organic search matters to you, read <a href="https://muhammadmoiz.dev/blog/lovable-seo">why Lovable sites often don't show up on Google</a> before you commit.</p>
<h2>Bolt: fast prototypes with generous token limits</h2>
<p>Bolt's free plan gives 1 million tokens a month with a 300K daily cap, and Pro starts at $25 a month with 10 million tokens, no daily limit and rollover of unused tokens. Hosting is included on every plan, with Bolt branding removed on Pro, and databases are included too.</p>
<p>Bolt's GitHub integration is solid in practice: it commits automatically every time a change does not break the project and checks GitHub roughly every 30 seconds for outside changes. Merging happens through pull requests on GitHub, which is exactly how a developer would want it.</p>
<p>Where Bolt falls short for production is guidance. The pricing page does not mention any security scanning, so the responsibility for access rules, secrets and input validation sits with you. That is fine if you know what to look for, and risky if you do not.</p>
<h2>v0: best for React and Next.js front ends</h2>
<p>v0 comes from Vercel, and it shows. It works with Next.js, Tailwind and shadcn/ui, deploys to Vercel in one click and can open pull requests for review. The free plan is limited to 7 messages a day, and Plus is $30 per user per month with $30 of included credits, plus small daily login credits.</p>
<p>For a founder, v0 is the tool most likely to produce code that a professional Next.js developer will happily keep working on. Because it is built around Next.js, you also start from a framework that can render pages on the server, which is a much better foundation for SEO than a pure client-side app. The trade-off is that v0 expects you to bring your own backend, so it is less of an all-in-one product than Lovable.</p>
<h2>Replit: everything in one hosted place</h2>
<p>Replit's Core plan is $20 a month ($18 billed yearly) and Pro is $100 a month, with the price acting largely as credit towards AI models. Replit Agent plans the build, sets up the project, configures databases, tests its own work and handles deployment, with checkpoints you can roll back to.</p>
<p>That all-in-one model is convenient for internal tools and early experiments. For a product you might hand to an outside developer later, check the export path early. The docs I read clearly explain importing from GitHub, but say little about keeping an app linked to a repository for ongoing sync. Confirm how you would move off Replit before you build anything important there.</p>
<h2>Cursor: the choice once a developer is involved</h2>
<p>Cursor is a different kind of tool. It is a code editor with an AI agent, not a hosted builder, so there is no built-in backend or hosting. You work in your own repository, which means code ownership is never a question.</p>
<p>Pricing changed recently. New customers now buy Cursor through The X Subscription, which bundles Cursor with Grok and X: Plus is $8 a month, Premium $30, Super $100 and Ultra $200, with usage that refreshes weekly. Existing subscribers can stay on legacy plans such as Pro at $20 or Pro+ at $60. Third-party models on Premium and above are billed separately at API list price, so heavy agent use can add up.</p>
<p>Cursor is the right choice when the app needs custom business logic, a careful database design or integrations the hosted builders struggle with. It is also a natural next step when a developer takes over an app that started in Lovable or Bolt. I compared the hands-on experience of these tools in <a href="https://muhammadmoiz.dev/blog/lovable-vs-replit">Lovable vs Replit vs Bolt vs Cursor</a>, and if you are thinking of leaving your current builder, <a href="https://muhammadmoiz.dev/blog/lovable-alternatives">these Lovable alternatives</a> cover more options.</p>
<h2>How to choose: a quick checklist</h2>
<p>Run through this before you pay for a plan:</p>
<ul>
<li><strong>Connect GitHub on day one.</strong> Whatever tool you pick, make sure the code lives in a repository you own from the first session.</li>
<li><strong>Decide where your data lives.</strong> Prefer a backend you can access directly, like Supabase or your own database, over one you can only reach through the builder.</li>
<li><strong>Run every scan the tool offers, then check access rules yourself.</strong> Try reading another user's data while logged in as a test user.</li>
<li><strong>Check how pages render if you need search traffic.</strong> View the page source; if the content is missing, Google may struggle too.</li>
<li><strong>Keep secrets out of the front end.</strong> API keys for payments, email or AI models belong in server-side functions.</li>
<li><strong>Watch credit usage for a week</strong> before assuming the entry plan is enough.</li>
<li><strong>Plan the handover.</strong> Ask yourself whether a developer could clone the repo and run it locally without the builder.</li>
</ul>
<blockquote>
<p><strong>Rule of thumb:</strong> If the app will take payments or store personal data, budget for a human review before launch, no matter which builder you used.</p>
</blockquote>
<h2>What this means for your business</h2>
<p>AI app builders are now good enough to get a real product in front of customers. My Shahi Bulawa project is an example: an AI-built wedding card store that went live in a month and sold from its first month.</p>
<p>The common pattern, though, is this. The tool gets you to a working demo quickly, and the hard parts arrive later: access rules that leak data, payment webhooks that fail silently, pages Google cannot read and a codebase nobody fully understands. Choosing a builder with good code ownership and a standard backend makes all of those easier to fix.</p>
<p>If your app is already live and you are not sure it is safe or ready for growth, that is what my <a href="https://muhammadmoiz.dev/services/ai-app-production-ready">AI app to production service</a> is for. If you only want an independent check first, a <a href="https://muhammadmoiz.dev/services/production-audit">production audit</a> gives you a prioritised list of what to fix.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://lovable.dev/pricing">Lovable pricing</a></li>
<li><a href="https://docs.lovable.dev/integrations/github">Lovable docs: GitHub integration</a></li>
<li><a href="https://docs.lovable.dev/integrations/cloud">Lovable docs: Lovable Cloud</a></li>
<li><a href="https://docs.lovable.dev/features/security">Lovable docs: Security</a></li>
<li><a href="https://bolt.new/pricing">Bolt pricing</a></li>
<li><a href="https://support.bolt.new/integrations/git">Bolt support: Git integration</a></li>
<li><a href="https://v0.app/pricing">v0 pricing</a></li>
<li><a href="https://v0.app/docs/introduction">v0 docs: Introduction</a></li>
<li><a href="https://replit.com/pricing">Replit pricing</a></li>
<li><a href="https://docs.replit.com/replitai/agent">Replit docs: Agent</a></li>
<li><a href="https://docs.replit.com/getting-started/quickstarts/import-from-github">Replit docs: Import from GitHub</a></li>
<li><a href="https://cursor.com/pricing">Cursor pricing</a></li>
<li><a href="https://cursor.com/help/account-and-billing/pricing">Cursor help: Pricing and plans</a></li>
<li>Cover photo: Arnold Francisca on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[IndexedDB in React: Offline-First Apps with WatermelonDB]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. IndexedDB is the browser's built-in database. It is the right place to keep the data a React app needs to keep…]]></description><link>https://muhammadmoiz.hashnode.dev/indexeddb-in-react-offline-first-apps-with-watermelondb</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/indexeddb-in-react-offline-first-apps-with-watermelondb</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Fri, 20 Nov 2026 06:24:25 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/indexeddb"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>IndexedDB is the browser's built-in database. It is the right place to keep the data a React app needs to keep working when the network drops. You can use it directly through a small wrapper like <code>idb</code> for simple caching. If you need relations, reactive queries and two-way sync with a server, put WatermelonDB on top of it. This tutorial walks through both approaches, with code you can adapt.</p>
<p>I used WatermelonDB on browser storage to build the offline-first data layer of Oscar, a restaurant and retail POS. A POS can't stop taking orders just because the Wi-Fi went down. The patterns below are the ones I'd reach for again. If you want the product-level story first, read <a href="https://muhammadmoiz.dev/blog/offline-first-pos-react">lessons from building an offline-first POS in React</a>. This post is the hands-on developer version.</p>
<h2>What is IndexedDB, and why not just use localStorage?</h2>
<p>IndexedDB is an asynchronous, transactional object store that ships with every modern browser. You don't define tables with fixed columns. Instead you create <strong>object stores</strong> that hold JavaScript objects identified by a key. You add <strong>indexes</strong> on the fields you want to search by, and you read or write inside <strong>transactions</strong>. Anything the structured clone algorithm can copy, including Blobs and files, can be stored. It also works inside Web Workers, so heavy database work can stay off the main thread.</p>
<p>localStorage feels easier, but it has two problems for offline apps:</p>
<table>
<thead>
<tr>
<th></th>
<th>localStorage</th>
<th>IndexedDB</th>
</tr>
</thead>
<tbody><tr>
<td>API style</td>
<td>Synchronous, blocks the main thread</td>
<td>Asynchronous, event or promise based</td>
</tr>
<tr>
<td>Data</td>
<td>Strings only</td>
<td>Structured objects, Blobs, files</td>
</tr>
<tr>
<td>Querying</td>
<td>Read by key only</td>
<td>Indexes, key ranges, cursors</td>
</tr>
<tr>
<td>Size</td>
<td>5 MiB per origin</td>
<td>A share of total disk (see below)</td>
</tr>
<tr>
<td>Transactions</td>
<td>None</td>
<td>Read-only and readwrite transactions</td>
</tr>
</tbody></table>
<p>The 5 MiB figure comes from MDN's storage quota guide. A product catalogue, a few days of orders and some images will pass that quickly. IndexedDB quotas are far larger. Chromium browsers allow an origin up to 60% of total disk. Recent Safari versions (macOS 14 and iOS 17 onward) allow about 60% for browser apps. Firefox gives best-effort storage the smaller of 10% of the disk or 10 GiB.</p>
<h2>How do you use IndexedDB in React without the boilerplate?</h2>
<p>The raw API is built on request objects and <code>onsuccess</code> callbacks, which is awkward in modern code. The <code>idb</code> library by Jake Archibald wraps it in promises and adds TypeScript types. It is tiny, and version 8.0.4 was the latest on npm when I checked in November 2026.</p>
<pre><code class="language-bash">npm install idb
</code></pre>
<p>Here is a small, typed data module for a list of orders:</p>
<pre><code class="language-ts">// db.ts
import { openDB, type DBSchema } from "idb";

interface ShopDB extends DBSchema {
  orders: {
    key: string;
    value: {
      id: string;
      status: "pending" | "paid";
      total: number;
      updatedAt: number;
    };
    indexes: { by_status: string };
  };
}

export const dbPromise = openDB&lt;ShopDB&gt;("shop", 1, {
  upgrade(db) {
    const store = db.createObjectStore("orders", { keyPath: "id" });
    store.createIndex("by_status", "status");
  },
});

export async function saveOrder(order: ShopDB["orders"]["value"]) {
  const db = await dbPromise;
  await db.put("orders", { ...order, updatedAt: Date.now() });
}

export async function pendingOrders() {
  const db = await dbPromise;
  return db.getAllFromIndex("orders", "by_status", "pending");
}
</code></pre>
<p>A few things are worth knowing:</p>
<ul>
<li><strong>The schema only changes in</strong> <code>upgrade</code><strong>.</strong> When you add a store or index, bump the version number and handle <code>oldVersion</code> inside <code>upgrade</code>. Never delete a store your users already have data in without migrating it.</li>
<li><strong>Generate IDs on the device.</strong> <code>crypto.randomUUID()</code> lets you create records offline without asking the server for an ID. It also makes duplicate detection easy later.</li>
<li><strong>Keep transactions short.</strong> A transaction closes once you stop giving it work, so don't <code>await</code> a network call in the middle of one.</li>
</ul>
<p>In a component, read the data inside an effect and store it in state:</p>
<pre><code class="language-tsx">import { useEffect, useState } from "react";
import { pendingOrders } from "./db";

export function PendingOrders() {
  const [orders, setOrders] = useState&lt;Awaited&lt;ReturnType&lt;typeof pendingOrders&gt;&gt;&gt;([]);

  useEffect(() =&gt; {
    pendingOrders().then(setOrders);
  }, []);

  return &lt;p&gt;{orders.length} orders waiting to sync&lt;/p&gt;;
}
</code></pre>
<p>This works well for caching and small offline features. It breaks down once your data has relations (an order with items, modifiers and payments) and many screens that must update the moment something changes. Then you are writing your own query layer, change tracking and sync protocol. That is what WatermelonDB already does.</p>
<img src="https://images.unsplash.com/photo-1506399558188-acca6f8cbf41?w=1200&amp;q=80" alt="Rows of black server racks in a data center" style="display:block;margin:0 auto" />

<p><em>Photo: imgix on Unsplash</em></p>
<h2>Setting up WatermelonDB on top of IndexedDB</h2>
<p>WatermelonDB is a reactive database for React and React Native. On the web it runs through its LokiJS adapter, which can save data incrementally to IndexedDB. The current npm release is 0.28.0.</p>
<pre><code class="language-bash">npm install @nozbe/watermelondb
</code></pre>
<p>It uses decorators for models, so your bundler needs the Babel decorators and class-properties plugins. The installation guide lists them. Start with a schema:</p>
<pre><code class="language-ts">// model/schema.ts
import { appSchema, tableSchema } from "@nozbe/watermelondb";

export const schema = appSchema({
  version: 1,
  tables: [
    tableSchema({
      name: "orders",
      columns: [
        { name: "status", type: "string", isIndexed: true },
        { name: "total", type: "number" },
        { name: "created_at", type: "number" },
      ],
    }),
    tableSchema({
      name: "order_items",
      columns: [
        { name: "order_id", type: "string", isIndexed: true },
        { name: "name", type: "string" },
        { name: "qty", type: "number" },
      ],
    }),
  ],
});
</code></pre>
<p>Then create the adapter and the database. The adapter options are where most of the production problems get solved, so don't skip them:</p>
<pre><code class="language-ts">// database.ts
import { Database } from "@nozbe/watermelondb";
import LokiJSAdapter from "@nozbe/watermelondb/adapters/lokijs";
import { schema } from "./model/schema";
import { migrations } from "./model/migrations";
import { Order, OrderItem } from "./model";

const adapter = new LokiJSAdapter({
  schema,
  migrations,
  dbName: "shop",
  useWebWorker: false,
  useIncrementalIndexedDB: true,
  onQuotaExceededError: () =&gt; showStorageFullBanner(),
  onSetUpError: () =&gt; offerReloadOrLogout(),
  extraIncrementalIDBOptions: {
    // Another tab overwrote this tab's data: sync now, warn if offline
    onDidOverwrite: () =&gt; syncNow(),
    // The database was deleted in another tab (e.g. logout)
    onversionchange: () =&gt; window.location.reload(),
  },
});

export const database = new Database({
  adapter,
  modelClasses: [Order, OrderItem],
});
</code></pre>
<p>The multi-tab handlers matter more than they look. Staff often have the same app open in two tabs. If you ignore those callbacks, one tab can quietly overwrite what the other wrote.</p>
<h3>Reading and writing records</h3>
<p>Every write goes through <code>database.write</code>, which keeps changes consistent:</p>
<pre><code class="language-ts">import { Q } from "@nozbe/watermelondb";

export async function createOrder(items: { name: string; qty: number }[]) {
  await database.write(async () =&gt; {
    const order = await database.get&lt;Order&gt;("orders").create((o) =&gt; {
      o.status = "pending";
      o.total = 0;
    });
    for (const item of items) {
      await database.get&lt;OrderItem&gt;("order_items").create((i) =&gt; {
        i.order.set(order);
        i.name = item.name;
        i.qty = item.qty;
      });
    }
  });
}

export const pendingQuery = () =&gt;
  database.get&lt;Order&gt;("orders").query(Q.where("status", "pending"));
</code></pre>
<p>The real benefit is that queries are observable. Call <code>pendingQuery().observe()</code> (or use the <code>withObservables</code> helper) and any component reading it re-renders when a matching record changes, whether a cashier made the change or a sync did. You stop passing refresh callbacks around.</p>
<p>For synced apps, delete with <code>markAsDeleted()</code> so the deletion reaches the server. Use <code>destroyPermanently()</code> only for data that never leaves the device.</p>
<h2>How does sync work between IndexedDB and your backend?</h2>
<p>WatermelonDB's <code>synchronize()</code> function needs two things from you:</p>
<ol>
<li><code>pullChanges({ lastPulledAt })</code> calls your API and returns <code>{ changes, timestamp }</code>. <code>changes</code> holds everything created, updated or deleted on the server since the last pull.</li>
<li><code>pushChanges({ changes })</code> sends local changes to your API. It must reject if the server fails to apply them.</li>
</ol>
<pre><code class="language-ts">import { synchronize } from "@nozbe/watermelondb/sync";

export async function syncNow() {
  await synchronize({
    database,
    migrationsEnabledAtVersion: 1,
    pullChanges: async ({ lastPulledAt, schemaVersion }) =&gt; {
      const res = await fetch(
        `/api/sync?since=${lastPulledAt ?? 0}&amp;schema=${schemaVersion}`,
      );
      if (!res.ok) throw new Error("Pull failed");
      return res.json(); // { changes, timestamp }
    },
    pushChanges: async ({ changes, lastPulledAt }) =&gt; {
      const res = await fetch(`/api/sync?last_pulled_at=${lastPulledAt}`, {
        method: "POST",
        body: JSON.stringify(changes),
      });
      if (!res.ok) throw new Error("Push failed");
    },
  });
}
</code></pre>
<p>The <code>changes</code> payload is grouped by table, with <code>created</code>, <code>updated</code> and <code>deleted</code> lists. Deleted records are sent as IDs only, and fields use the raw column names from your schema. Your backend has to keep its side of the deal:</p>
<ul>
<li><strong>Track changes on the server.</strong> Add a <code>last_modified</code> column to every table and set it on every write. Pull returns rows where it is newer than <code>lastPulledAt</code>. Ignore any value the client sends for it.</li>
<li><strong>Track deletions.</strong> Use a soft-delete flag or a table of deleted IDs. Otherwise devices never learn that a record is gone.</li>
<li><strong>Make push all-or-nothing.</strong> Apply the whole batch in one database transaction. If anything fails, roll back and return an error. A half-applied order is worse than one that retries.</li>
<li><strong>Reject stale pushes.</strong> If a record changed on the server after the client's <code>lastPulledAt</code>, fail the push. The client then pulls, resolves the conflict and pushes again. That's why the docs suggest retrying a failed sync once.</li>
<li><strong>Never run two syncs at once.</strong> Guard <code>syncNow()</code> with a flag. Call it when the app starts, on the browser's <code>online</code> event and on a timer.</li>
</ul>
<h2>Production checklist for an offline-first React app</h2>
<p>The tutorial code works on your laptop. These are the things that decide whether it survives real users:</p>
<ul>
<li><strong>Ask for persistent storage.</strong> By default, browser storage is "best effort" and can be evicted when the device is low on space. Call <code>navigator.storage.persist()</code> after the user has used the app for a while. Firefox shows a prompt. Chrome and Safari decide on their own based on how the user engages with the site.</li>
<li><strong>Watch your usage.</strong> <code>navigator.storage.estimate()</code> gives a rough figure for usage and quota. Use it to prune old records before you hit <code>QuotaExceededError</code>.</li>
<li><strong>Handle quota and setup errors in the UI</strong>, not just in the console.</li>
<li><strong>Plan for Safari's 7-day rule.</strong> With tracking prevention on, Safari deletes script-written storage for an origin the user hasn't interacted with in the last 7 days of browser use. Treat the local database as a cache of the server, never as the only copy.</li>
<li><strong>Remember that eviction is all-or-nothing.</strong> When an origin is evicted, its IndexedDB, Cache API and other storage go together. Sync often so there is little unsynced data at risk.</li>
<li><strong>Write migrations from day one</strong> and never delete old ones. Users may open an app version that is months old.</li>
<li><strong>Test the bad days.</strong> Turn off the network mid-order, open two tabs, fill the disk, log out in one tab. Those are the bugs real users will find.</li>
</ul>
<blockquote>
<p><strong>Don't store secrets in IndexedDB:</strong> Anything in IndexedDB can be read by any script running on your origin, including a malicious third-party script. Keep auth tokens short-lived and never cache data the current user isn't allowed to see.</p>
</blockquote>
<h2>What this means if you own the app</h2>
<p>Offline-first is a product decision before it is a technical one. If your users work in kitchens, warehouses, shops, field sites or anywhere with patchy signal, a "you're offline" screen costs you sales and trust. Building it properly means designing the data model and sync rules first, then the screens. Adding it to an existing app later is possible, but usually means reworking how every feature reads and writes data.</p>
<p>A rough guide:</p>
<ul>
<li><strong>Caching a few screens or drafts:</strong> IndexedDB with <code>idb</code> is enough.</li>
<li><strong>The whole app must keep working offline, with relational data and multiple devices:</strong> use WatermelonDB (or a similar sync engine) and budget real time for the backend sync endpoints.</li>
<li><strong>Not sure:</strong> start by listing what your users must be able to do with no connection. That list decides the architecture.</li>
</ul>
<p>If you're planning an app that has to work offline, or your current one loses data when the connection drops, see how I approach <a href="https://muhammadmoiz.dev/services/offline-first-apps">offline-first app development</a>. For point of sale systems specifically, there is also <a href="https://muhammadmoiz.dev/services/pos-development">POS development</a>.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">MDN: IndexedDB API</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria">MDN: Storage quotas and eviction criteria</a></li>
<li><a href="https://github.com/jakearchibald/idb">idb on GitHub</a> and <a href="https://www.npmjs.com/package/idb">npm</a></li>
<li><a href="https://watermelondb.dev/docs/Installation">WatermelonDB: Installation</a></li>
<li><a href="https://watermelondb.dev/docs/Setup">WatermelonDB: Setup (web adapter)</a></li>
<li><a href="https://watermelondb.dev/docs/CRUD">WatermelonDB: Create, Read, Update, Delete</a></li>
<li><a href="https://watermelondb.dev/docs/Sync/Frontend">WatermelonDB: Sync frontend</a></li>
<li><a href="https://watermelondb.dev/docs/Sync/Backend">WatermelonDB: Sync backend</a></li>
<li><a href="https://www.npmjs.com/package/@nozbe/watermelondb">WatermelonDB on npm</a></li>
<li>Cover photo: Mohammad Rahmani on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[How a Kitchen Display System Works (I Built One for a POS)]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. A kitchen display system for a restaurant is a set of screens in the kitchen that show orders in place of paper…]]></description><link>https://muhammadmoiz.hashnode.dev/how-a-kitchen-display-system-works-i-built-one-for-a-pos</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/how-a-kitchen-display-system-works-i-built-one-for-a-pos</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Thu, 19 Nov 2026 07:13:35 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/kitchen-display-system-for-restaurant"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>A kitchen display system for a restaurant is a set of screens in the kitchen that show orders in place of paper tickets. When a server or cashier rings up an order on the POS, the KDS sends each item to the screen of the station that cooks it. The cooks mark items as done, and the front of house sees the update straight away. I built one as part of Oscar, an offline-first restaurant POS, so this guide covers how a KDS works and what decides whether it helps or gets in the way.</p>
<h2>What is a kitchen display system?</h2>
<p>Without a KDS, a ticket prints in the kitchen, someone reads it out, and it gets pinned to a rail. A KDS replaces that rail with a screen. Each order shows up as a card with its items, modifiers ("no onions", "extra spicy"), table number or order type, and a timer showing how long it has been waiting.</p>
<p>A typical setup has three parts:</p>
<ul>
<li><strong>The POS</strong>, where the order is created. Orders can also arrive from online ordering, kiosks, QR menus or delivery apps, as long as they feed into the same system.</li>
<li><strong>Prep station screens</strong>, one per station (grill, fryer, cold side, bar), showing only the items that station makes.</li>
<li><strong>An expediter screen</strong> (often called "expo"), showing the whole order so one person can check it is complete before it goes out.</li>
</ul>
<p>Staff move orders along by tapping the screen or pressing a "bump bar", which is a small physical keypad that survives grease and wet hands better than a touchscreen.</p>
<h2>How does a KDS work with a restaurant POS?</h2>
<p>The KDS is only as useful as its link to the POS. Here is the life of a single order:</p>
<ol>
<li><strong>Order entry.</strong> A cashier rings up two burgers, fries and a lemonade for table 7.</li>
<li><strong>Routing.</strong> Each menu item has one or more prep stations assigned. The burgers go to the grill screen, the fries to the fryer, the lemonade to the bar.</li>
<li><strong>Display.</strong> Each station sees only its own items, while expo sees the full order with a status for each line.</li>
<li><strong>Bumping.</strong> When the grill finishes, the cook bumps the burgers. Expo sees them turn ready.</li>
<li><strong>Completion.</strong> Once every line is ready, expo bumps the order. The POS marks it ready, and in some setups a pickup screen or text message tells the customer.</li>
<li><strong>Reporting.</strong> Timestamps from each step feed reports on ticket times and slow stations.</li>
</ol>
<p>Routing is the step most people underestimate. In Toast's documentation, for example, prep stations are assigned at the menu or menu group level and inherited by the items inside, with overrides per item. Each station can send to its own screen and expo, to expo only, or to the station only (a bar outside the kitchen is the usual example). That kind of setting decides whether your expo screen is useful or flooded.</p>
<img src="https://images.unsplash.com/photo-1721637713270-5470ea1d6389?w=1200&amp;q=80" alt="A team of chefs working side by side at prep stations in a restaurant kitchen" style="display:block;margin:0 auto" />

<p><em>Photo: JC Gellidon on Unsplash</em></p>
<h3>What a KDS order looks like as data</h3>
<p>If you are building a KDS rather than buying one, the data model matters more than the screens. Here is a simplified version of how I'd model it, written for this post:</p>
<pre><code class="language-ts">type Station = "grill" | "fryer" | "cold" | "bar";
type LineStatus = "queued" | "cooking" | "ready" | "voided";

interface OrderLine {
  id: string;
  itemName: string;
  modifiers: string[];
  stations: Station[];      // copied from the menu item at order time
  status: LineStatus;
  bumpedAt?: number;
}

interface KitchenOrder {
  id: string;
  type: "dine-in" | "takeaway" | "delivery";
  table?: string;
  createdAt: number;
  lines: OrderLine[];
}

// What a single station screen should show
function linesForStation(order: KitchenOrder, station: Station) {
  return order.lines.filter(
    (line) =&gt; line.stations.includes(station) &amp;&amp; line.status !== "voided"
  );
}

// Expo can bump the order only when every live line is ready
function isOrderReady(order: KitchenOrder) {
  return order.lines
    .filter((line) =&gt; line.status !== "voided")
    .every((line) =&gt; line.status === "ready");
}
</code></pre>
<p>Two details in there save real pain. Station assignments are copied onto the line when the order is placed, so changing the menu mid-shift doesn't reroute orders already in the kitchen. And voided lines stay in the data with a status instead of being deleted, so the cook who already started on an item can see it was cancelled.</p>
<h2>How I built the KDS in Oscar</h2>
<p>Oscar is an offline-first POS for restaurants and retail. The kitchen display was one part of it, and the goal was to get rid of paper tickets and the constant walking between the floor and the kitchen.</p>
<p>The flow works like this. A cashier punches an order (dine-in, takeaway or delivery), and it appears on the kitchen screen immediately, pushed over WebSockets. Kitchen staff update the preparation status on their screen, and front-of-house staff see the change right away, so nobody has to walk back to ask whether table 4's food is ready.</p>
<p>Printing still has a place. Oscar uses QZ Tray to talk to printers: receipts print at the counter, kitchen tickets go to the kitchen and drink orders go to the bar. Many restaurants want screens and paper side by side, at least at first.</p>
<p>The data sits in a local browser database (WatermelonDB), so the POS keeps taking orders without internet and syncs to the Django backend when the connection comes back. I wrote more about that approach in <a href="https://muhammadmoiz.dev/blog/offline-first-pos-react">Offline-First POS: Lessons From Building Oscar in React</a>, and the full project is in the <a href="https://muhammadmoiz.dev/work/oscar-pos">Oscar POS case study</a>.</p>
<h2>KDS vs printed tickets: which is better?</h2>
<p>Neither wins for every kitchen. Here is how they compare in practice:</p>
<table>
<thead>
<tr>
<th></th>
<th>Printed tickets</th>
<th>Kitchen display system</th>
</tr>
</thead>
<tbody><tr>
<td>Setup</td>
<td>Thermal printer per station</td>
<td>Screen per station, plus mounts and network</td>
</tr>
<tr>
<td>Order changes</td>
<td>Reprint or shout across the kitchen</td>
<td>Card updates on screen, voids are visible</td>
</tr>
<tr>
<td>Routing to stations</td>
<td>One ticket per printer</td>
<td>Per item, with expo seeing the whole order</td>
</tr>
<tr>
<td>Timing data</td>
<td>None</td>
<td>Ticket times per order and per station</td>
</tr>
<tr>
<td>Internet or network outage</td>
<td>Keeps printing if the POS can reach the printer</td>
<td>Depends on how the system handles offline mode</td>
</tr>
<tr>
<td>Running costs</td>
<td>Paper and printer upkeep</td>
<td>Usually a monthly fee per screen plus hardware</td>
</tr>
<tr>
<td>Best fit</td>
<td>Small menus, low volume</td>
<td>Multiple stations, high volume, lots of modifiers</td>
</tr>
</tbody></table>
<p>Merchant Maverick notes that most KDS products charge a monthly software fee per screen on top of the hardware, and that a KDS may not pay off for kitchens with little space or low order volume. That matches what you would expect: a two-person kitchen doing 40 covers a night gets less from routing and reports than a busy kitchen with five stations.</p>
<h2>What happens when the internet goes down?</h2>
<p>This is the question restaurant owners should ask every vendor, because a dead kitchen screen on a Friday night costs real money.</p>
<p>Cloud-based systems handle it in different ways. Toast's documentation is a good example of how layered it gets. With a local hub device on the same network, orders placed in the restaurant still reach the kitchen screens during an internet or cloud outage. Online orders, though, are not received until the connection returns, and some actions (such as course tickets fired from the expo screen) don't print in that mode. Without an eligible hub, the devices fall back to a more limited offline mode, where tickets can go to a backup printer if the restaurant has set that up.</p>
<p>The lesson is general, not specific to one vendor: "works offline" can mean very different things. When you evaluate a KDS, ask:</p>
<ul>
<li>Do in-house orders still reach the kitchen screens without internet?</li>
<li>What happens to online and delivery orders during the outage, and are they delayed or lost?</li>
<li>Is there an automatic fallback to printed tickets?</li>
<li>When the connection comes back, how are conflicts resolved (for example, an item voided on the POS while the kitchen marked it ready)?</li>
</ul>
<p>This is exactly why I built Oscar offline-first: the local database is the working copy, and the server catches up later, instead of the other way round.</p>
<h2>Checklist: choosing or building a KDS</h2>
<blockquote>
<p><strong>Test with a real rush:</strong> Before you commit, run a busy service with the KDS and your old tickets side by side. Problems with routing, screen placement and bump habits show up in the first hour of a real rush, not in a demo.</p>
</blockquote>
<p>Whether you buy a KDS or have one built, check these:</p>
<ol>
<li><strong>Same system as your POS.</strong> In my experience, the tighter the KDS is tied to the order data, the fewer orders go missing between counter and kitchen.</li>
<li><strong>Routing per item and modifier</strong>, with an expo view of the whole order.</li>
<li><strong>Clear handling of voids and edits</strong> after an order has been sent to the kitchen.</li>
<li><strong>Offline behaviour you have tested</strong>, not just read about.</li>
<li><strong>Hardware that survives a kitchen:</strong> heat, grease and wet hands. Bump bars help.</li>
<li><strong>All order channels in one queue:</strong> dine-in, takeaway, delivery and online.</li>
<li><strong>Timing reports</strong> you will actually read, such as average ticket time by station and hour.</li>
<li><strong>A printing fallback</strong> for when a screen or network fails.</li>
</ol>
<h2>What this means for restaurant owners and POS startups</h2>
<p>If you run a restaurant, a KDS is worth it when your kitchen has several stations, a lot of modifiers or a high share of online orders. The value comes from routing and visibility, not from the screens themselves. Start with the POS you already use, and choose a KDS that is part of the same system.</p>
<p>If you are building a POS product, the KDS is where your architecture gets tested. You need real-time updates from the counter to the kitchen, sensible routing rules, careful handling of edits and voids, and a plan for when the network drops. These are hard to add later, so design the data model for them from day one. If you need help planning or building that, take a look at my <a href="https://muhammadmoiz.dev/services/product-development">product development service</a>.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://muhammadmoiz.dev/work/oscar-pos">Oscar POS case study (muhammadmoiz.dev)</a></li>
<li><a href="https://doc.toasttab.com/doc/platformguide/adminRoutingToPrepStations.html">Toast Platform Guide: Routing with prep stations</a></li>
<li><a href="https://doc.toasttab.com/doc/platformguide/platformOfflineKDSDevices.html">Toast Platform Guide: KDS devices in offline mode</a></li>
<li><a href="https://www.merchantmaverick.com/what-is-a-kds">Merchant Maverick: What Is A KDS and How Does It Work?</a></li>
<li>Cover photo: Alexandre Valdivia on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[How to Build an MVP Without Wasting 6 Months]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. To build an MVP without wasting six months, start from one painful problem and one type of customer, write down…]]></description><link>https://muhammadmoiz.hashnode.dev/how-to-build-an-mvp-without-wasting-6-months</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/how-to-build-an-mvp-without-wasting-6-months</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Wed, 18 Nov 2026 06:41:52 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/how-to-build-an-mvp"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>To build an MVP without wasting six months, start from one painful problem and one type of customer, write down the single job your product must do, cut every feature that doesn't serve that job, and put a working version in front of real users within weeks rather than quarters. Anything you can do by hand behind the scenes, do by hand at first. The goal of a minimum viable product is learning what customers will actually use and pay for, not shipping a smaller copy of your dream app.</p>
<p>This guide walks through how to create an MVP step by step, how to decide what to cut, and the mistakes that turn a six-week project into a six-month one.</p>
<h2>What is an MVP, really?</h2>
<p>Eric Ries, who popularised the term in The Lean Startup, describes the MVP as the version of a product that lets a team learn the most about its customers for the least effort. The term itself is older: it is generally credited to Frank Robinson in 2001, with Steve Blank and Ries spreading it later.</p>
<p>Two parts of that definition matter more than people expect:</p>
<ul>
<li><strong>"Learn" is the output.</strong> An MVP is a tool for answering a question, such as "Will restaurant owners pay monthly for this?" or "Will people upload their files to us instead of emailing them?" If you can't name the question, you aren't building an MVP yet.</li>
<li><strong>"Least effort" is relative.</strong> Ries himself stresses that there is no formula for how small an MVP should be. For some ideas it's a landing page and a payment link. For others, like anything that handles money or health data, the minimum still has to be secure and reliable.</li>
</ul>
<p>A useful test: if your first version answers your riskiest question, it is viable. If it also answers ten questions nobody asked, it isn't minimal.</p>
<h2>Why do most MVPs take 6 months instead of 6 weeks?</h2>
<p>Slow MVPs rarely come from slow coding. They come from decisions made before the first line of code. The usual causes:</p>
<ol>
<li><strong>Building for every future customer.</strong> Multiple user roles, team accounts, an admin dashboard with analytics, and five integrations, all before one person has signed up.</li>
<li><strong>Perfecting things users haven't asked for.</strong> Custom design systems, animations, and settings pages for preferences nobody has.</li>
<li><strong>Automating work that happens ten times a month.</strong> Writing an invoicing engine when you could send ten invoices by hand.</li>
<li><strong>Scope that changes every week.</strong> Without a written, frozen scope, every conversation adds a feature.</li>
<li><strong>Waiting for a big launch.</strong> Holding the product back until it feels "ready", then launching to silence.</li>
</ol>
<p>Ries gives a good example of the cost of guessing: his team at IMVU once spent weeks on a feature nobody wanted, when a simple ad test could have shown the lack of demand far sooner. The fix for all five causes above is the same. Decide what you need to learn, and build only that.</p>
<h2>How to build an MVP: a step-by-step plan</h2>
<h3>Step 1: Write the problem and the customer in one sentence</h3>
<p>"Independent wedding card sellers lose orders because customers can't see designs and prices online" is a usable problem. "A platform for events" is not. Pick one customer type you can actually reach this month.</p>
<h3>Step 2: Name your riskiest assumption</h3>
<p>Usually it is one of three: people don't have this problem, they won't switch from what they do now, or they won't pay. Your MVP exists to test that one assumption first.</p>
<h3>Step 3: Define the one core flow</h3>
<p>Map the shortest path from "user arrives" to "user gets value". For a booking product, that's: see availability, pick a slot, confirm. Everything outside that path goes on a "later" list.</p>
<h3>Step 4: Replace software with people wherever you can</h3>
<p>Paul Graham's essay "Do Things That Don't Scale" is full of examples: Airbnb's founders recruited hosts door to door in New York, and Stripe's founders quietly set up merchant accounts for early users by hand. You can do the same. Approve signups manually, send reports by email, handle payments with a payment link, and take orders over chat.</p>
<h3>Step 5: Timebox the build</h3>
<p>Pick a fixed window, for example four to eight weeks, and cut scope to fit the window rather than stretching the window to fit the scope. Write the scope down and treat changes as trade-offs: something comes in, something goes out.</p>
<h3>Step 6: Launch small, then talk to every user</h3>
<p>Graham's point about launches is blunt: big launches rarely matter, and what counts is a small core of users who genuinely like the product. Ship to 10 to 50 people you found yourself, watch how they use it, and talk to them weekly.</p>
<img src="https://images.unsplash.com/photo-1503551723145-6c040742065b-v2?w=1200&amp;q=80" alt="Colourful sticky notes pinned to a board during a product planning session" style="display:block;margin:0 auto" />

<p><em>Photo: Patrick Perkins on Unsplash</em></p>
<h2>How to cut scope: what goes in, what waits</h2>
<p>This is the part founders find hardest, so here's a practical way to sort features. Ask of each one: "If this were missing, would a user in our core flow fail to get value?" If the answer is no, it waits.</p>
<table>
<thead>
<tr>
<th>Feature</th>
<th>In the MVP?</th>
<th>What to do instead</th>
</tr>
</thead>
<tbody><tr>
<td>Sign up and log in</td>
<td>Usually yes</td>
<td>Use a managed auth provider instead of building your own</td>
</tr>
<tr>
<td>The core flow (book, order, upload, track)</td>
<td>Yes</td>
<td>This is the product</td>
</tr>
<tr>
<td>Payments</td>
<td>Only if testing willingness to pay</td>
<td>A hosted checkout or payment link</td>
</tr>
<tr>
<td>Admin dashboard</td>
<td>Minimal</td>
<td>A simple internal page, or the database console</td>
</tr>
<tr>
<td>Team accounts and roles</td>
<td>Rarely</td>
<td>Add when a paying customer asks</td>
</tr>
<tr>
<td>Native iOS and Android apps</td>
<td>Rarely</td>
<td>A responsive web app or PWA first</td>
</tr>
<tr>
<td>Analytics and reporting</td>
<td>No</td>
<td>Basic event tracking plus talking to users</td>
</tr>
<tr>
<td>Notifications</td>
<td>Maybe one</td>
<td>One email or push for the moment that matters</td>
</tr>
<tr>
<td>Integrations</td>
<td>Rarely</td>
<td>Manual export or a single webhook</td>
</tr>
</tbody></table>
<p>A real example: when I co-founded and built Shahi Bulawa, a wedding card and e-invitation store, we went from zero to launch in about a month. Instead of building a full cart and checkout, each product leads customers to WhatsApp to request a quote or a free mockup. The Next.js catalogue, an admin panel and SEO-friendly pages were in scope; a complex ordering system was not. The store got around 15 orders a month from the first month. You can read the full <a href="https://muhammadmoiz.dev/work/shahibulawa">Shahi Bulawa case study</a>.</p>
<h2>Choosing a tech stack for your MVP</h2>
<p>The best MVP stack is the one your developer can ship fastest and that won't need a full rewrite if the idea works. For most web MVPs, that means:</p>
<ul>
<li><strong>A mainstream framework</strong> such as Next.js or React, so hiring help later is easy.</li>
<li><strong>A managed backend</strong> such as Firebase or Supabase for auth, database and storage, so nobody spends weeks on infrastructure.</li>
<li><strong>Hosted payments</strong> rather than custom billing logic.</li>
<li><strong>Simple hosting</strong> with automatic deploys.</li>
</ul>
<p>AI app builders like Lovable, Bolt and Replit can get a prototype on screen in days, and for testing demand they are often a great value starting point. The catch is what happens when real users and real data arrive. We've covered the <a href="https://muhammadmoiz.dev/blog/vibe-coding-security">common security holes in AI-built apps</a> separately; if you go this route, plan for a review before you take payments or store personal data.</p>
<blockquote>
<p><strong>Minimal is not the same as insecure:</strong> Cutting features is fine. Cutting security is not. Even a two-week MVP needs proper access rules on the database, secrets kept off the client, and validated input on every form. A data leak in month one can end a product before it starts.</p>
</blockquote>
<h2>A realistic MVP timeline</h2>
<p>Every project differs, but a focused web MVP often follows a shape like this:</p>
<ol>
<li><strong>Week 1: Scope.</strong> Problem statement, riskiest assumption, core flow, written feature list, and a "later" list.</li>
<li><strong>Weeks 2 to 5: Build.</strong> Core flow first, then auth, then the minimum admin tools. A working preview every week.</li>
<li><strong>Week 6: Private launch.</strong> Ten to fifty hand-picked users, manual onboarding, direct feedback.</li>
<li><strong>Weeks 7 onward: Iterate.</strong> Fix what blocks users, add only what several users ask for, and decide whether the core assumption held.</li>
</ol>
<p>If you want a sense of budget for each stage, see our breakdown of <a href="https://muhammadmoiz.dev/blog/web-app-development-cost">web app development cost in 2026</a> and the fixed options on the <a href="https://muhammadmoiz.dev/pricing">pricing page</a>.</p>
<h2>What this means for founders and business owners</h2>
<p>Building an MVP is a business decision before it is a technical one. Before you hire anyone or open an AI builder, you should be able to answer:</p>
<ul>
<li>What single question will this MVP answer?</li>
<li>Who are the first 20 users, by name or by channel?</li>
<li>What is the one flow they must complete?</li>
<li>What will we do by hand for now?</li>
<li>What result would make us stop, change direction, or keep going?</li>
</ul>
<p>If you can answer those, a capable developer can usually get a first version live in weeks. If you can't, no amount of code will save the six months.</p>
<p>If you'd like help scoping and shipping your first version, take a look at how I approach <a href="https://muhammadmoiz.dev/services/product-development">product development from idea to launch</a>.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://leanstartup.co/what-is-an-mvp/">What is an MVP? (Lean Startup Co., quoting Eric Ries)</a></li>
<li><a href="https://paulgraham.com/ds.html">Do Things That Don't Scale, Paul Graham (July 2013)</a></li>
<li><a href="https://en.wikipedia.org/wiki/Minimum_viable_product">Minimum viable product (Wikipedia)</a></li>
<li><a href="https://muhammadmoiz.dev/work/shahibulawa">Shahi Bulawa case study</a></li>
<li>Cover photo: Kvalifik on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Paddle vs Stripe vs Lemon Squeezy for SaaS (I Shipped Paddle)]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. For most early-stage SaaS products selling worldwide, the Paddle vs Stripe question comes down to one thing: who…]]></description><link>https://muhammadmoiz.hashnode.dev/paddle-vs-stripe-vs-lemon-squeezy-for-saas-i-shipped-paddle</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/paddle-vs-stripe-vs-lemon-squeezy-for-saas-i-shipped-paddle</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Thu, 12 Nov 2026 07:20:48 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/paddle-vs-stripe"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>For most early-stage SaaS products selling worldwide, the Paddle vs Stripe question comes down to one thing: who is legally responsible for sales tax and VAT on every sale. Paddle (and Lemon Squeezy) act as your merchant of record and handle that for a higher fee, while plain Stripe costs less per transaction but leaves tax registration, filing and compliance with you. I run Paddle in production on Timegram, my time-tracking SaaS, so this comparison mixes current pricing (checked in November 2026) with what the choice feels like after launch.</p>
<h2>What is a merchant of record, in plain English?</h2>
<p>A merchant of record (MoR) is the company that legally sells your product to the customer. When Paddle is your MoR, the buyer is technically purchasing from Paddle, and Paddle then pays you. That has a few practical effects:</p>
<ul>
<li>The MoR calculates, collects and remits sales tax, VAT and GST in the countries where your customers live.</li>
<li>It carries the liability for the payment, including refunds and chargebacks.</li>
<li>Its name, not yours, appears on the customer's card statement.</li>
<li>You still own the product, the customer relationship, support and your terms of use.</li>
</ul>
<p>With plain Stripe, <strong>you</strong> are the merchant of record. Stripe processes the card, but if a customer in Germany or Australia buys your subscription, working out whether you owe VAT there, registering, and filing returns is your job. Stripe Tax can calculate and collect the tax, but it only does so in places where you have registered.</p>
<p>For a solo founder or a small team, that difference matters more than any percentage point. Tax compliance across dozens of countries is real admin work, and it usually lands on the founder's desk at the worst possible time.</p>
<h2>Paddle vs Stripe vs Lemon Squeezy: fees compared</h2>
<p>Here is what each official pricing page listed when I checked in November 2026 (US pricing for Stripe):</p>
<table>
<thead>
<tr>
<th></th>
<th>Paddle</th>
<th>Stripe (you are the merchant)</th>
<th>Stripe Managed Payments</th>
<th>Lemon Squeezy</th>
</tr>
</thead>
<tbody><tr>
<td>Base fee</td>
<td>5% + 50¢ per checkout transaction</td>
<td>2.9% + 30¢ per domestic card</td>
<td>3.5% on top of standard Stripe payment fees</td>
<td>5% + 50¢</td>
</tr>
<tr>
<td>Merchant of record</td>
<td>Yes</td>
<td>No</td>
<td>Yes (Stripe)</td>
<td>Yes</td>
</tr>
<tr>
<td>Sales tax / VAT handled</td>
<td>Included</td>
<td>Stripe Tax: 0.5% (no-code) or 50¢ per transaction (API), only where you are registered</td>
<td>Included, 80+ countries</td>
<td>Included</td>
</tr>
<tr>
<td>Subscription billing</td>
<td>Included</td>
<td>Stripe Billing: 0.7% of billing volume (pay as you go)</td>
<td>Requires Stripe Billing</td>
<td>Included</td>
</tr>
<tr>
<td>International cards</td>
<td>Not listed as extra</td>
<td>+1.5%</td>
<td>Standard Stripe fees apply</td>
<td>"Small additional fees" outside the US, amount not stated</td>
</tr>
<tr>
<td>Currency conversion</td>
<td>Not listed as extra</td>
<td>+1%</td>
<td>Standard Stripe fees apply</td>
<td>Not quantified</td>
</tr>
<tr>
<td>Disputes</td>
<td>Handled by Paddle</td>
<td>$15 per dispute</td>
<td>Handled by Stripe</td>
<td>Handled by Lemon Squeezy</td>
</tr>
</tbody></table>
<p>A few things the table doesn't show. Paddle says products priced under $10 need custom pricing. Stripe's dispute fee has more parts than one number: a $15 fee when a dispute arrives, another $15 if you counter it manually (refunded if you win). And the Lemon Squeezy page carries a link to a 2026 update about Stripe Managed Payments, which I cover below.</p>
<h3>A worked example: one $50 monthly subscription</h3>
<p>Take a single $50 payment from a US customer on a domestic card:</p>
<ul>
<li><strong>Paddle:</strong> 5% + 50¢ = <strong>$3.00</strong>, with tax handling, billing and disputes included.</li>
<li><strong>Stripe, self-managed:</strong> 2.9% + 30¢ = $1.75, plus 0.7% Stripe Billing = $0.35, plus 50¢ Stripe Tax via the API if you are registered in that state = <strong>about $2.60</strong>.</li>
<li><strong>Same Stripe sale with an international card that needs conversion:</strong> add 1.5% + 1% = $1.25, bringing it to <strong>about $3.85</strong>.</li>
</ul>
<p>So plain Stripe is the lowest-cost option for domestic sales, and the gap narrows or flips once you add international cards, currency conversion, and the cost of an accountant filing tax returns in other countries. That last cost never appears on a pricing page, but it is very real.</p>
<img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1200&amp;q=80" alt="Analytics graphs on a laptop screen showing revenue and performance metrics" style="display:block;margin:0 auto" />

<p><em>Photo: Luke Chesser on Unsplash</em></p>
<h2>Is Lemon Squeezy still a good choice in 2026?</h2>
<p>Lemon Squeezy was acquired by Stripe in 2024. In a January 28, 2026 update on its blog, the team said Lemon Squeezy is being folded into Stripe Managed Payments, which they present as its next version, and that the aim is to give existing users an easy way to migrate. The same post admits support had been slower and product updates fewer over the previous year.</p>
<p>Lemon Squeezy still works, and its pricing page still lists 5% + 50¢. But if you are starting a new SaaS today, I would not build on a platform whose own team describes it as being merged into something else. If you like the Lemon Squeezy model, look at Stripe Managed Payments directly.</p>
<h3>What Stripe Managed Payments actually is</h3>
<p>Managed Payments is Stripe acting as your merchant of record. According to Stripe's docs, it handles sales tax, VAT and GST in more than 80 countries, plus fraud prevention, disputes and transaction-level customer support. Before you choose it, check the limits:</p>
<ul>
<li>It only works with <strong>Stripe Checkout and Payment Links</strong>, not embedded Elements forms.</li>
<li>Subscriptions must be created through Checkout or Payment Links and use Stripe Billing.</li>
<li>It doesn't support <strong>Stripe Connect</strong>, so marketplaces and platforms are out.</li>
<li>It is for <strong>fully automated digital products</strong>: software, SaaS, courses, digital media. Consulting, development, design services and physical goods are excluded.</li>
<li>Your business must be based in a supported country. The list includes the US, Canada, the UK, most of the EU, Switzerland, Norway, Australia, Hong Kong, Japan and Singapore.</li>
<li>Stripe runs an eligibility review, and you need to keep a low dispute rate to stay on it.</li>
</ul>
<p>The fee is 3.5% per transaction on top of the normal Stripe payment fees. On the $50 example above, that is $1.75 + $1.75 = $3.50 before any Billing charges, which puts it in the same range as Paddle.</p>
<h2>Paddle vs Stripe: which should you pick?</h2>
<p>There's no single winner. Here is the decision framework I'd use with a client:</p>
<p><strong>Choose Paddle (or another MoR) if:</strong></p>
<ul>
<li>You sell a SaaS or software product to customers in many countries from day one.</li>
<li>You are a small team and don't want to register for VAT or sales tax in multiple places.</li>
<li>You are fine with a Paddle-branded checkout and Paddle's name on the card statement.</li>
<li>Your prices are above $10, so the 50¢ fixed fee doesn't eat your margin.</li>
</ul>
<p><strong>Choose plain Stripe if:</strong></p>
<ul>
<li>Most of your customers are in one country where you are already registered for tax.</li>
<li>You need full control of the checkout UI (Stripe Elements) or a marketplace model (Stripe Connect).</li>
<li>You sell services, physical goods or anything an MoR won't accept.</li>
<li>You have an accountant or a finance person who can handle tax filings.</li>
</ul>
<p><strong>Consider Stripe Managed Payments if:</strong></p>
<ul>
<li>You want MoR coverage but prefer Stripe's API, dashboard and ecosystem.</li>
<li>Your business is in a supported country and your product is purely digital.</li>
<li>A hosted Checkout page is acceptable for your product.</li>
</ul>
<h2>What I learned shipping Paddle in production</h2>
<p>Timegram uses Paddle for payments in production. The appeal of the MoR model for a SaaS like that is simple: Paddle is the seller of record, so the tax side of international sales sits with Paddle rather than with the product team.</p>
<p>The main engineering lesson applies to any provider: keep billing logic behind your own interface. Your app should ask "is this account on an active paid plan?" and never care which provider answered. That way, switching from Lemon Squeezy to Managed Payments, or from Stripe to Paddle, touches one module instead of the whole codebase.</p>
<p>Here is a simplified sketch of that pattern in TypeScript:</p>
<pre><code class="language-ts">// billing/types.ts: your app only depends on this shape
export type PlanStatus = "trialing" | "active" | "past_due" | "canceled";

export interface Subscription {
  accountId: string;
  plan: "starter" | "pro" | "team";
  status: PlanStatus;
  renewsAt: Date | null;
}

export interface BillingProvider {
  createCheckoutUrl(accountId: string, plan: Subscription["plan"]): Promise&lt;string&gt;;
  // Turn a verified provider webhook into your own Subscription record
  parseWebhook(rawBody: string, signature: string): Promise&lt;Subscription | null&gt;;
}

// Feature checks read your database, never the provider's API
export function hasPaidAccess(sub: Subscription | undefined): boolean {
  return sub?.status === "active" || sub?.status === "trialing";
}
</code></pre>
<p>Each provider (Paddle, Stripe, Lemon Squeezy) gets its own small adapter that implements <code>BillingProvider</code>. Webhooks update a subscriptions table in your database, and the rest of the app reads from there. It also means a provider outage doesn't lock paying users out of your product.</p>
<h2>Checklist before you integrate any payment provider</h2>
<ol>
<li>Write down where your customers are. One country or worldwide changes the answer.</li>
<li>Check that your product type is accepted. MoRs reject services and some content categories.</li>
<li>Calculate fees on your real price point, including international cards and conversion.</li>
<li>Decide whether a hosted checkout is acceptable or you need a fully custom one.</li>
<li>Plan webhook handling: signature verification, retries and idempotency.</li>
<li>Store subscription state in your own database, as in the pattern above.</li>
<li>Test upgrades, downgrades, failed payments and cancellations in sandbox mode before launch.</li>
<li>Read the provider's payout schedule so cash flow doesn't surprise you.</li>
</ol>
<blockquote>
<p><strong>Don't over-optimise fees on day one:</strong> Before you have revenue, the difference between 2.6% and 5% matters far less than launching quickly and staying tax compliant. You can switch providers later if billing sits behind your own interface.</p>
</blockquote>
<h2>What this means for your SaaS</h2>
<p>If you are a founder choosing between Paddle vs Stripe for a new product, the honest answer is that an MoR (Paddle or Stripe Managed Payments) is usually the right default for a small team selling software internationally. Plain Stripe becomes the better value once you have the volume, the finance help and the need for a fully custom checkout or a marketplace.</p>
<p>The part people underestimate is the integration itself: webhooks, plan changes, trials, failed payments and keeping your database in sync. If you are planning a SaaS and want billing done right from the first version, that is part of what I cover in <a href="https://muhammadmoiz.dev/services/product-development">product development</a>. You can also see my <a href="https://muhammadmoiz.dev/blog/supabase-vs-firebase">Supabase vs Firebase comparison</a> for the backend side of the same decision, or check <a href="https://muhammadmoiz.dev/pricing">pricing</a> for how I scope projects.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://www.paddle.com/pricing">Paddle pricing</a></li>
<li><a href="https://www.paddle.com/blog/what-is-merchant-of-record">Paddle: What is a merchant of record?</a></li>
<li><a href="https://stripe.com/pricing">Stripe pricing</a></li>
<li><a href="https://docs.stripe.com/payments/managed-payments">Stripe docs: Managed Payments</a></li>
<li><a href="https://docs.stripe.com/payments/managed-payments/eligibility">Stripe docs: Managed Payments eligibility</a></li>
<li><a href="https://www.lemonsqueezy.com/pricing">Lemon Squeezy pricing</a></li>
<li><a href="https://www.lemonsqueezy.com/blog/2026-update">Lemon Squeezy: 2026 update</a></li>
<li>Cover photo: rupixen on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Progressive Web Apps vs Native App: When a PWA Is Enough]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. If you are weighing progressive web apps vs native app development, the short answer is this: a PWA is enough…]]></description><link>https://muhammadmoiz.hashnode.dev/progressive-web-apps-vs-native-app-when-a-pwa-is-enough</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/progressive-web-apps-vs-native-app-when-a-pwa-is-enough</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Wed, 11 Nov 2026 06:06:02 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/progressive-web-apps-vs-native-app"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>If you are weighing progressive web apps vs native app development, the short answer is this: a PWA is enough when your users mostly work in the foreground, on screens you control, and you need one codebase with fast updates. Go native (or React Native) when you depend on background work, deep hardware access, or iOS features that Safari still does not expose. Below is how to tell which side of that line your product sits on, based on current browser support data and on building an offline-first restaurant POS that runs in the browser.</p>
<h2>What is a PWA, in plain terms?</h2>
<p>A progressive web app is a website that can behave like an installed app. Technically it is still a web page running inside a browser engine, but it adds two things:</p>
<ul>
<li><strong>A web app manifest</strong>: a small JSON file with the app's name, icons, start URL and display mode. This is what lets a browser offer "Install" or "Add to Home Screen".</li>
<li><strong>A service worker</strong> (optional but common): a script that sits between your app and the network. It can serve cached files when the device is offline and, on some browsers, run tasks in the background.</li>
</ul>
<p>Once installed, a PWA gets its own icon and opens in its own window without the browser address bar. To the user it feels like an app. Under the hood, the browser is still doing the work, and that is the root of every limitation discussed below.</p>
<p>A native app, by contrast, is built for the operating system directly (Swift/Kotlin, or a cross-platform toolkit like React Native or Flutter that compiles to native components) and is distributed through the App Store or Google Play.</p>
<h2>Progressive web apps vs native app: the quick comparison</h2>
<table>
<thead>
<tr>
<th></th>
<th>PWA</th>
<th>Native app</th>
</tr>
</thead>
<tbody><tr>
<td>Codebase</td>
<td>One web codebase for desktop, Android, iOS</td>
<td>Separate builds per platform (or a cross-platform framework)</td>
</tr>
<tr>
<td>Distribution</td>
<td>A URL, plus optional store listings</td>
<td>App Store and Google Play review</td>
</tr>
<tr>
<td>Updates</td>
<td>Deploy to your server, users get it on next load</td>
<td>Store review, then users must update</td>
</tr>
<tr>
<td>Found by search engines</td>
<td>Yes, pages can be indexed</td>
<td>Store search only (unless you also have a website)</td>
</tr>
<tr>
<td>Offline use</td>
<td>Yes, with a service worker and local storage</td>
<td>Yes</td>
</tr>
<tr>
<td>Background sync on iOS</td>
<td>Not supported in Safari</td>
<td>Supported via OS APIs</td>
</tr>
<tr>
<td>Push notifications on iOS</td>
<td>iOS 16.4+, only when added to Home Screen</td>
<td>Supported</td>
</tr>
<tr>
<td>Bluetooth / USB hardware</td>
<td>Chromium browsers only, not Safari</td>
<td>Supported</td>
</tr>
<tr>
<td>Custom install button on iOS</td>
<td>Not supported</td>
<td>Not applicable (store install)</td>
</tr>
</tbody></table>
<p>The rows that matter most are the bottom four. Everything above them is where PWAs usually win.</p>
<h2>What PWAs can't do on iOS (as of November 2026)</h2>
<p>Most "PWA vs native" decisions are really "how much do we care about iPhone users?" decisions. Android with Chrome supports far more of the web platform than iOS does. I checked MDN's browser compatibility data in November 2026, and these are the gaps that most often push a project toward native:</p>
<h3>Push notifications need a Home Screen install</h3>
<p>Safari on iOS added the Push API in version 16.4, but MDN notes it only works for web apps saved to the Home Screen. A user who just visits your site in Safari cannot get push messages. That means your onboarding has to talk people through "Share, then Add to Home Screen" before notifications even become possible.</p>
<h3>No custom install prompt</h3>
<p>On Chrome and Edge, your app can listen for the <code>beforeinstallprompt</code> event and show its own "Install app" button at a sensible moment. Safari does not support that event, and MDN states plainly that this technique does not work on iOS. Installing is entirely manual for iPhone users. Since iOS 16.4, they can at least do it from the Share menu in Safari, Chrome, Edge, Firefox and Orion, not only Safari.</p>
<h3>No background sync or background fetch</h3>
<p>The Background Synchronization API lets a service worker retry a failed request once the connection returns, even after the user has closed the tab. Periodic Background Sync and Background Fetch go further. According to MDN's compatibility data, Safari supports none of these. On iOS, your app can only sync while it is open.</p>
<h3>No Bluetooth, USB or serial hardware access</h3>
<p>Web Bluetooth, WebUSB and Web Serial exist in Chromium browsers but not in Safari. If your product needs to talk to a card reader, label printer, scale or other peripheral from an iPhone or iPad, a PWA alone cannot do it.</p>
<h3>Smaller gaps</h3>
<ul>
<li><strong>Badging</strong> (the number on the app icon) works on iOS 16.4+ for Home Screen web apps.</li>
<li><strong>Screen Wake Lock</strong> (keeping the screen on) arrived in Safari 16.4, but MDN notes it did not work in Home Screen web apps until iOS 18.4.</li>
<li><strong>Vibration</strong> is not supported in Safari at all.</li>
</ul>
<blockquote>
<p><strong>Check the EU caveat:</strong> Historically every iOS browser had to use WebKit, so Chrome on iPhone had Safari's limits. MDN notes that since iOS 17.4 Apple allows other browser engines in the EU, so behaviour there can differ. Test on the devices and regions your customers actually use.</p>
</blockquote>
<h2>Offline storage: how much data can a PWA keep?</h2>
<p>Offline-first apps live or die on local storage, so this deserves its own section. Small key-value data can go in <code>localStorage</code>, which is capped at about 5 MiB per origin. Anything serious (orders, products, customers) belongs in IndexedDB, usually through a library rather than the raw API.</p>
<p>MDN's storage guide gives the current quota rules:</p>
<ul>
<li><strong>Chrome and Edge</strong>: an origin can use up to 60% of total disk size.</li>
<li><strong>Safari (macOS 14 and iOS 17 onward)</strong>: around 60% of total disk for browser apps and Home Screen web apps, and around 15% when the site runs inside another app's embedded web view.</li>
<li><strong>Firefox</strong>: in best-effort mode, the smaller of 10% of the disk or a 10 GiB group limit.</li>
</ul>
<p>The bigger risk is not quota, it is <strong>eviction</strong>. By default, browser data is "best-effort", meaning the browser may delete it under storage pressure. Safari goes further: with cross-site tracking prevention on, it removes script-created data for origins the user has not interacted with in the last seven days of browser use. When eviction happens, the whole origin's data goes at once.</p>
<p>Two practical defences:</p>
<pre><code class="language-ts">// Ask the browser to treat this origin's data as persistent.
// Chrome and Safari decide silently based on how the user engages with the site;
// Firefox shows a permission prompt.
export async function requestDurableStorage(): Promise&lt;boolean&gt; {
  if (!navigator.storage?.persist) return false;
  const alreadyPersisted = await navigator.storage.persisted();
  if (alreadyPersisted) return true;
  return navigator.storage.persist();
}

// Show the user (or your support team) how close the app is to its limit.
export async function storageReport(): Promise&lt;string&gt; {
  if (!navigator.storage?.estimate) return "Storage estimate not available";
  const { usage = 0, quota = 0 } = await navigator.storage.estimate();
  const pct = quota ? ((usage / quota) * 100).toFixed(1) : "?";
  return `Using ${(usage / 1_048_576).toFixed(1)} MB of local storage (${pct}% of quota)`;
}
</code></pre>
<p>And the rule that matters more than any API call: <strong>local data must never be the only copy of anything important</strong>. Sync it to a server as soon as a connection is available, and design the app so a wiped device can rebuild itself from the server.</p>
<img src="https://images.unsplash.com/photo-1556742393-d75f468bfcb0?w=1200&amp;q=80" alt="A barista in an apron using a tablet at a wooden café counter" style="display:block;margin:0 auto" />

<p><em>Photo: Nathan Dumlao on Unsplash</em></p>
<h2>Lessons from an offline-first POS that runs in the browser</h2>
<p>I spent about two years as a senior frontend engineer on <a href="https://muhammadmoiz.dev/work/oscar-pos">Oscar</a>, a point of sale system for restaurants and retail in Pakistan. It is a React web app, not a store app, and it had to keep taking orders, printing receipts and sending tickets to the kitchen even with the internet down. A few things that experience taught me about when the web is enough:</p>
<p><strong>The browser handled offline data well.</strong> Oscar keeps its data in a local WatermelonDB database on browser storage, so the POS works the same with or without a connection, and nobody has to install anything. Changes sync to a Django backend when the connection returns, and the server stays the source of truth for reporting. I wrote more about that architecture in <a href="https://muhammadmoiz.dev/blog/offline-first-pos-react">Offline-First POS: Lessons From Building Oscar in React</a>.</p>
<p><strong>Real-time features need an offline plan of their own.</strong> Orders reached the kitchen display system over WebSockets. Every feature like that needs a decision, made at design time, about what happens when the socket drops.</p>
<p><strong>Hardware was the hard part.</strong> Restaurants need receipt, kitchen and bar printers. Oscar connects to local printers through QZ Tray, a printer bridge, and I built the routing so each ticket lands on the right printer: receipts at the counter, tickets in the kitchen, drinks at the bar. That pattern (a web app plus a local helper for hardware) is a useful middle ground, but it is one more component to set up and support.</p>
<p>The broader lesson: Oscar ran on counters and devices the business controlled, in the foreground, all shift long. That is the ideal case for a web app. A consumer app that must wake up in the background on a stranger's iPhone is the opposite case.</p>
<h2>When a PWA is enough: a checklist</h2>
<p>Answer these honestly. If most of your answers land on the left, a PWA (or a plain responsive web app) is probably the right first build.</p>
<ol>
<li><strong>Do users work with the app open?</strong> Dashboards, POS screens, booking tools, internal tools and B2B SaaS are used in the foreground. A PWA fits. Apps that must react while closed (trackers, messengers with guaranteed delivery) lean native.</li>
<li><strong>Who owns the devices?</strong> If you control the hardware (counter tablets, staff laptops, Android devices), you can standardise on Chrome and get the full PWA feature set. If the audience is mostly iPhone consumers, plan around the iOS gaps above.</li>
<li><strong>Do you need peripherals?</strong> Printers, scanners, card readers and Bluetooth devices push you toward native, a cross-platform app, or a local bridge like the Oscar setup.</li>
<li><strong>How important are push notifications?</strong> If they are core to retention and your users are on iPhone, the "add to Home Screen first" step will cost you opt-ins.</li>
<li><strong>Does discovery come from Google or from the app stores?</strong> PWAs are web pages, so they can rank in search and be shared as a link. Store presence matters more for some consumer categories. You can also wrap a PWA for some stores (MDN points to tools like PWABuilder), but check each store's rules first.</li>
<li><strong>How often will you ship?</strong> Web deploys reach everyone on the next load. Store apps add review time and update lag.</li>
<li><strong>What is the budget?</strong> One web codebase is usually less work than two native apps. React Native narrows that gap if you need native features.</li>
</ol>
<h2>What this means for founders and app owners</h2>
<p>For most early-stage products, start on the web. A well-built responsive web app with a manifest and a service worker covers desktop, Android and most iPhone use, can be found on Google, and costs less to build and maintain than separate native apps. If you hit a real platform wall (background work, hardware, iOS push at scale), you can add a React Native app later and reuse your backend, API and much of your business logic.</p>
<p>The mistake to avoid is choosing a PWA and then discovering the iOS gaps after launch. Write down the device features your product depends on, check each one against current browser support, and prototype the riskiest one first.</p>
<p>If you are planning an offline-first app or a POS and want a second opinion on web vs native, take a look at my <a href="https://muhammadmoiz.dev/services/product-development">product development service</a> or the <a href="https://muhammadmoiz.dev/services/react-development">React development service</a>, or see how the <a href="https://muhammadmoiz.dev/work/oscar-pos">Oscar POS case study</a> handled it.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps">MDN: Progressive web apps</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/What_is_a_progressive_web_app">MDN: What is a progressive web app?</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable">MDN: Making PWAs installable</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Offline_and_background_operation">MDN: Offline and background operation</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria">MDN: Storage quotas and eviction criteria</a></li>
<li><a href="https://github.com/mdn/browser-compat-data">MDN browser-compat-data (PushManager, SyncManager, BackgroundFetchManager, BeforeInstallPromptEvent, Bluetooth, USB, Serial, Navigator)</a></li>
<li>Cover photo: Thom Bradley on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Lovable SEO: Why Your Lovable Site Isn't on Google (and the Fix)]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. Lovable SEO problems usually come down to one thing: a Lovable project is a client-side rendered React app, so…]]></description><link>https://muhammadmoiz.hashnode.dev/lovable-seo-why-your-lovable-site-isn-t-on-google-and-the-fix</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/lovable-seo-why-your-lovable-site-isn-t-on-google-and-the-fix</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Thu, 05 Nov 2026 06:08:13 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/lovable-seo"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>Lovable SEO problems usually come down to one thing: a Lovable project is a client-side rendered React app, so the HTML a search engine first receives is an almost empty shell, and all your text, titles and links only appear after JavaScript runs. Google can render JavaScript, but it does so in a slower, separate step, and other crawlers may not do it at all. The reliable fix is to serve real HTML for every page you want ranked, which for most growing products means pre-rendering or moving the public pages to a framework like Next.js.</p>
<p>This post explains why it happens, how to check your own site in five minutes, and which fix fits which situation.</p>
<h2>Why isn't my Lovable site showing up on Google?</h2>
<p>Lovable generates React projects built with Vite. You can see this in Lovable's own <code>lovable-tagger</code> package on npm, which is published from Lovable's repository and describes itself as a set of Vite plugins. A default Vite and React setup is a single-page application (SPA): the server sends one small HTML file, the browser downloads a JavaScript bundle, and React draws the page.</p>
<p>For a human visitor that works fine. For a search engine, the first response looks roughly like this:</p>
<pre><code class="language-html">&lt;!doctype html&gt;
&lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;My App&lt;/title&gt;
    &lt;script type="module" src="/assets/index-a1b2c3.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="root"&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>There is no headline, no product copy, no internal links and no page-specific title in that file. Everything a ranking system cares about is locked inside the JavaScript.</p>
<p>The Next.js team's SEO course puts it plainly: with client-side rendering, the first load usually serves a single HTML file "with little to no content" until the JavaScript is fetched and run. Their guidance is that CSR is not recommended when you care about search, and is better suited to dashboards and account pages that don't need to be indexed.</p>
<h2>Can Google crawl JavaScript sites at all?</h2>
<p>Yes, but with caveats that matter for a new site. The same Next.js course describes how pages with client-side content can be pushed into a separate render queue. Rendering costs a search engine more resources than reading plain HTML, so only a smaller share of pages on the web gets rendered, and a URL can sit in the crawl queue anywhere from seconds to a few days before it's processed.</p>
<p>In practice that means:</p>
<ul>
<li><strong>Slower discovery.</strong> Links that only exist after rendering are found later, so deep pages take longer to get crawled.</li>
<li><strong>Uneven indexing.</strong> Some routes get rendered and indexed, others stay as an empty shell in the index or don't appear at all.</li>
<li><strong>Other engines are weaker.</strong> The course also notes that some search engines may not have Google's rendering capacity.</li>
<li><strong>Link previews break.</strong> When someone shares your page on Slack, WhatsApp or LinkedIn, the preview bot reads the HTML head. In an SPA every route shares the same <code>index.html</code>, so every shared link shows the same generic title and image.</li>
</ul>
<p>None of this means a Lovable site can never rank. It means you are starting with a handicap, and for a site whose whole job is to win organic traffic, that handicap is usually the main reason it isn't on page one.</p>
<img src="https://images.unsplash.com/photo-1542744095-291d1f67b221?w=1200&amp;q=80" alt="Person working on a laptop reviewing website content" style="display:block;margin:0 auto" />

<p><em>Photo: Campaign Creators on Unsplash</em></p>
<h2>How to check if your site has a rendering problem</h2>
<p>You don't need special tools for a first diagnosis. Run these checks on your homepage and one or two important inner pages.</p>
<ol>
<li><strong>View the raw source.</strong> Open the page, then use your browser's "View page source" (not the inspector). If you can't find your main headline in the source, search engines don't see it on the first pass either.</li>
<li><strong>Fetch it from the terminal.</strong> This shows exactly what a non-rendering crawler receives:</li>
</ol>
<pre><code class="language-bash">curl -s https://your-site.com/pricing | grep -i "&lt;h1"
</code></pre>
<p>No output means your <code>h1</code> only exists after JavaScript runs.</p>
<ol start="3">
<li><strong>Compare page titles.</strong> Fetch two different routes and compare the <code>title</code> tags. If they are identical, every page is competing with the same generic title in search results.</li>
<li><strong>Check for a sitemap and robots file.</strong> Visit <code>/sitemap.xml</code> and <code>/robots.txt</code>. Make sure the sitemap exists and lists every public page, not just the homepage.</li>
<li><strong>Use Google Search Console.</strong> It tells you which of your pages Google has actually indexed. If you haven't verified your domain there yet, do that first.</li>
</ol>
<p>If checks 1 to 3 come back empty, the problem is architectural. Better keywords or more blog posts won't fix it on their own.</p>
<h2>Lovable SEO fixes, from quick wins to the real fix</h2>
<p>There are three realistic paths. Which one fits depends on how much of your growth depends on search.</p>
<table>
<thead>
<tr>
<th>Option</th>
<th>What it changes</th>
<th>Effort</th>
<th>Good for</th>
</tr>
</thead>
<tbody><tr>
<td>Tidy the SPA</td>
<td>Per-route titles via a head manager, sitemap, robots.txt, clean URLs</td>
<td>Low</td>
<td>Apps where search is a minor channel</td>
</tr>
<tr>
<td>Pre-render public routes</td>
<td>Generates static HTML for marketing pages at build time</td>
<td>Medium</td>
<td>Mostly static landing pages with few routes</td>
</tr>
<tr>
<td>Move public pages to Next.js</td>
<td>Server-rendered or static HTML for every public page, built-in metadata, sitemap and robots support</td>
<td>Medium to high</td>
<td>Products where organic search is a main acquisition channel</td>
</tr>
</tbody></table>
<h3>Option 1: tidy up the SPA</h3>
<p>Add a unique title and meta description per route, generate a sitemap that lists every public URL, make sure <code>robots.txt</code> doesn't block your assets, and use real paths (<code>/pricing</code>) instead of hash URLs (<code>/#/pricing</code>). This helps Google once it renders the page, but the empty first response is still there.</p>
<h3>Option 2: pre-render the public pages</h3>
<p>Vite projects can be set up to output static HTML for selected routes at build time. For a site with a handful of mostly static marketing pages, this gets real content into the first response without changing frameworks. It gets awkward once you have many dynamic pages, such as blog posts, listings or product pages pulled from a database.</p>
<h3>Option 3: move the public pages to Next.js</h3>
<p>This is the fix I recommend most often when search is a primary channel. The Next.js SEO course calls static site generation probably the best rendering strategy for SEO, with server-side rendering as the other strong choice, because the content and metadata are in the HTML before any JavaScript runs.</p>
<p>You also get metadata tooling built in. In the App Router, a page can export a <code>generateMetadata</code> function that runs on the server, so each blog post or product page gets its own title and description in the initial HTML:</p>
<pre><code class="language-tsx">// app/guides/[slug]/page.tsx
import type { Metadata } from 'next'
import { getGuide } from '@/lib/guides'

type Props = { params: Promise&lt;{ slug: string }&gt; }

export async function generateMetadata({ params }: Props): Promise&lt;Metadata&gt; {
  const { slug } = await params
  const guide = await getGuide(slug)
  return {
    title: `${guide.title} | Acme`,
    description: guide.summary,
    openGraph: { images: [guide.coverUrl] },
  }
}

export default async function GuidePage({ params }: Props) {
  const { slug } = await params
  const guide = await getGuide(slug)
  return (
    &lt;article&gt;
      &lt;h1&gt;{guide.title}&lt;/h1&gt;
      &lt;p&gt;{guide.summary}&lt;/p&gt;
    &lt;/article&gt;
  )
}
</code></pre>
<p>Sitemaps and robots files are handled by special files in the <code>app</code> folder, so they stay in sync with your real routes:</p>
<pre><code class="language-ts">// app/sitemap.ts
import type { MetadataRoute } from 'next'
import { listGuideSlugs } from '@/lib/guides'

export default async function sitemap(): Promise&lt;MetadataRoute.Sitemap&gt; {
  const slugs = await listGuideSlugs()
  return [
    { url: 'https://acme.com', lastModified: new Date() },
    ...slugs.map((slug) =&gt; ({ url: `https://acme.com/guides/${slug}` })),
  ]
}
</code></pre>
<p>A common pattern is a partial migration: the logged-in app stays as it is (it doesn't need to be indexed), and only the marketing site, blog and public listing pages move to Next.js. That keeps the cost and risk down.</p>
<blockquote>
<p><strong>Don't migrate blindly:</strong> Before rewriting anything, list the pages that actually need to rank. If it's five static pages, pre-rendering may be enough. If it's hundreds of database-driven pages, a server-rendered framework will save you a lot of pain.</p>
</blockquote>
<h2>Does React itself hurt SEO?</h2>
<p>Not exactly. React is a UI library and can render on the server just fine. The issue is the default setup. The React docs point out that common build tools like Vite start you off with a client-only SPA, which is easier to begin with but can have slower initial loads, and that adding server rendering or static generation yourself takes extra work. That is why the React team recommends starting new apps with a framework. Lovable chose the simpler SPA setup, which is a reasonable choice for prototypes and internal tools, and a weak one for content that needs to rank.</p>
<h2>What this means for founders with a Lovable site</h2>
<p>If your product is a logged-in tool and people find you through ads, referrals or sales, Lovable SEO limitations may not matter much. Fix titles and the sitemap and move on.</p>
<p>If your plan depends on people finding you on Google, the rendering model is the first thing to fix, before you invest in content or link building. A quick checklist:</p>
<ul>
<li>Confirm with <code>curl</code> or View Source whether your key pages have real content in the HTML.</li>
<li>List the pages that need to rank and how many of them are database-driven.</li>
<li>Decide between pre-rendering and a move to Next.js for those pages.</li>
<li>Keep the logged-in app separate if it works; migrate the public pages first.</li>
<li>Set up Search Console, submit the sitemap and watch indexing over the next few weeks.</li>
</ul>
<p>If you're weighing a switch away from Lovable more broadly, my comparison of <a href="https://muhammadmoiz.dev/blog/lovable-alternatives">Lovable alternatives</a> covers when custom code makes sense. And if you want the public side of your app rebuilt so Google can actually read it, that's exactly what my <a href="https://muhammadmoiz.dev/services/nextjs-development">Next.js development service</a> covers, usually as part of getting an <a href="https://muhammadmoiz.dev/services/ai-app-production-ready">AI-built app ready for production</a>.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://nextjs.org/learn/seo/rendering-strategies">Next.js Learn: SEO, Rendering Strategies</a></li>
<li><a href="https://nextjs.org/learn/seo/webcrawlers">Next.js Learn: SEO, Webcrawlers</a></li>
<li><a href="https://nextjs.org/learn/seo/metadata">Next.js Learn: SEO, Metadata</a></li>
<li><a href="https://nextjs.org/docs/app/getting-started/metadata-and-og-images">Next.js Docs: Metadata and OG images</a></li>
<li><a href="https://react.dev/learn/build-a-react-app-from-scratch">React Docs: Build a React app from scratch</a></li>
<li><a href="https://www.npmjs.com/package/lovable-tagger">lovable-tagger on npm</a></li>
<li>Cover photo: Agence Olloweb on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Lovable Alternatives: 7 Options Compared (and When to Switch to Custom Code)]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. The best Lovable alternatives in late 2026 are Bolt, Replit, v0, Base44, Cursor and Claude Code, plus the option…]]></description><link>https://muhammadmoiz.hashnode.dev/lovable-alternatives-7-options-compared-and-when-to-switch-to-custom-code</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/lovable-alternatives-7-options-compared-and-when-to-switch-to-custom-code</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Wed, 04 Nov 2026 06:04:11 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/lovable-alternatives"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>The best Lovable alternatives in late 2026 are Bolt, Replit, v0, Base44, Cursor and Claude Code, plus the option most comparison lists skip: moving to custom code with a developer. Which one fits depends less on the AI model underneath and more on three questions: can you get your code out, who owns the backend, and how far from production you are.</p>
<p>I take over and fix apps built with these tools, so this comparison focuses on what matters after the demo works. Pricing below was checked on each vendor's own pricing page in November 2026, except where I say otherwise.</p>
<h2>Why do people look for Lovable alternatives?</h2>
<p>Lovable is good at getting a polished React frontend on screen fast. The reasons founders start shopping around are usually the same few:</p>
<ul>
<li><strong>Credit burn.</strong> Lovable runs on credits. Its pricing page describes a free daily grant of 5 build credits (capped at 30 a month) plus 20 Cloud credits a month, with paid plans adding more. Long debugging loops eat credits quickly, and that is often when people start comparing.</li>
<li><strong>Backend lock-in worries.</strong> Lovable's frontend code syncs to GitHub, but the database, secrets and backend services live in Lovable Cloud or Supabase. Third-party export guides point out that your data and your environment secrets do not come with a code export, so leaving takes more than one click.</li>
<li><strong>Hitting a complexity ceiling.</strong> Payments, roles and permissions, background jobs and integrations with other systems are where prompt-based editing starts to go in circles.</li>
<li><strong>Search visibility.</strong> A client-rendered single-page app is harder for search engines to read than server-rendered pages.</li>
</ul>
<p>If one of these is your reason, it should drive your choice. Switching tools to fix a problem the new tool also has is a common and expensive mistake.</p>
<h2>The 7 Lovable alternatives at a glance</h2>
<table>
<thead>
<tr>
<th>Option</th>
<th>Best for</th>
<th>Backend</th>
<th>Getting your code out</th>
<th>Entry paid price (Nov 2026)</th>
</tr>
</thead>
<tbody><tr>
<td>Bolt</td>
<td>Fast browser-based prototypes and simple sites</td>
<td>Bolt Cloud (hosting, databases, auth)</td>
<td>Open-source core; check export per plan</td>
<td>Pro $25/month</td>
</tr>
<tr>
<td>Replit</td>
<td>Full-stack apps with hosting in one place</td>
<td>Built-in auth, database, hosting, monitoring</td>
<td>Code lives in a real workspace</td>
<td>Core $20/month ($18 yearly)</td>
</tr>
<tr>
<td>v0</td>
<td>Frontend and UI on the Vercel stack</td>
<td>Bring your own</td>
<td>Code-first, frontend focused</td>
<td>Check v0.app/pricing</td>
</tr>
<tr>
<td>Base44</td>
<td>Internal tools and simple business apps</td>
<td>Base44's managed backend</td>
<td>Reported to need a higher plan</td>
<td>Check <a href="http://base44.com/pricing">base44.com/pricing</a></td>
</tr>
<tr>
<td>Cursor</td>
<td>Developers editing a real codebase</td>
<td>Whatever you choose</td>
<td>You already own it</td>
<td>Plans from $8 to $200/month</td>
</tr>
<tr>
<td>Claude Code</td>
<td>Agentic coding on your own repo</td>
<td>Whatever you choose</td>
<td>You already own it</td>
<td>Needs a Claude plan or API account</td>
</tr>
<tr>
<td>Custom code with a developer</td>
<td>Apps with paying users, payments, compliance</td>
<td>Designed for your app</td>
<td>You own everything from day one</td>
<td>Project based</td>
</tr>
</tbody></table>
<p>The first four are app builders: you describe what you want and they produce and host an app. The next two are AI coding tools: they work on a codebase you or a developer control. The last is a different decision altogether.</p>
<h2>App builders: Bolt, Replit, v0 and Base44</h2>
<h3>Bolt</h3>
<p>Bolt is the closest match to Lovable in how it feels. You chat, it builds, and it runs the app in the browser. Its backend story is Bolt Cloud, which the homepage describes as covering hosting, databases and user authentication.</p>
<p>On pricing, Bolt's free tier gives 1M tokens a month with a 300K daily cap and Bolt branding on sites. Pro is $25 a month for 10M tokens with rollover, a custom domain and no branding. Teams is $30 per member per month. Bolt bills by tokens rather than credits, which some people find easier to predict, but large projects still use a lot of them because the model has to read more code each time. The original bolt.new codebase is public on GitHub under the MIT license, which is a good sign for transparency, even though the hosted product has moved well past it.</p>
<p><strong>Pick Bolt if</strong> you want the Lovable experience with a different pricing model, and your app is still at the prototype stage.</p>
<h3>Replit</h3>
<p>Replit is a full development environment with an AI agent on top. Its homepage lists authentication, a database, hosting and monitoring as built-in services, which makes it the strongest "everything in one place" option on this list.</p>
<p>The Core plan is $20 a month ($18 billed yearly) and Pro is $100 a month ($90 yearly), with higher usage tiers above that. Because Replit gives you an actual workspace with files and a terminal, it is easier for a developer to step in later than with tools that hide the code. I compared it with Lovable in more detail in <a href="https://muhammadmoiz.dev/blog/lovable-vs-replit">Lovable vs Replit vs Bolt vs Cursor</a>.</p>
<p><strong>Pick Replit if</strong> you want the agent to handle backend logic too, and you like the idea of hosting staying in one place.</p>
<h3>v0</h3>
<p>v0 is Vercel's AI builder. It is strongest on interface work: pages, components and layouts that look production-grade. It fits teams already planning to host on Vercel. For anything beyond the UI, you connect your own database and auth.</p>
<p>I could not reach v0's pricing page from my research environment this month, and third-party guides disagree about which plans still exist after changes earlier in 2026, so check v0.app/pricing directly rather than trusting a number from a blog (including this one).</p>
<p><strong>Pick v0 if</strong> your main pain with Lovable is design quality, and you have, or will hire, someone to build the backend.</p>
<h3>Base44</h3>
<p>Base44 targets non-technical builders making internal tools, dashboards and simple customer-facing apps, with a managed backend included. It is easy to start with, but the trade-off is portability. Third-party pricing guides report that code export and GitHub sync are limited to its higher paid tiers, and that the backend stays tied to Base44's own SDK. I could not confirm this on Base44's official site this month, so verify it before you build anything you might want to move.</p>
<p><strong>Pick Base44 if</strong> the app is internal, low-risk, and you are fine with it living on the platform long term.</p>
<img src="https://images.unsplash.com/photo-1534665482403-a909d0d97c67?w=1200&amp;q=80" alt="A developer working on code on a laptop at a desk" style="display:block;margin:0 auto" />

<p><em>Photo: Danial Igdery on Unsplash</em></p>
<h2>AI coding tools: Cursor and Claude Code</h2>
<p>These two are not app builders. They are what you move to when you want AI help but also want a normal codebase in a normal Git repository.</p>
<h3>Cursor</h3>
<p>Cursor is an AI-first code editor. You open your project, and the AI can read the whole codebase, suggest changes across files and run agent tasks. Cursor's pricing page in November 2026 lists a free tier and paid plans at $8, $30, $100 and $200 a month, with third-party model usage billed separately. Its plan lineup has changed several times this year, so treat any older comparison with caution.</p>
<h3>Claude Code</h3>
<p>Claude Code is Anthropic's agentic coding tool. According to its documentation it runs in the terminal, in VS Code and JetBrains, as a desktop app and in the browser. It reads a codebase, edits files, runs commands, and works directly with Git to create branches, commits and pull requests. It needs a Claude subscription or an Anthropic Console account.</p>
<h3>Who should use these?</h3>
<p>Both tools make an experienced developer much faster. Neither turns a non-developer into one. If you export a Lovable app into Cursor or Claude Code without knowing how to review a database migration or an access policy, you have swapped one set of blind spots for another. A sensible pattern is: the founder keeps using a builder for experiments, and a developer uses an AI coding tool on the production repo.</p>
<h2>When should you switch to custom code?</h2>
<p>This is the decision that matters most, and it is rarely about which AI tool is "better". Switching makes sense when your app has crossed from prototype into product. Signs you are there:</p>
<ol>
<li><strong>Real users and real data.</strong> Once strangers sign up and store personal or business data, security stops being optional. Missing row level security is one of the most common holes in AI-built apps; see <a href="https://muhammadmoiz.dev/blog/supabase-rls">Supabase RLS explained</a>.</li>
<li><strong>Money moves through the app.</strong> Subscriptions, refunds, webhooks and tax are easy to demo and hard to get right.</li>
<li><strong>Fixes keep breaking other things.</strong> If each prompt fixes one bug and creates two, the codebase has outgrown prompt-based editing.</li>
<li><strong>You need to rank on Google.</strong> A Lovable or Bolt frontend is typically a client-rendered SPA. Moving key pages to server rendering is a structural change, not a prompt.</li>
<li><strong>Investors, clients or compliance ask questions.</strong> Due diligence wants to know who understands the code.</li>
</ol>
<p>Custom code does not mean starting over. In many AI-built apps, the UI and the data model are worth keeping. The work is usually hardening: locking down database access, moving secrets server-side, adding proper error handling and logging, setting up a real deployment pipeline, and fixing the parts that only worked in the happy path.</p>
<blockquote>
<p><strong>Before you switch tools:</strong> Connect your current project to GitHub and export your database first. Whatever you decide next, owning a copy of your code and data keeps every option open.</p>
</blockquote>
<h2>A quick checklist for choosing your next step</h2>
<p>Use this before you pay for another tool:</p>
<ul>
<li>Can I get the full source code out today, on my current plan?</li>
<li>Where does my data live, and can I export it in a standard format?</li>
<li>Who holds my API keys and secrets, and can I rotate them?</li>
<li>Is authentication and database access enforced on the server, not just hidden in the UI?</li>
<li>Do I have more than a handful of real users or any payments flowing?</li>
<li>Do I need these pages to show up on Google?</li>
<li>Is someone on the team able to read and review the generated code?</li>
</ul>
<p>If you answer "no" or "not sure" to the first four, fix that before switching anything. If you answer "yes" to the middle two and "no" to the last one, a builder alone is no longer enough.</p>
<h2>What this means for founders</h2>
<p>For a prototype or an idea you are testing, any of the builders above is great value compared with paying for custom development, and the right one is mostly a matter of taste and pricing model. For an app with users and revenue, the tool matters far less than having someone accountable for the code.</p>
<p>If you are at that point, my <a href="https://muhammadmoiz.dev/services/ai-app-production-ready">AI app to production service</a> takes apps built with Lovable, Bolt or Replit and makes them secure, maintainable and ready to scale, without throwing away the work you have already done. If you are not sure how bad things are yet, a <a href="https://muhammadmoiz.dev/services/production-audit">production audit</a> is a lower-commitment first step.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://lovable.dev/pricing">Lovable pricing</a></li>
<li><a href="https://bolt.new/pricing">Bolt pricing</a></li>
<li><a href="https://bolt.new/">Bolt homepage</a></li>
<li><a href="https://github.com/stackblitz/bolt.new">bolt.new on GitHub (stackblitz)</a></li>
<li><a href="https://replit.com/pricing">Replit pricing</a></li>
<li><a href="https://replit.com/">Replit homepage</a></li>
<li><a href="https://cursor.com/pricing">Cursor pricing</a></li>
<li><a href="https://code.claude.com/docs/en/overview">Claude Code overview (Anthropic docs)</a></li>
<li><a href="https://v2.softr.io/blog/base44-pricing">Base44 pricing guide (Softr)</a></li>
<li><a href="https://www.zite.com/blog/base44-pricing">Base44 pricing guide (Zite)</a></li>
<li><a href="https://usagepricing.com/blueprint/v0">v0 pricing blueprint (usagepricing.com)</a></li>
<li><a href="https://vp0.com/blogs/can-i-export-code-from-lovable">Can I export code from Lovable? (vp0)</a></li>
<li>Cover photo: Christopher Gower on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Web App Development Cost in 2026: Real Numbers for MVPs]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. Web app development cost depends on three things: how much you build, who builds it, and what it costs to run…]]></description><link>https://muhammadmoiz.hashnode.dev/web-app-development-cost-in-2026-real-numbers-for-mvps</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/web-app-development-cost-in-2026-real-numbers-for-mvps</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Tue, 03 Nov 2026 06:23:48 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/web-app-development-cost"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>Web app development cost depends on three things: how much you build, who builds it, and what it costs to run once it is live. There is no honest single number, but you can get a reliable estimate by pricing the hours your scope needs at your builder's rate, then adding a small monthly bill for hosting, database and store fees. This guide shows you how to do that, with real platform prices checked in November 2026.</p>
<h2>What actually drives web app development cost?</h2>
<p>Most quotes look different because they are pricing different things. When you compare two numbers, check that they cover the same work. These are the factors that move a quote the most:</p>
<ul>
<li><strong>Number of screens and user flows.</strong> A sign-up, a dashboard and a settings page is a very different job from twenty screens with multi-step forms.</li>
<li><strong>User roles and permissions.</strong> Every extra role (admin, staff, customer, manager) adds rules, tests and edge cases. Getting permissions wrong is also one of the most common security problems, as covered in <a href="https://muhammadmoiz.dev/blog/supabase-rls">Supabase RLS explained</a>.</li>
<li><strong>Integrations.</strong> Payments, email, maps, calendars, accounting tools and third-party APIs each add setup, error handling and testing time.</li>
<li><strong>Business rules.</strong> Pricing logic, approvals, scheduling and inventory are where "simple" apps quietly become complex.</li>
<li><strong>Security and compliance.</strong> Handling payments, personal data or regulated information means more review and more testing.</li>
<li><strong>The state of existing code.</strong> Extending a clean codebase is faster than untangling one, which matters a lot if you are starting from an AI-built prototype.</li>
<li><strong>Timeline.</strong> A tight deadline does not usually lower the total, but it can mean more hours per week.</li>
</ul>
<p>Design, testing, deployment and project management are part of the cost too. A quote that only counts "coding" is not the full picture.</p>
<h2>How much does it cost to build an MVP?</h2>
<p>The easiest way to estimate an MVP is a simple formula:</p>
<p><strong>Estimated cost = hours for your scope x hourly rate + monthly running costs</strong></p>
<p>The hourly rate varies hugely by country and by type of team. Agencies in high-cost markets charge much more per hour than an independent senior developer working remotely, and you are often paying for account managers and overhead on top of the engineering.</p>
<p>To make the formula concrete, here is an illustration using the published rate on my <a href="https://muhammadmoiz.dev/pricing">pricing page</a>: $20 per hour for ad-hoc work. The hour counts below are rough examples to show how scope changes the total, not a quote.</p>
<table>
<thead>
<tr>
<th>Scope (example)</th>
<th>What it includes</th>
<th>Example hours</th>
<th>At $20/hour</th>
</tr>
</thead>
<tbody><tr>
<td>Landing page plus waitlist</td>
<td>One or two pages, a form, analytics</td>
<td>20 to 40</td>
<td>$400 to $800</td>
</tr>
<tr>
<td>Small MVP</td>
<td>Auth, one core workflow, a dashboard, basic admin</td>
<td>150 to 300</td>
<td>$3,000 to $6,000</td>
</tr>
<tr>
<td>SaaS MVP with billing</td>
<td>The above plus subscriptions, teams, emails, settings</td>
<td>300 to 500</td>
<td>$6,000 to $10,000</td>
</tr>
<tr>
<td>Larger product</td>
<td>Several roles, integrations, reporting, mobile-ready UI</td>
<td>600+</td>
<td>$12,000+</td>
</tr>
</tbody></table>
<p>Two things to notice. First, hours matter far more than the rate. Cutting one complex feature from version one often saves more than negotiating the rate down. Second, the same table at a higher agency rate multiplies every row, so always ask how many hours a quote assumes.</p>
<p>For ongoing work after launch, a retainer is often simpler. My retainer is $1,000 a month for about 60 hours (15 hours per week), which covers new features, fixes and priority support.</p>
<img src="https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1200&amp;q=80" alt="A laptop showing lines of code on a desk with notebooks and a phone" style="display:block;margin:0 auto" />

<p><em>Photo: Christopher Gower on Unsplash</em></p>
<h2>What does it cost to run a web app each month?</h2>
<p>Running costs are the part founders forget. The good news is that for most early-stage products they are small. Here are the published prices from the main platforms, as of November 2026:</p>
<table>
<thead>
<tr>
<th>Service</th>
<th>Free option</th>
<th>First paid plan</th>
<th>Notes</th>
</tr>
</thead>
<tbody><tr>
<td>Vercel (hosting for Next.js and React)</td>
<td>Hobby, $0</td>
<td>Pro, $20/month</td>
<td>Pro includes a $20 usage credit, then pay as you go. Extra developer seats are $20/month each.</td>
</tr>
<tr>
<td>Supabase (database, auth, storage)</td>
<td>Free, $0</td>
<td>Pro, from $25/month</td>
<td>Free projects pause after a week of inactivity and are limited to 500 MB of database. Pro gives 8 GB disk and 100,000 monthly active users.</td>
</tr>
<tr>
<td>Supabase Team</td>
<td>n/a</td>
<td>From $599/month</td>
<td>Longer backup and log retention, mainly for larger teams.</td>
</tr>
<tr>
<td>Apple Developer Program</td>
<td>n/a</td>
<td>$99/year</td>
<td>Only needed if you ship an iOS app to the App Store.</td>
</tr>
</tbody></table>
<p>So a typical early web app on Vercel Pro and Supabase Pro starts at around $45 a month before usage grows. Add a domain, an email sending service and any paid APIs you rely on. If you are deciding between backends, my <a href="https://muhammadmoiz.dev/blog/supabase-vs-firebase">Supabase vs Firebase comparison</a> covers how their pricing models differ.</p>
<p>A few cost traps to watch for:</p>
<ul>
<li><strong>Free tiers that pause.</strong> A free database that sleeps after a week is fine for testing but not for a live product with paying users.</li>
<li><strong>Usage-based billing.</strong> Serverless functions, bandwidth and database reads are cheap per unit and expensive at scale. Set spending alerts on day one.</li>
<li><strong>Per-seat pricing.</strong> Some tools charge for each team member, which adds up as you hire.</li>
<li><strong>Payment fees.</strong> Payment providers take a percentage of each transaction, so factor that into your margins rather than your build budget.</li>
</ul>
<h2>How much does it cost to make an app with AI builders?</h2>
<p>Tools like Lovable, Bolt and Replit have changed the early stage. A founder can now build a working prototype for the price of a monthly subscription, which is a great way to test an idea before spending on development. I compared the main options in <a href="https://muhammadmoiz.dev/blog/lovable-vs-replit">Lovable vs Replit vs Bolt vs Cursor</a>.</p>
<p>The catch is what happens next. AI-built apps often reach a point where they need a developer: security rules that were never set up, payments that only half work, or code that becomes hard to change. That does not make the prototype a waste. It means your real budget is "prototype cost plus the work to make it production-ready", and that second number depends heavily on how clean the generated code is. I wrote about the most common problems in <a href="https://muhammadmoiz.dev/blog/vibe-coding-security">vibe coding security</a>.</p>
<blockquote>
<p><strong>Get the code reviewed before you get a quote:</strong> If you already have a prototype, a fixed-price review tells you exactly what needs fixing, so any quote you get afterwards is based on facts rather than guesses. My <a href="https://muhammadmoiz.dev/services/production-audit">production audit</a> is $300 and comes with a prioritised fix list.</p>
</blockquote>
<h2>How to get an accurate quote (and keep it accurate)</h2>
<p>Vague requests get vague quotes. Use this checklist before you talk to any developer or agency:</p>
<ol>
<li><strong>Write down the one job your app must do.</strong> If you cannot describe the core workflow in two sentences, the scope is not ready yet.</li>
<li><strong>List every user role</strong> and what each one can see and do.</li>
<li><strong>List integrations</strong> by name: which payment provider, which email service, which maps or calendar API.</li>
<li><strong>Mark each feature as "launch" or "later".</strong> Be ruthless. Most MVPs launch with far less than the first wish list.</li>
<li><strong>Share what exists already:</strong> designs, a prototype, an AI-built app, or a competitor you like.</li>
<li><strong>Ask for a fixed quote with milestones,</strong> so you pay as work is delivered rather than all up front.</li>
<li><strong>Agree how scope changes are handled.</strong> Every change should be priced and agreed in writing before work starts.</li>
<li><strong>Confirm who owns the code.</strong> You should, in your own repository, once the work is paid for.</li>
</ol>
<p>On my projects, every quote is fixed after a free call and a look at the code, paid per milestone, and any change is agreed in writing before I start on it. Whoever you hire, ask for the same.</p>
<h2>What this means for founders and business owners</h2>
<p>If you are budgeting for a new product, plan in two parts. The first is the build: scope multiplied by rate, with the scope cut down to what you need to learn whether customers will pay. The second is running costs, which for a young web app usually sit in the tens of dollars a month rather than hundreds, as long as you watch usage-based billing.</p>
<p>The biggest savings come from decisions, not discounts. Launching with one strong workflow instead of five half-finished ones will cut your web app development cost more than any rate negotiation. And if you already have a prototype from an AI builder, find out what state it is in before you decide whether to fix it or rebuild.</p>
<p>If you want a number for your own project, the <a href="https://muhammadmoiz.dev/pricing">pricing page</a> explains how I quote, or you can book a free call.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://muhammadmoiz.dev/pricing">Muhammad Moiz pricing page</a></li>
<li><a href="https://vercel.com/pricing">Vercel pricing</a></li>
<li><a href="https://supabase.com/pricing">Supabase pricing</a></li>
<li><a href="https://developer.apple.com/support/enrollment/">Apple Developer Program enrollment</a></li>
<li>Cover photo: Jakub Żerdzicki on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[PHP Critical RCE Vulnerabilities CVE-2026-109618 and CVE-2026-109619: How to Patch]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. Two critical bugs in PHP itself, CVE-2026-109618 and CVE-2026-109619, can let an attacker run code on a web…]]></description><link>https://muhammadmoiz.hashnode.dev/php-critical-rce-vulnerabilities-cve-2026-109618-and-cve-2026-109619-how-to-patch</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/php-critical-rce-vulnerabilities-cve-2026-109618-and-cve-2026-109619-how-to-patch</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Mon, 02 Nov 2026 05:55:29 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/php-rce-cve-2026-109618-cve-2026-109619-patch-guide"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>Two critical bugs in PHP itself, CVE-2026-109618 and CVE-2026-109619, can let an attacker run code on a web server without logging in. They were fixed on 21 October 2026 in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and every earlier release on those branches is affected. If your website, WordPress install or API runs on PHP, the fix is to upgrade the PHP runtime, not your plugins or framework.</p>
<h2>What happened</h2>
<p>The PHP project published two GitHub security advisories on 21 October 2026, both rated Critical with a CVSS v4 score of 9.2. On the same day it shipped patch releases on all four supported branches. The release notes put it bluntly: "There are no complete mitigations, updating is the only safe choice."</p>
<p>The score reflects a network attack that needs no account and no user interaction, but does need certain conditions to line up (that is why attack complexity is marked high). In plain terms: it is not trivial to pull off, but an outsider can attempt it against a public server, and the payoff is full control of the PHP worker process.</p>
<table>
<thead>
<tr>
<th>Branch</th>
<th>Vulnerable</th>
<th>Fixed in</th>
</tr>
</thead>
<tbody><tr>
<td>PHP 8.5</td>
<td>below 8.5.12</td>
<td>8.5.12</td>
</tr>
<tr>
<td>PHP 8.4</td>
<td>below 8.4.27</td>
<td>8.4.27</td>
</tr>
<tr>
<td>PHP 8.3</td>
<td>below 8.3.36</td>
<td>8.3.36</td>
</tr>
<tr>
<td>PHP 8.2</td>
<td>below 8.2.35</td>
<td>8.2.35</td>
</tr>
</tbody></table>
<p>Note that the 8.2.35 release notes also remind users that PHP 8.2 reaches end of life on 31 December 2026. Branches older than 8.2 are not listed in the advisories, so treat them as unpatched and unsupported.</p>
<h2>The two bugs, explained without the jargon</h2>
<h3>CVE-2026-109618: memory exhaustion leaves PHP in a broken state</h3>
<p>When a PHP request runs out of memory, the engine historically bailed out of whatever it was doing with an abrupt jump. The advisory explains that some code paths make freshly allocated request memory visible before it is fully set up. If any allocation fails at that exact moment, even an unrelated one, the request is left holding half-initialised data, and the shutdown routine later trusts it.</p>
<p>The scary part is how an attacker forces the out-of-memory condition. The advisory lists several ways, including multipart (file upload style) requests with a huge number of headers per part, many empty file fields that still create metadata, and deeply nested field names. Under Apache with mod_php, the researchers confirmed full remote code execution over HTTP with default memory and input limits, before any of your application code even runs. PHP-FPM is believed to be susceptible based on source analysis, but no complete FPM exploit was demonstrated. FrankenPHP and LSAPI are flagged as likely susceptible but not validated.</p>
<p>The fix replaces the abrupt jump with a graceful "soft" out-of-memory stop at a safe point, plus a hard process exit if memory keeps climbing past a second threshold.</p>
<h3>CVE-2026-109619: leftover state from a previous request</h3>
<p>Long-running PHP workers handle many requests in a row. This advisory describes global state (error, session, object and extension data) that can survive after the memory behind it is freed. A later request that touches that state before normal start-up reads freed memory, which is a classic use-after-free.</p>
<p>Two confirmed paths stand out:</p>
<ul>
<li><strong>PHP 8.5 with</strong> <code>fatal_error_backtraces</code> <strong>enabled.</strong> The backtrace data is not cleared after a fatal error, and a later diagnostic reads it. This is the basis of the confirmed mod_php exploit.</li>
<li><strong>Session upload progress.</strong> This feature is on by default and does not need your code to call <code>session_start()</code>. A fatal error or memory exhaustion during input processing can leave it pointing at freed memory. It was validated against both mod_php and PHP-FPM.</li>
</ul>
<p>An attacker needs two requests to land on the same worker: one to plant the stale state and one to trigger it. More workers make that harder, but the advisory is clear that it does not remove the risk.</p>
<img src="https://images.unsplash.com/photo-1564457461758-8ff96e439e83?w=1200&amp;q=80" alt="Rows of server cabinets in a data center connected by blue network cables" style="display:block;margin:0 auto" />

<p><em>Photo: Taylor Vick on Unsplash</em></p>
<h2>Who is affected</h2>
<p>If any of these describe your setup, you should act this week:</p>
<ul>
<li>A WordPress, WooCommerce, Laravel, Symfony, Drupal or custom PHP site on a PHP version below the fixed releases above.</li>
<li>Apache with mod_php. This is the configuration with confirmed, application-independent exploitation.</li>
<li>PHP-FPM behind nginx or Apache. Exposure is conditional, but session upload progress was validated on FPM.</li>
<li>Docker images that pin an older <code>php:8.x</code> tag and have not been rebuilt since 21 October.</li>
<li>Shared or managed hosting. Your host controls the PHP binary, so you need to confirm they have rolled out the patched build.</li>
</ul>
<p>Updating WordPress core, a theme or a plugin does nothing here. The bug lives in the language runtime underneath them.</p>
<h2>How to patch: a practical checklist</h2>
<ol>
<li><strong>Find your real PHP version.</strong> The command-line PHP and the web-server PHP are sometimes different builds, so check both.</li>
</ol>
<pre><code class="language-shell"># CLI version
php -v

# FPM version (binary name varies by distro, e.g. php-fpm8.3)
php-fpm -v

# Settings that matter for the mitigations below
php -i | grep -E 'memory_limit|session.upload_progress.enabled|fatal_error_backtraces'
</code></pre>
<p>For the web server, a temporary <code>phpinfo()</code> page works, but delete it straight after.</p>
<ol start="2">
<li><strong>Upgrade to the fixed release for your branch.</strong> Use your distribution's security repository, your host's control panel, or a rebuilt container image. For Docker, bump the base image tag and rebuild rather than relying on a cached layer.</li>
</ol>
<pre><code class="language-shell"># Example: confirm the image you ship actually contains the fix
docker run --rm your-app-image php -v
</code></pre>
<ol start="3">
<li><strong>Restart every worker.</strong> A new binary on disk does not help while old FPM children or Apache processes stay in memory. Restart the service, not just reload configuration.</li>
<li><strong>Verify in production.</strong> Re-run the version check against the live server and record the result.</li>
<li><strong>Plan your branch.</strong> If you are on 8.2, schedule a move to 8.3 or newer before the end of December. If you are on anything older than 8.2, upgrading is now urgent rather than optional.</li>
</ol>
<blockquote>
<p><strong>Settings tweaks are a stopgap, not a fix:</strong> The advisories say updating is the only complete mitigation. Use the settings below only to reduce risk for the few days it takes to get a patched build deployed.</p>
</blockquote>
<h2>If you cannot upgrade today</h2>
<p>Both advisories list temporary measures. In summary:</p>
<ul>
<li><strong>Turn off session upload progress</strong> (<code>session.upload_progress.enabled=0</code>) and restart workers. The advisory suggests leaving it off even after patching if you don't use it, and most sites don't.</li>
<li><strong>On PHP 8.5, set</strong> <code>fatal_error_backtraces=0</code> at the administrative level and restart. This removes the confirmed exploit path for the second bug, but not every possible one.</li>
<li><strong>Tighten request limits at the edge.</strong> Keep <code>post_max_size</code> conservative, cap decoded request size at your reverse proxy or WAF, and block multipart requests entirely on endpoints that never accept uploads.</li>
<li><strong>Lower input limits</strong> such as <code>max_input_nesting_level</code> and the number of input variables, parts and uploads.</li>
<li><strong>Avoid</strong> <code>RLIMIT_AS</code> <strong>and</strong> <code>RLIMIT_DATA</code> as a memory cap. The advisory warns these make allocations fail in exactly the way that triggers the first bug.</li>
</ul>
<p>The first advisory also mentions <code>memory_limit=-1</code> as a partial configuration mitigation, with the caveat that it is incomplete and that an unbounded memory limit brings its own denial-of-service risk. Treat it with care.</p>
<h2>What it means for business and app owners</h2>
<p>For a non-technical founder, the short version is this: your website's engine had a serious flaw, and the engine has to be replaced, not the bodywork. Ask whoever runs your hosting or code three direct questions:</p>
<ul>
<li>Which PHP version is serving our live site right now?</li>
<li>When was it updated, and were all workers restarted?</li>
<li>Are we on a branch that still gets security fixes after this year?</li>
</ul>
<p>If nobody can answer quickly, that is a sign your stack lacks basic visibility, and a one-off <a href="https://muhammadmoiz.dev/services/production-audit">production audit</a> of versions, hosting and patching is usually great value compared with cleaning up after a breach. If you run WordPress and want someone to handle the PHP upgrade and test your plugins against the new version, <a href="https://muhammadmoiz.dev/services/wordpress-development">WordPress development support</a> covers exactly that kind of job.</p>
<p>The broader lesson is that "keep plugins updated" is only half of PHP security. The runtime, the web server and the container image all need an owner and a patch routine, and this month's release is a good prompt to set one up.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w">PHP security advisory GHSA-w8hw-w9fx-j79w: RCE via OOM corruption (CVE-2026-109618)</a></li>
<li><a href="https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp">PHP security advisory GHSA-6wmf-4rv5-p3rp: RCE via stale global state (CVE-2026-109619)</a></li>
<li><a href="https://github.com/php/php-src/releases">php-src releases on GitHub (8.5.12, 8.4.27, 8.3.36, 8.2.35)</a></li>
<li><a href="https://github.com/php/php-src/security">php-src security advisories overview</a></li>
<li>Cover photo: FlyD on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Supabase vs Firebase for Startups: An Honest Comparison]]></title><description><![CDATA[Supabase vs Firebase comes down to one question: do you want a relational Postgres database with SQL, or a document database that syncs to clients with…]]></description><link>https://muhammadmoiz.hashnode.dev/supabase-vs-firebase-for-startups-an-honest-comparison</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/supabase-vs-firebase-for-startups-an-honest-comparison</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Fri, 30 Oct 2026 06:24:32 GMT</pubDate><content:encoded><![CDATA[<img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/nxwsob0sups27wirkl5z.jpg" alt="Image description" style="display:block;margin:0 auto" />

<p>Supabase vs Firebase comes down to one question: do you want a relational Postgres database with SQL, or a document database that syncs to clients with almost no setup? For most SaaS products with users, teams, billing and reports, Supabase is the safer long-term default. Firebase still wins for real-time, mobile-first apps where you want Google to run everything and your data is shaped like documents.</p>
<p>I've shipped production work on Firebase (<a href="https://muhammadmoiz.dev/work/timegram">Timegram</a>, a time-tracking SaaS I built, runs on it) and I regularly work on Supabase apps, many of them generated by AI builders like Lovable. Below is how the two compare on the things that actually hurt later: data model, security, pricing, lock-in and hiring.</p>
<h2>What is the difference between Supabase and Firebase?</h2>
<p>Both are "backend as a service" platforms. You get a database, authentication, file storage, server functions and real-time updates without running your own servers. The difference is what sits in the middle.</p>
<ul>
<li><strong>Supabase</strong> is built on Postgres. Its docs describe each project as a full Postgres database rather than an abstraction over one, and Auth, Storage, Realtime and Edge Functions all hang off that database. You write SQL, use foreign keys and joins, and can add Postgres extensions such as pgvector for AI embeddings, PostGIS for maps and pg_cron for scheduled jobs.</li>
<li><strong>Firebase</strong> is built around Cloud Firestore, a NoSQL document database from Google. Data lives in collections of documents, clients read and write directly through the SDK, and access is controlled by Firebase Security Rules. It plugs into the rest of Google Cloud (Cloud Functions, Cloud Storage, Analytics, Crashlytics, Cloud Messaging).</li>
</ul>
<p>Neither is "better" in general. They suit different shapes of data and different teams.</p>
<h2>Supabase vs Firebase at a glance</h2>
<table>
<thead>
<tr>
<th></th>
<th>Supabase</th>
<th>Firebase</th>
</tr>
</thead>
<tbody><tr>
<td>Database</td>
<td>Postgres (relational, SQL)</td>
<td>Firestore (NoSQL documents)</td>
</tr>
<tr>
<td>Queries</td>
<td>Joins, aggregates, views, full SQL</td>
<td>Simple queries per collection; joins done in app code</td>
</tr>
<tr>
<td>Access control</td>
<td>Postgres Row Level Security policies</td>
<td>Firebase Security Rules</td>
</tr>
<tr>
<td>Pricing model</td>
<td>Plan fee plus usage (storage, egress, MAU)</td>
<td>Pay per document read, write and delete</td>
</tr>
<tr>
<td>Free tier</td>
<td>2 active projects, paused after a week of inactivity</td>
<td>Daily free quota on reads, writes and storage</td>
</tr>
<tr>
<td>Self-hosting</td>
<td>Possible (open source)</td>
<td>No</td>
</tr>
<tr>
<td>Best fit</td>
<td>SaaS, dashboards, B2B, reporting, AI features</td>
<td>Mobile apps, chat, live collaboration, quick prototypes</td>
</tr>
</tbody></table>
<h2>Supabase vs Firebase pricing: what will you actually pay?</h2>
<p>I checked both pricing pages in October 2026. Prices change, so confirm before you budget.</p>
<h3>Supabase pricing</h3>
<p>Supabase uses plans with included usage:</p>
<ul>
<li><strong>Free:</strong> $0. 500 MB database, 50,000 monthly active users, 5 GB egress, 1 GB file storage, 500,000 Edge Function invocations. You get two active projects, and free projects are paused after one week of inactivity.</li>
<li><strong>Pro:</strong> from $25 a month. 8 GB database per project, 100,000 MAU, 250 GB egress, 100 GB file storage, 2 million Edge Function invocations, plus $10 of compute credits. Projects are never paused.</li>
<li><strong>Overages on Pro:</strong> $0.125 per GB of database, $0.00325 per extra MAU, $0.09 per GB of egress, $0.0213 per GB of file storage.</li>
<li><strong>Team:</strong> from $599 a month. <strong>Enterprise:</strong> custom.</li>
</ul>
<p>A useful detail: the Pro plan has a spend cap switched on by default, so you won't get a surprise bill unless you turn the cap off.</p>
<h3>Firebase (Firestore) pricing</h3>
<p>Firestore charges per operation, not per plan. Google's Firestore pricing page lists a daily free quota of 1 GiB of stored data, 50,000 document reads, 20,000 writes and 20,000 deletes, plus 10 GiB of outbound transfer a month. Above that, in the Iowa (us-central1) location, you pay $0.03 per 100,000 reads, $0.09 per 100,000 writes and $0.01 per 100,000 deletes. Other regions are priced differently.</p>
<p>For sign-in, Google Cloud's Identity Platform pricing page lists email, phone, anonymous and social sign-ins as free up to 50,000 MAU, then $0.0055 per MAU up to 100,000. SAML and OpenID Connect (enterprise single sign-on) are free for only 50 MAU, then $0.015 per MAU. SMS for phone login is billed separately.</p>
<h3>Which one is more affordable?</h3>
<p>It depends on how your app reads data, not just how many users you have.</p>
<ul>
<li>Firestore bills every document a query returns. A dashboard that loads 200 documents for every page view costs 200 reads each time. Listeners that re-run on every change add up fast. Badly structured Firestore apps are where surprise bills come from.</li>
<li>Supabase bills mostly for storage, egress and compute. A heavy SQL query costs CPU time, not per row returned, so read-heavy dashboards and reports are usually more predictable on a fixed plan.</li>
<li>For a small app with light traffic, both can stay free or close to it for a long time. Just remember the Supabase free plan pauses idle projects, which is fine for prototypes but not for a live product.</li>
</ul>
<h2>Is Supabase or Firebase better for a SaaS startup?</h2>
<p>Ask what your data looks like six months from now.</p>
<p>A typical SaaS has organisations, users, roles, projects, invoices, subscriptions and audit logs, all linked to each other. That is relational data. In Postgres you model it with tables and foreign keys, and a report like "hours logged per client per month, grouped by team" is one SQL query. In Firestore you either duplicate data across documents so each screen can read it in one go, or you fetch several collections and join them in your code. Both work, but duplication means keeping copies in sync, and that is where bugs creep in.</p>
<p>Here is the same question asked both ways. In Supabase:</p>
<pre><code class="language-sql">select c.name, sum(t.minutes) / 60.0 as hours
from time_entries t
join projects p on p.id = t.project_id
join clients c on c.id = p.client_id
where t.org_id = 'org_123'
  and t.started_at &gt;= date_trunc('month', now())
group by c.name
order by hours desc;
</code></pre>
<p>In Firestore you would usually keep a running total on each client document and update it every time an entry is written, often from a Cloud Function:</p>
<pre><code class="language-javascript">// Illustrative: keep a per-client monthly total in sync on every new entry
export const onEntryCreated = onDocumentCreated(
  "orgs/{orgId}/entries/{entryId}",
  async (event) =&gt; {
    const entry = event.data?.data();
    if (!entry) return;
    const month = entry.startedAt.toDate().toISOString().slice(0, 7);
    const ref = db.doc(`orgs/${event.params.orgId}/clientTotals/${entry.clientId}_${month}`);
    await ref.set({ minutes: FieldValue.increment(entry.minutes) }, { merge: true });
  }
);
</code></pre>
<p>The Firestore version is fast and cheap to read, but you now have to handle edits, deletes and back-filling old data yourself. Every new report means another pre-computed total.</p>
<p>My rule of thumb:</p>
<ul>
<li><strong>Pick Supabase</strong> if your product is a B2B SaaS, has reporting or admin screens, needs complex permissions, or will add AI search with embeddings.</li>
<li><strong>Pick Firebase</strong> if you're building a mobile-first or chat-style app, need offline sync on phones out of the box, already use Google Cloud, or your data really is a set of independent documents (user profiles, messages, feeds).</li>
</ul>
<p>If you're still scoping your first version, this decision belongs in the planning stage of an <a href="https://muhammadmoiz.dev/services/mvp-development">MVP build</a>, not halfway through development.</p>
<h2>Supabase vs Firebase security: where do apps go wrong?</h2>
<p>Both platforms let the browser or mobile app talk to the database directly. That's what makes them fast to build with, and it's also why security has to be done right on day one.</p>
<ul>
<li><strong>Supabase</strong> relies on Postgres Row Level Security (RLS). If a table is exposed and RLS is off, or the policies are too loose, anyone with your public anon key can read the data. This is the most common problem I find in apps built with Lovable and other AI tools. I wrote a full guide on it: <a href="https://muhammadmoiz.dev/blog/supabase-rls">Supabase RLS explained</a>.</li>
<li><strong>Firebase</strong> relies on Security Rules. The classic mistake is shipping with test-mode rules that allow all reads and writes, or rules that check a user is signed in but not that they own the document.</li>
</ul>
<blockquote>
<p><strong>Check this before launch</strong></p>
<p>Whichever you pick, test your access rules with a second, non-admin account. Try to read and change another user's data. If you can, so can anyone else.</p>
</blockquote>
<h2>Lock-in and switching later</h2>
<p>Supabase is open source and the data sits in standard Postgres, so you can export it with normal Postgres tools or move to any Postgres host. That's a real advantage if investors or enterprise clients ask about vendor risk.</p>
<p>Firebase is a Google product with no self-hosted version. Moving away means rewriting data access code and reshaping documents into tables. Supabase publishes a migration path for this: community scripts that export each Firestore collection to JSON and import it as a Postgres table, flattening fields into text, numeric, boolean or jsonb columns. Nested arrays and objects need custom hooks or your own script to split into related tables, and each collection is migrated separately. It works, but plan time for the data modelling, not just the copy.</p>
<h2>A quick decision checklist</h2>
<ol>
<li>Write down your five main entities (users, orders, projects and so on) and how they link. Lots of links points to Supabase.</li>
<li>List the reports and admin screens you'll need in year one. Cross-collection reports point to Supabase.</li>
<li>Is it mostly a phone app that must work offline? That points to Firebase.</li>
<li>Estimate reads per user per day. If a single screen loads hundreds of documents, model the Firestore cost before committing.</li>
<li>Check if your team or future hires know SQL. Postgres skills are easy to find.</li>
<li>Decide how much vendor lock-in you can accept.</li>
<li>Whatever you choose, budget time to write and test RLS policies or Security Rules.</li>
</ol>
<h2>What this means for founders and app owners</h2>
<p>If you're starting fresh, you can't really go wrong with either, as long as the data model fits the tool. The expensive mistakes come from forcing relational data into Firestore, or from launching a Supabase app with RLS switched off.</p>
<p>If you already have an app built with an AI tool and you're not sure whether the backend is set up safely or will scale, a <a href="https://muhammadmoiz.dev/services/production-audit">production audit</a> is the quickest way to find out what needs fixing before real customers arrive. And if you're planning a new product and want help choosing the stack, see how I approach <a href="https://muhammadmoiz.dev/services/mvp-development">MVP development</a>.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://supabase.com/pricing">Supabase pricing</a></li>
<li><a href="https://supabase.com/docs/guides/database/overview">Supabase docs: Database overview</a></li>
<li><a href="https://supabase.com/docs/guides/platform/migrating-to-supabase/firestore-data">Supabase docs: Migrate from Firestore to Supabase</a></li>
<li><a href="https://cloud.google.com/firestore/pricing">Google Cloud: Firestore pricing</a></li>
<li><a href="https://cloud.google.com/identity-platform/pricing">Google Cloud: Identity Platform pricing</a></li>
<li>Cover photo: Christopher Gower on Unsplash</li>
</ul>
<hr />
<p><em>Originally published on</em> <a href="https://muhammadmoiz.dev/blog/supabase-vs-firebase"><em>muhammadmoiz.dev</em></a><em>. I'm Muhammad Moiz, a senior full-stack engineer building production apps with React, Next.js and Node.js. If you need a hand with your product,</em> <a href="https://muhammadmoiz.dev/contact"><em>get in touch</em></a><em>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Lovable vs Replit vs Bolt vs Cursor: Which to Use, and When You Need a Developer]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. Lovable vs Replit comes down to what you want to own at the end. Lovable is the faster path to a polished web app…]]></description><link>https://muhammadmoiz.hashnode.dev/lovable-vs-replit-vs-bolt-vs-cursor-which-to-use-and-when-you-need-a-developer</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/lovable-vs-replit-vs-bolt-vs-cursor-which-to-use-and-when-you-need-a-developer</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Thu, 29 Oct 2026 06:32:20 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/lovable-vs-replit"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p><strong>Lovable vs Replit</strong> comes down to what you want to own at the end. Lovable is the faster path to a polished web app when you mostly describe screens in chat, Replit suits founders who want an AI agent plus a full coding workspace and hosting in one place, Bolt sits between them, and Cursor is a code editor for people (or developers) who already work in a codebase. All four can get you to a working prototype; none of them replaces the engineering work a real product needs once paying users, private data and growth arrive.</p>
<p>Below is a practical comparison written for founders, with prices taken from each vendor's pricing page as of October 2026, plus the signals that tell you it's time to bring in a developer.</p>
<h2>Lovable vs Replit vs Bolt vs Cursor at a glance</h2>
<p>These tools are often lumped together, but they solve different problems. Three are "describe it and the AI builds it" app builders. Cursor is a different category: an AI-first editor and agent for working inside real code.</p>
<table>
<thead>
<tr>
<th></th>
<th>Lovable</th>
<th>Replit</th>
<th>Bolt</th>
<th>Cursor</th>
</tr>
</thead>
<tbody><tr>
<td>Best for</td>
<td>Non-technical founders building web apps by chat</td>
<td>Founders who want an agent plus a full dev environment</td>
<td>Quick web apps, prototypes and sites</td>
<td>Developers and technical founders editing real code</td>
</tr>
<tr>
<td>How you work</td>
<td>Chat, visual preview</td>
<td>Chat with Agent, plus code editor</td>
<td>Chat, preview, start from Figma or GitHub</td>
<td>IDE, CLI and cloud agents</td>
</tr>
<tr>
<td>Backend</td>
<td>Lovable Cloud, billed from your credits</td>
<td>Built-in database and user auth</td>
<td>Built-in databases on every plan</td>
<td>Whatever your project uses</td>
</tr>
<tr>
<td>Code ownership</td>
<td>You own your code; GitHub sync</td>
<td>Code lives in your Replit workspace</td>
<td>Can start from your GitHub repo</td>
<td>Your repo from day one</td>
</tr>
<tr>
<td>Starting paid price (Oct 2026)</td>
<td>Credit-based Pro and Business plans</td>
<td>Core: $20/month ($18 billed yearly)</td>
<td>Pro: $25/month</td>
<td>Plus: $8/month (Grok models only)</td>
</tr>
</tbody></table>
<p>A note on Lovable pricing: its pricing page sells Pro and Business on credits rather than seats, and the plan table didn't load when I checked, so I'm not quoting a number. What the page does confirm is that the free plan gives 5 build credits a day (capped at 30 a month) plus 20 Cloud credits a month, and paid plans add a monthly credit balance on top of those daily grants.</p>
<h2>Lovable vs Bolt: which is better for a first version?</h2>
<p>Both are aimed at people who want a working web app without writing code, so this is the comparison most founders actually face.</p>
<p><strong>Lovable</strong> describes itself as a full-stack engineer you chat with, and it pushes your project to GitHub and deploys in one click. Its newer model puts building, hosting and AI features in your app on one credit balance. Hosting a small app is usually covered by the included grant, but the pricing FAQ is clear that apps with serious traffic or size start drawing on your credits. That's fair, but it means your hosting bill and your "AI typing" bill now share one pot, so watch it as you grow.</p>
<p><strong>Bolt</strong> is token-based. The free plan includes 1M tokens a month (with a 300K daily limit), and Pro at $25/month includes 10M tokens with rollover, a custom domain and no Bolt branding. Teams is $30 per member per month. Every plan, including free, lists unlimited databases and hosting, and you can start from a blank prompt, a Figma file or a GitHub repo.</p>
<p>In practice:</p>
<ul>
<li>Pick <strong>Lovable</strong> if you want the most guided experience and a clean GitHub handoff later.</li>
<li>Pick <strong>Bolt</strong> if you want predictable token budgets, want to start from an existing design or repo, or need a custom domain on the entry paid plan.</li>
</ul>
<h2>Lovable vs Replit: what's the real difference?</h2>
<p>Replit is a full cloud development environment that grew an AI agent, rather than an AI builder that later exposed the code. That changes how it feels.</p>
<p>According to Replit's product page, its Agent builds from a chat description, uses Replit's own database and user authentication, can connect services like Stripe through stored keys, and periodically tests the app in a browser and fixes what it finds. Core costs $20/month (or $18/month billed yearly) and includes $20 of usage toward the more powerful models. Pro is $100/month ($90 billed yearly) with $100 of credits, up to 10 parallel agents and database rollback up to 28 days.</p>
<img src="https://images.unsplash.com/photo-1504707748692-419802cf939d?w=1200&amp;q=80" alt="Open MacBook Pro on a grey desk, ready for building an app" style="display:block;margin:0 auto" />

<p><em>Photo: Ben Kolde on Unsplash</em></p>
<p>So the honest answer to "Lovable vs Replit" is:</p>
<ul>
<li><strong>Lovable</strong> is better when the person driving is non-technical and the product is a web app with a typical dashboard, forms and auth.</li>
<li><strong>Replit</strong> is better when you want to see and touch everything (files, terminal, database) in the same place, or when the app includes background jobs, bots or scripts that don't fit neatly into a web-app template.</li>
</ul>
<h2>Lovable vs Cursor: different tools for different stages</h2>
<p>People compare these because both "write code with AI", but they sit at opposite ends of a project.</p>
<p>Cursor is an editor and agent that works on a real codebase: a desktop IDE, a terminal CLI, cloud agents that work in parallel and review pull requests in GitHub. You choose between models from several labs, including Cursor's own Composer. It also changed hands this year: Cursor's site says it is now part of SpaceX, in a post dated August 14, 2026, and its pricing now bundles Grok models. Plus is $8/month for Grok models only, Premium is $30/month with cloud agents and code reviews, and third-party models on the paid tiers are billed separately by usage.</p>
<p>That makes the decision simple:</p>
<ul>
<li>If you can't read code, Cursor will feel like being handed the keys to a workshop. Start with an app builder.</li>
<li>If your Lovable or Bolt project is already on GitHub and a developer is now maintaining it, Cursor (or a similar editor) is where that work tends to move.</li>
</ul>
<h2>What about Lovable vs v0?</h2>
<p>v0 is Vercel's AI app builder (Vercel's own v0 docs now point to v0.app). I couldn't verify its current plans or features this month, so check its site directly before deciding. The general rule still holds: if your app's success depends on SEO and fast page loads, a framework with server rendering (like Next.js) gives you a better base than a purely client-rendered single-page app.</p>
<h2>Which one should you use? A quick decision guide</h2>
<ol>
<li><strong>You're non-technical and need a clickable product to show investors or early users:</strong> Lovable or Bolt.</li>
<li><strong>You want an agent, but also a real environment with a database, terminal and hosting:</strong> Replit.</li>
<li><strong>You (or your developer) already have a codebase and want AI to speed up the work:</strong> Cursor.</li>
<li><strong>You care about search traffic from day one:</strong> favour a server-rendered setup such as Next.js, whichever tool generates it.</li>
<li><strong>You're handling payments, health or personal data:</strong> use any tool to prototype, but plan a security review before launch.</li>
</ol>
<h2>When the AI tool stops being enough</h2>
<p>Every one of these tools is excellent at the first 70% of an app. The trouble shows up in the last 30%, and it usually arrives as one of these:</p>
<ul>
<li><strong>The AI starts breaking things it fixed yesterday.</strong> Each prompt patches one screen and quietly damages another, and credits or tokens burn on going in circles.</li>
<li><strong>Security is "probably fine".</strong> Database rules are open, API keys sit in the frontend, or every logged-in user can read every other user's rows. On Supabase-backed apps this is usually a Row Level Security problem; I wrote about it in <a href="https://muhammadmoiz.dev/blog/supabase-rls">Supabase RLS explained</a>.</li>
<li><strong>Payments, roles and edge cases get complicated.</strong> Subscriptions with upgrades, refunds and team accounts are where generated code gets fragile.</li>
<li><strong>Google can't see your site.</strong> A client-rendered app often shows search engines an almost empty page.</li>
<li><strong>You can't hire anyone to maintain it.</strong> Nobody can explain how the code is structured, so every change is a gamble.</li>
</ul>
<blockquote>
<p><strong>Keep the AI tool, fix the foundation:</strong> Hitting these limits doesn't mean starting over. Export the code to GitHub, get it reviewed, fix the risky parts, and keep building on it with a developer (and AI) in the loop.</p>
</blockquote>
<h2>What this means for a founder</h2>
<p>The tool you start with matters less than the moment you notice it's no longer enough. Use Lovable, Replit or Bolt to learn what users want quickly and spend little doing it. Once the app holds real data or real revenue, treat the generated code like code from any new contractor: review it, secure it and give it a structure someone can maintain.</p>
<p>If you're at that point, I take AI-built apps from Lovable, Bolt and Replit and <a href="https://muhammadmoiz.dev/services/ai-app-production-ready">make them production-ready</a>, or start with a <a href="https://muhammadmoiz.dev/services/production-audit">production audit</a> if you just want to know where you stand.</p>
<h2>Sources</h2>
<ul>
<li><a href="https://lovable.dev/pricing">Lovable pricing and FAQ</a> (checked October 2026)</li>
<li><a href="https://replit.com/pricing">Replit pricing</a> (checked October 2026)</li>
<li><a href="https://replit.com/products/agent">Replit Agent product page</a></li>
<li><a href="https://bolt.new/pricing">Bolt pricing</a> (checked October 2026)</li>
<li><a href="https://bolt.new">Bolt homepage</a></li>
<li><a href="https://cursor.com/pricing">Cursor pricing</a> (checked October 2026)</li>
<li><a href="https://cursor.com">Cursor homepage</a></li>
<li><a href="https://vercel.com/docs/v0">Vercel v0 documentation</a></li>
<li>Cover photo: Mohammad Rahmani on Unsplash</li>
</ul>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Offline-First POS: Lessons From Building Oscar in React]]></title><description><![CDATA[Originally published at muhammadmoiz.dev. A point of sale system has one job that matters more than any feature: it must keep selling. On a busy Friday…]]></description><link>https://muhammadmoiz.hashnode.dev/offline-first-pos-lessons-from-building-oscar-in-react</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/offline-first-pos-lessons-from-building-oscar-in-react</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Wed, 28 Oct 2026 07:17:06 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published at</em> <a href="https://muhammadmoiz.dev/blog/offline-first-pos-react"><em>muhammadmoiz.dev</em></a><em>.</em></p>
<p>A point of sale system has one job that matters more than any feature: it must keep selling. On a busy Friday night a restaurant can't tell a queue of customers to wait until the Wi-Fi comes back.</p>
<p>When I worked on Oscar, a POS for restaurants and retail businesses in Pakistan, "works offline" wasn't a nice-to-have. It shaped the whole architecture. Here's how an offline-first POS works in the browser, and the lessons I'd pass on to any founder planning one.</p>
<h2>What "offline-first" actually means</h2>
<p>Many apps say they "work offline" when they really mean they show a friendly error. Offline-first flips the usual design:</p>
<ul>
<li><strong>The app reads and writes a local database first.</strong> The screen never waits for the server.</li>
<li><strong>The server is updated in the background</strong> whenever a connection is available.</li>
<li><strong>The cloud stays the source of truth for reporting,</strong> so owners still see every branch's sales in one place.</li>
</ul>
<p>For a cashier, the result is simple: punching an order, taking payment and printing a receipt behave exactly the same with or without internet.</p>
<h2>The architecture in one picture</h2>
<p>The React app reads and writes a local database in the browser, so it works offline. When a connection is available, a sync process sends local changes to the backend, which updates the main database used for reporting.</p>
<ol>
<li>React POS app ↔ Local database: Read / write</li>
<li>Local database ↔ Backend API: Sync when online</li>
<li>Backend API → Main database</li>
</ol>
<p>On Oscar, the local database was <strong>WatermelonDB</strong> running on browser storage, so there was no app to install. The backend received the synced changes and mapped them to the main database.</p>
<h2>Lesson 1: design the data before the screens</h2>
<p>With a normal web app you can sketch the UI first and add API calls later. Offline-first doesn't forgive that. Every feature started with <strong>data modelling</strong>: the tables, the relations between them, and the functions that create, update and query records.</p>
<p>An order, for example, isn't one row. It has items, modifiers, discounts and payments, and all of them must be created locally, in one go, without asking the server for IDs. Here's a simplified model to show the idea:</p>
<pre><code class="language-ts">import { Model } from "@nozbe/watermelondb";
import { children, field, date } from "@nozbe/watermelondb/decorators";

export class Order extends Model {
  static table = "orders";
  static associations = {
    order_items: { type: "has_many", foreignKey: "order_id" },
    payments: { type: "has_many", foreignKey: "order_id" },
  } as const;

  @field("type") type!: "dine_in" | "takeaway" | "delivery";
  @field("status") status!: string;
  @date("created_at") createdAt!: Date;
  @children("order_items") items!: unknown;
  @children("payments") payments!: unknown;
}
</code></pre>
<p>If the data model is right, the screens are easy. If it's wrong, every new feature fights the sync.</p>
<h2>Lesson 2: sync is a product feature, not a background detail</h2>
<p>The hardest bugs in offline apps aren't on the screen. They're in the sync: an order that arrives twice, a discount that disappears, two devices editing the same table. What helps:</p>
<ul>
<li><strong>Every record is created with its own unique ID on the device,</strong> so the server never has to invent one and duplicates are easy to detect.</li>
<li><strong>Changes sync as a batch,</strong> so a half-sent order never shows up in reports.</li>
<li><strong>The backend owns the rules for conflicts.</strong> When two devices change the same thing, one place decides, the same way every time.</li>
</ul>
<h2>Lesson 3: real-time and offline can live together</h2>
<p>Kitchens want orders the moment they're punched. On Oscar, orders reached the <strong>Kitchen Display System over WebSockets</strong>, and prints went to the right printer (receipt, kitchen or bar) through <strong>QZ Tray</strong>. Each real-time feature needs its own answer to "what happens offline?", decided at design time, not after the first outage.</p>
<blockquote>
<p><strong>For founders:</strong> If your product is used at a counter, in a warehouse or on the road, ask early: "What happens when the internet drops?" Adding offline support later usually means rebuilding the data layer.</p>
</blockquote>
<h2>Lesson 4: test the bad days, not the good ones</h2>
<p>An offline-first app needs testing in the conditions it was built for:</p>
<ul>
<li>Turn the network off in the middle of an order, then back on.</li>
<li>Punch orders on two devices while one is offline.</li>
<li>Close the browser before a sync finishes and reopen it.</li>
<li>Fill the local database with a busy week of orders and check the app is still fast.</li>
</ul>
<p>These tests find the problems that real customers would otherwise find for you.</p>
<h2>Is offline-first right for your product?</h2>
<p>It adds real work, so it's worth it when people <strong>must keep working without a connection</strong>: POS systems, field-service apps, inventory and delivery tools. For a typical SaaS dashboard used at a desk, a well-built online app with good error handling is usually enough.</p>
<p>If you're planning a POS or another app that has to keep working when the internet doesn't, you can read how I built Oscar in the <a href="https://muhammadmoiz.dev/work/oscar-pos">case study</a>, or <a href="https://muhammadmoiz.dev/contact">tell me about your project</a>.</p>
<hr />
<p>I'm Muhammad Moiz, a full-stack developer who builds web apps, SaaS and POS systems, and takes AI-built apps (Lovable, Bolt, Replit) to production. <a href="https://muhammadmoiz.dev/contact">Get in touch</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Supabase RLS Explained: The Security Hole in Most AI-Built Apps]]></title><description><![CDATA[If you built your app with Lovable, Bolt or v0, there's a good chance it runs on Supabase. And there's a real chance that anyone on the internet can read…]]></description><link>https://muhammadmoiz.hashnode.dev/supabase-rls-explained-the-security-hole-in-most-ai-built-apps</link><guid isPermaLink="true">https://muhammadmoiz.hashnode.dev/supabase-rls-explained-the-security-hole-in-most-ai-built-apps</guid><dc:creator><![CDATA[Muhammad Moiz]]></dc:creator><pubDate>Tue, 27 Oct 2026 18:08:56 GMT</pubDate><content:encoded><![CDATA[<p>If you built your app with Lovable, Bolt or v0, there's a good chance it runs on Supabase. And there's a real chance that anyone on the internet can read your users' data right now.</p>
<p>Not because Supabase is insecure. Because of one setting that's easy to get wrong: <strong>Row Level Security (RLS)</strong>.</p>
<p>This post explains what RLS is, the mistakes that leave data exposed, and how to check your own app in five minutes.</p>
<h2>Why your Supabase key is public (and why that's fine)</h2>
<p>Supabase gives every project an API that talks directly to your Postgres database. Your frontend calls it with the <strong>anon key</strong> (newer projects call it the <strong>publishable key</strong>).</p>
<p>That key is meant to be public. It ships in your JavaScript bundle, and anyone can open DevTools and copy it.</p>
<p>So what stops someone from using your key to read every row in your <code>profiles</code> or <code>orders</code> table?</p>
<p><strong>Only RLS.</strong> RLS policies are rules inside Postgres that decide which rows each request is allowed to see or change. If RLS is off, the public key is effectively a master key to that table.</p>
<h2>The 5 mistakes I'd look for first</h2>
<h3>1. RLS is turned off</h3>
<p>Tables created in the Supabase dashboard's Table Editor have RLS enabled by default. Tables created with raw SQL or migrations, which is how many AI tools generate them, often don't.</p>
<p>With RLS off, this request returns every row:</p>
<pre><code class="language-bash">curl 'https://YOUR-PROJECT.supabase.co/rest/v1/profiles?select=*' \
  -H "apikey: YOUR_ANON_KEY" \
  -H "Authorization: Bearer YOUR_ANON_KEY"
</code></pre>
<h3>2. RLS is on, but the policy allows everything</h3>
<p>When you turn RLS on with no policies, Postgres blocks everything and the app "breaks." The quick fix people (and AI tools) reach for is:</p>
<pre><code class="language-sql">create policy "allow all" on profiles
for select using (true);
</code></pre>
<p><code>using (true)</code> means "every row, for everyone." RLS is technically on, but it protects nothing.</p>
<h3>3. Reading is protected, but writing isn't</h3>
<p>Policies have two parts:</p>
<ul>
<li><code>using (...)</code> decides which existing rows you can <strong>see, update or delete</strong></li>
<li><code>with check (...)</code> decides what new or changed rows you're <strong>allowed to write</strong></li>
</ul>
<p>A common gap: a solid <code>select</code> policy, but an <code>insert</code> or <code>update</code> policy without <code>with check</code>. A user can then write rows with someone else's <code>user_id</code>, or update a field like <code>role = 'admin'</code>.</p>
<h3>4. The service role key is in the frontend</h3>
<p>The <strong>service role key</strong> (newer projects: <strong>secret key</strong>) skips RLS completely. It belongs only on a server. If you can find it in your frontend code or <code>.env</code> files that get bundled, rotate it now.</p>
<h3>5. Policies trust data the user controls</h3>
<p><code>user_metadata</code> (<code>raw_user_meta_data</code>) can be edited by the user. A policy like "allow if the user's metadata says <code>role = admin</code>" can be bypassed by the user simply editing their own metadata. Store roles in <code>app_metadata</code> or a separate table only your server can write.</p>
<h2>What a correct setup looks like</h2>
<p>Here's a typical "users only see their own rows" setup for a <code>notes</code> table:</p>
<pre><code class="language-sql">-- 1. Turn RLS on
alter table public.notes enable row level security;

-- 2. Read: only your own notes
create policy "Users can read their own notes"
on public.notes for select
to authenticated
using ( (select auth.uid()) = user_id );

-- 3. Create: only notes that belong to you
create policy "Users can create their own notes"
on public.notes for insert
to authenticated
with check ( (select auth.uid()) = user_id );

-- 4. Update: only your notes, and you can't hand them to someone else
create policy "Users can update their own notes"
on public.notes for update
to authenticated
using ( (select auth.uid()) = user_id )
with check ( (select auth.uid()) = user_id );

-- 5. Delete: only your own notes
create policy "Users can delete their own notes"
on public.notes for delete
to authenticated
using ( (select auth.uid()) = user_id );

-- 6. Keep it fast
create index on public.notes (user_id);
</code></pre>
<p>Two details worth knowing:</p>
<ul>
<li>Wrapping <code>auth.uid()</code> in <code>(select ...)</code> lets Postgres evaluate it once per query instead of once per row, which Supabase recommends for performance.</li>
<li><code>to authenticated</code> means logged-out visitors get nothing, even before the condition runs.</li>
</ul>
<h2>Check your own app in 5 minutes</h2>
<p><strong>Step 1: find tables with RLS off.</strong> Run this in the Supabase SQL Editor:</p>
<pre><code class="language-sql">select tablename, rowsecurity
from pg_tables
where schemaname = 'public'
order by rowsecurity, tablename;
</code></pre>
<p>Any table with <code>rowsecurity = false</code> is readable with your public key.</p>
<p><strong>Step 2: look for "allow all" policies.</strong></p>
<pre><code class="language-sql">select tablename, policyname, cmd, qual, with_check
from pg_policies
where schemaname = 'public';
</code></pre>
<p>Look for <code>qual</code> or <code>with_check</code> equal to <code>true</code>, and for <code>insert</code>/<code>update</code> policies with an empty <code>with_check</code>.</p>
<p><strong>Step 3: open the Security Advisor.</strong> In the Supabase dashboard, the Security Advisor flags tables without RLS and other common issues. Fix everything marked as an error.</p>
<p><strong>Step 4: test as a stranger.</strong> Run the <code>curl</code> request from mistake #1 against your important tables. If you get real data back without logging in, that table is exposed.</p>
<h2>The bigger picture</h2>
<p>None of this is specific to AI tools. I worked with the same idea for years with Firebase security rules: the browser can never be trusted, so every permission has to be enforced in the database or on the server. AI builders are great at getting the screens working. They're less reliable at this invisible layer, because a missing policy doesn't show up as a bug until someone finds it.</p>
<p>If your app handles real user data, it's worth an hour to check before launch.</p>
<hr />
<p><em>I'm Muhammad Moiz, a full-stack developer who helps founders take AI-built apps to production. If you'd like a second pair of eyes on your Supabase setup, I offer a</em> <a href="https://muhammadmoiz.dev/services/production-audit"><em>fixed-price production audit</em></a><em>.</em></p>
]]></content:encoded></item></channel></rss>