

What is a Tech Stack? A Quick Reference to Answer Claude Code in 5 Seconds
🍜 What is a Tech Stack? A Quick Reference to Answer Claude Code in 5 Seconds
A tech stack is the set of technologies pieced together into one product: the language to write with, a ready-made framework to avoid rewriting the basics, where to save data, and where to run your app around the clock. When you build an app with Claude Code, it will pause and ask you to choose what you want. This article is a quick reference so you can answer decisively in five seconds, even if you've never written a line of code.
A familiar scene: you describe your product in English, Claude Code runs for five minutes, then asks "Do you want to store data in SQLite or Postgres?". You don't know what SQLite is. Answering at random feels risky since you might have to redo it, but saying "you pick" means losing control. There's a third way: know the names of your choices and why you'd pick each, without knowing code.
Understanding It With an Everyday Analogy
Think of opening a pho restaurant. You need a cooking recipe (programming language), a ready-made kitchen and cookware so you don't have to forge your own knives (framework, a set of ready-made parts that handle repetitive work), a refrigerator and storage to keep ingredients (database, where you store data), and a storefront for customers to visit (server, where your app runs 24/7).
Changing one piece often drags others with it: switch from gas to electric stove and your pots need changing too. So lock in your choices early to avoid heavy rework.
A real example for an online learning site: Next.js and TypeScript for the interface, Prisma with SQLite to save users and progress, NextAuth for login, Docker on a VPS. Those four items are the entire stack.
How It Works
Claude Code will ask you three kinds of questions:
- Questions where any choice works. For example, which charting library to use. Just pick the most popular one.
- Questions that cost money. For example, a login service that charges per user. Ask the price before you nod.
- Questions where a wrong choice means redoing work. For example, where to store data. Stop and think hard.
The fastest way is to give Claude Code the answers upfront before it even asks. Paste the block below into a CLAUDE.md file at your project root. Claude Code reads this file before each session so it will stop asking about each choice (see more in CLAUDE.md helps Claude Code understand your project):
## Project Stack
- Language: TypeScript
- Framework: Next.js (App Router) + React
- Interface: Tailwind CSS + shadcn/ui
- Data: Prisma, SQLite while building, Postgres when live
- Login: NextAuth (Auth.js), email and password
- Testing: Vitest for math functions, Playwright for main flows
- AI module: call claude -p from within code
- Runtime: VPS + Docker, then behind a reverse proxy with HTTPS
- Rule: ask me before adding any new library
Why these choices:
| Choice | What It Does | Why We Pick It |
|---|---|---|
| TypeScript | JavaScript with type checking | Claude edits 12 files at once; a typo shows immediately instead of crashing at runtime |
| Next.js | Combines interface and backend into one project | One project, one command to deploy. Examples online are plentiful so Claude writes it right the first time |
| Tailwind + shadcn/ui | Style system and ready-made buttons, tables | Code lives in your project, you can customize it |
| Prisma | Middle layer talking to the database | Later you swap SQLite for Postgres with just one config line change |
| SQLite | Lightweight database in a single file | No setup needed, enough for dozens of users |
| NextAuth | Login and permissions | Free, doesn't charge per user |
| Docker | Package your app with its environment | Runs on your server exactly like it does on your computer |
The last line, "ask me before adding any new library", is the most valuable. Without it, every time you ask for a small feature, the project balloons with libraries you didn't know you were using.
What This Means for You: Quick Reference Table
When Claude asks, find the matching answer below.
Product Type and Language
| Claude Asks | You Answer | Pick Something Else If |
|---|---|---|
| Web or command-line script? | Web if others need to see it. Script if it's just for you to run and get a report | Runs on a schedule with no UI needed: script + cron |
| TypeScript or JavaScript? | TypeScript | File under 50 lines, runs once then done |
| Python or Node.js? | Python for data processing and Excel export. TypeScript when there's a web interface | Don't mix two languages in one small project |
| Plain React or Next.js? | Next.js | Just a static page: plain HTML + CSS is enough |
Interface: pick Tailwind + shadcn/ui; decide on dark mode right from the start because adding it later costs several times more work; for charts use Recharts for typical dashboards, ECharts when you have tens of thousands of data points.
Data
| Claude Asks | You Answer | Pick Something Else If |
|---|---|---|
| SQLite or Postgres? | SQLite to start | Many people writing at once, or running multiple app copies in parallel: Postgres |
| Can we save to Google Sheets? | Yes, when under a few thousand rows and you want to edit by hand | Customer data, many people writing: use a real database |
| Where to save file uploads? | On the VPS: in a folder mounted as a Docker volume | On Vercel/Netlify: use Cloudflare R2 or S3, since disk gets erased after each new deploy |
| Do we run migrations? | Yes, and keep the migration files in Git too | Without them, your production database and your local one will drift |
Users and Permissions: need login as soon as your app has data that isn't just yours. Pick NextAuth (free); only pick Clerk when you want a ready-made admin panel and are okay paying per user. For permissions (who can see, edit, delete), you must describe it in words since that's a business decision.
AI in Your Product: use Haiku for simple sorting, Sonnet for most tasks, Opus for hard ones. Golden rule: addition, subtraction, filtering numbers goes to code; understanding text, writing opinions, classifying documents goes to AI. If you make AI add numbers, one day it will add wrong.
Testing and Where to Run
| Claude Asks | You Answer | Pick Something Else If |
|---|---|---|
| Write tests? | Yes, at least one test walking through the main flow | Skip tests and every fix means manually clicking through your whole app |
| Where to put API keys? | .env file, add to .gitignore | Never put keys in code or push to GitHub |
| Vercel or VPS? | VPS + Docker when you need scheduled tasks, file storage, a database, and fixed costs | Vercel when it's just a data-viewing website and you need a link in 10 minutes |
To compare more tool choices, see the vibe coding stack for one person to build a complete app.
When You Hear a Technology Name You've Never Seen, paste this:
You pick for me. Priority: popular, free or cheap, deployable to a VPS
with Docker, minimal dependence on paid services. Write your choice and
why into CLAUDE.md then keep going. Don't ask me about each thing again.
Each instruction does something. "Popular" pushes Claude toward tech he knows best so he writes it right. "Deployable to VPS with Docker" blocks choices that only work on one platform. "Write to CLAUDE.md" turns the choice into documentation so Claude won't pick differently next time.
Three Choices That Are Hard to Change Later
Most choices above can be fixed later. These three are hard or nearly impossible:
- Putting data and logic in the interface. Anyone opening your app can read and change it. Fixing means nearly a rewrite. Ask Claude: "prove to me data is validated on the server side, not just a hidden button".
- Using Sheets or JSON files as a database for real data. Works great until three users write at once, then two overwrite each other and you lose data silently.
- Saving file uploads in your app folder on a platform that doesn't keep the disk. Next time you deploy, your customer's pictures vanish. Say it upfront, don't fix it after.
And three things Claude can't answer for you. Say them in your very first prompt: Who uses it? (just you, the team, or outside customers). Whose data is it? (your company's or other people's). Who pays for the server, how much per month?
Common Misunderstandings
- "You have to know code to pick a tech stack." False. You just need to know what each thing does and why you'd pick it. The table above covers most small projects.
- "Let AI pick everything to go faster." Fast at first, but each Claude session might pick differently. Writing choices into CLAUDE.md keeps your project consistent.
- "More fancy services are always better." Each service added is another bill and another thing that can break. One VPS costing a few dollars a month usually covers internal tools fine.
If you're starting out, read What is Vibe Coding and What is Claude Code first.
📖 Minimum Vocabulary
| Term | What It Means |
|---|---|
| Framework | Ready-made parts that handle repetitive work |
| ORM | Middle layer so code talks to databases without writing SQL, like Prisma |
| Migration | File recording one change to database structure, so you can run it again on another machine |
| .env | File holding secret keys, not pushed to Git |
| Container | App packaged with its environment, runs the same way on every machine |
| Volume | Data folder living outside the container, survives every rebuild |
| Reverse proxy | Front door of the server: takes requests, attaches HTTPS, sends them to your app |
Frequently Asked Questions
I don't know how to code. Do I need to understand tech stack? You don't need to know how to write it, just the names and why you'd pick each. That way you can answer Claude and keep the project in control.
Is SQLite enough for a real app? Yes for dozens of users and internal tools. When many people write data at once, switch to Postgres. With Prisma, switching is just changing one config line.
Should I pick Vercel or VPS? Vercel when you need a data-viewing page with a link right now. VPS with Docker when your app needs scheduled tasks, file uploads, a database, and you want fixed costs.
Claude asks about something I've never heard of. What do I do? Paste the safe answer above: pick the popular, cheap option that runs on VPS with Docker, and ask Claude to write it into CLAUDE.md.
Which choice matters most? Where to save data and file uploads, and validating data on the server side. Pick these wrong and you're nearly doing a full rewrite.
More articles

Why Japan Is Building Its Own AI Instead of Just Using ChatGPT or Gemini

Use AI to Write Trending Captions Without Losing Your Brand Voice

Use Claude to Write a Freelancer Job Post on Upwork and Fiverr in 15 Minutes

AI Builds Software From a Raw Idea: Inside Cole Medin's "AI Software Factory"

What Is PII Redaction in AI? How Chatbots Mask Your Personal Data

Use Claude to Check and Fix Citations in Your Essay or Report in 15 Minutes