Back to blog
Tech Stack Next.js PostgreSQL Architecture SaaS

Picking a Stack for Your SaaS: How to Decide, Tool by Tool

By Ken B Portfolio · Published on November 5, 2026
Illustration of a developer working at a laptop

You want an app that is cheap to run and easy to change for years. The tools it is built on, its stack, decide both.

“Which framework should we use?” is the wrong first question. The right one is: what must the app do, and what will each tool cost to run and change?

Every tool is a bill and a habit. Pick too many and you pay for tools you do not use. Pick the wrong one and every change fights it.

Here is how I decide, one question at a time. Two apps I built are the examples: an outreach app and a job-alert app.

The hosting limit I missed

Before: every push to GitHub built a new version of the job-alert app on Vercel, by itself. Each build adds about 135 MB to the free plan’s 10 GB storage cap, and I pushed about 30 times a day. The cap was filling up fast.

After: a push now builds nothing. I build by hand when a release is ready, and a change to notes only skips the build.

Nothing was wrong with the tool. I had not checked how it bills. That is question 3 below.

How to decide, tool by tool

1. Write down the jobs first

List what the app must do, in plain words: people sign in, they pay, data is saved, errors are caught. Each tool must do one of those jobs. A tool with no job on the list does not go in.

My example: the table further down has ten jobs, each with one tool and one reason.

2. Buy the common parts, build what makes you different

Sign-in and payments work the same in every app. Buy them. Spend your money on the part your customers pay you for.

My example: Clerk handles sign-in, so I store no passwords. Stripe handles payments, with a billing page customers manage themselves. My own code goes into finding jobs and writing proposal drafts.

3. Check how it bills before you pick it

Per user, per request, per build, per gigabyte. Then picture the bill with ten times the users, or ten times the changes.

My example: the build story above. Another one: a screen that asks “anything new?” all day, on a host that bills per request, grows the bill with every ask. Pushing the news instead fixes it. Polling vs pub/sub.

4. Can a tool you already have do it?

Every new tool is one more bill, one more login and one more thing to learn.

My example: one PostgreSQL database covers customer walls (row-level security), AI search by meaning (pgvector) and loose-shaped data stored as JSON. No extra service for any of them.

5. Can you change your mind later?

Keep each outside service behind one door in the code, so swapping it touches one place.

My example: in the job-alert app, all Stripe calls live in one billing file.

6. Can you undo a bad change?

Every database change should be saved as a file, and every release should be easy to roll back.

My example: the job-alert app has 127 numbered change files. A mistake is fixed with a new file, never by editing an old one. On Vercel every build is kept, so going back to the last good release moves the address to it. Nothing is rebuilt.

7. Is it only a matter of taste? Pick one and keep it.

Some choices have no right answer. The cost comes from mixing two.

My example: one app uses Mantine for its screens, the other shadcn/ui with Tailwind. Both work. Each app keeps one.

Where the questions led: my stack

Every row has a job and a reason.

JobToolWhy
App and pagesNext.js with TypeScriptPages and server code in one project, one language end to end
DatabasePostgreSQLTables, JSON, per-customer walls and AI search in one database
Database hostDocker on my laptop, Neon liveSame database everywhere; a separate one for dev and for live
Database changesPlain SQL files, numberedEvery change is a file, reviewed, run the same way on each database
Sign-inClerkGoogle sign-in and sessions ready; no passwords stored by me
PaymentsStripePlans, webhooks and a billing page customers manage themselves
HostingVercelEvery build kept; going live or rolling back moves the address, nothing rebuilt
AIOpenAI, plus Anthropic for some featuresPick the model per task, by cost and quality
ErrorsSentryLive errors show who, where and when
Browser sideChrome extensions (Manifest V3)Read the page the user already has open

Same questions, different answers

The questions stay the same. The tools change with the app.

  • A content site needs none of this. This blog runs on Astro: pages, no database.
  • One customer, one database, or an internal tool: skip the per-customer walls.

Your part

Tell me what the app must do. I answer the seven questions for each tool and give you one line on why, like the table above.

Hiring someone else? Ask them the same seven questions. A developer who answers all of them in plain words has thought about your bill and about the next developer.

The short version

Start from the jobs the app must do. Buy the common parts, check how each tool bills before you pick it, use what you already have, and make every change easy to undo. Every SaaS I build follows it.

Which tool in your app could you not say how it bills?

NOTSUREWHATTOBUILDON?

Tell me what your app needs to do. I'll recommend a tool for each job, explain why I'd pick it, and give you a rough monthly running cost at launch. I'll also flag what could make that cost grow.

More Posts

All posts