Blog

Notes on shipping AI features and production-ready apps.

Practical guides on adding AI features to SaaS products, making AI-built apps production-ready, and fixing slow Next.js and Node.js apps.

AI features

  1. · 3 min read

    12 AI feature ideas for B2B SaaS that users actually use

    AI features that save B2B users real time, grouped by the data you already have, with what each needs to work well in production.

    Read →
  2. · 4 min read

    How to add AI features to your SaaS without wasting a quarter

    A practical way to pick, build and ship your first AI feature in weeks, not quarters, with evals and cost limits from day one.

    Read →
  3. · 3 min read

    How to keep LLM costs under control in production

    Seven levers that cut the cost of AI features without hurting quality, plus the limits every SaaS should set before launch.

    Read →
  4. · 3 min read

    LLM evals for product teams: a practical starting point

    How to build a small, useful evaluation set for your AI feature so every prompt or model change comes with a number, not a feeling.

    Read →
  5. · 3 min read

    RAG vs fine-tuning: which one your SaaS actually needs

    When retrieval beats fine-tuning, when it doesn't, and why most SaaS AI features need neither for their first version.

    Read →
  6. · 3 min read

    Shipping an AI feature safely: guardrails, fallbacks and human review

    The checks, limits and UI patterns that keep an AI feature from leaking data, embarrassing your brand or breaking when the provider has a bad day.

    Read →
  7. · 3 min read

    Turning messy documents into structured data with LLMs

    How to build a reliable LLM pipeline that reads PDFs, emails and forms and writes clean, validated records into your database.

    Read →

App rescue

  1. · 3 min read

    Adding tests to an app that has none: where to start

    A practical order for adding tests and CI to an untested Next.js or Node.js codebase, starting with the paths that cost money when they break.

    Read →
  2. · 3 min read

    How to migrate from Vue to React without downtime

    An incremental, route-by-route approach to moving a live Vue app to React while you keep shipping features, with the pitfalls that slow migrations down.

    Read →
  3. · 3 min read

    Is your Lovable, Bolt or v0 app ready for production? A checklist

    A 25-point checklist to run before real customers and real money touch an app built with an AI app builder, covering security, data, payments and deploys.

    Read →
  4. · 3 min read

    Should you rescue or rewrite your AI-built app?

    How to decide between fixing an AI-built codebase and starting over, with the signals that point each way and what each option really costs.

    Read →
  5. · 3 min read

    Stripe webhooks done right: signatures, idempotency and retries

    How to handle Stripe webhooks in a Next.js or Node.js SaaS so payments can't be faked, events aren't processed twice, and access always matches billing.

    Read →
  6. · 3 min read

    Supabase Row Level Security: the mistakes AI-built apps make

    Why RLS is the most common critical issue in Supabase apps built with AI tools, the six mistakes behind it, and how to test your policies.

    Read →
  7. · 3 min read

    The 7 security holes I see most in AI-built apps

    The security issues that come up again and again in apps built with Cursor, Lovable, Bolt and v0, why AI tools create them, and how to fix each.

    Read →

Performance

  1. · 3 min read

    How to fix LCP, INP and CLS in a Next.js app

    What each Core Web Vital measures, the usual causes in Next.js and React apps, and concrete fixes for each, from images to hydration to layout shifts.

    Read →
  2. · 3 min read

    N+1 queries: the hidden reason your dashboard is slow

    What N+1 queries are, how ORMs and React components create them without anyone noticing, how to find them, and four ways to fix them.

    Read →
  3. · 3 min read

    Next.js performance checklist: what I check first in an audit

    The checks that find most of the speed problems in Next.js apps, in the order I run them, from measuring real users to bundles, data fetching and caching.

    Read →
  4. · 3 min read

    Postgres indexes every SaaS app needs (and how to find missing ones)

    The indexes multi-tenant SaaS apps almost always need, how to find slow queries and missing indexes in Postgres, and the mistakes that make indexes useless.

    Read →

Working together

  1. · 3 min read

    Freelance senior engineer vs agency vs full-time hire for your SaaS

    An honest comparison of the three ways to add engineering capacity to a SaaS team, with costs, speed, risks and when each one is the right choice.

    Read →
  2. · 3 min read

    What a code audit includes, and what it should cost

    What you should get from a code or performance audit of your SaaS, how long it takes, typical price ranges, and red flags when hiring someone to do one.

    Read →