Updated 9 min read

How we choose a tech stack, and why it's usually end-to-end TypeScript

Vladyslav Sokolovskyi Co-founder & CTO

In short

We choose a stack for a new web product or SaaS by four questions: can you hire for it, does it fit the product, how cheaply can it change, and will it grow without a rewrite. For small teams the answer is usually end-to-end TypeScript: Node.js, Nuxt or Next.js, tRPC, Drizzle ORM, PostgreSQL and Zod, so one set of types runs from the database to the UI. We choose differently for public APIs used by other languages, heavy data or ML work, or when your team already has a stack that works.

When a client asks what we’ll build their new product on, the answer is usually end-to-end TypeScript: Node.js, Nuxt or Next.js, tRPC, Drizzle ORM and PostgreSQL, with one set of types running from the database to the UI. That isn’t taste. It comes from four questions we ask about every new web product or SaaS, and for small teams the answers point to TypeScript more often than not. This post covers those questions, the stack we default to, its real trade-offs and when we choose differently. It’s the technical side of our custom software development work.

What actually matters when you choose a stack?

The specific framework, React or Vue, this ORM or that one, rarely makes or breaks a product. Four questions do:

  1. Can you hire for it? A mainstream stack means a deep talent pool and easy handovers. A niche stack makes you dependent on the few people who know it. For most companies this is the most important factor.
  2. Does it fit the product? A content-heavy site, a real-time app, a data-heavy AI product and a public API have different natural fits.
  3. How cheaply can you change it? Early on, the biggest risk is building the wrong thing slowly. Favor a stack that makes change cheap over performance you won’t need for years.
  4. Will it grow without a rewrite? You don’t need to handle millions of users on day one, but you shouldn’t pick something you’ll have to throw away at your first success. We cover the architecture side in SaaS architecture from MVP to scale.

Novelty is not on the list. Boring, proven and well-supported tools beat exciting ones for a business that needs its software to last.

Why does end-to-end TypeScript work for small teams?

End-to-end TypeScript means the database schema, the API and the frontend are all written in TypeScript and share the same type definitions. Two things follow from that, and both matter more the smaller the team is.

The first is one language. Every engineer can work across the whole product, from a database migration to a button. On a small team there’s no single backend person whose holiday stops the frontend, and code review doesn’t depend on who knows which language.

The second is types that cross the network. Most bugs that reach production aren’t clever. The API renamed a field and the frontend still reads the old one. A database column is nullable and the code assumes it isn’t. A new parameter is required and an old caller never sends it. In a typical setup the backend and frontend are typed separately and agree by convention, so the API is exactly where types stop. End-to-end types close that gap:

PostgreSQL schema (Drizzle) → backend procedure (tRPC) → frontend call → component props

Change anything in that chain and the compiler points at every place that has to change, before anything ships. The “API returned something the frontend didn’t expect” class of bug is gone by construction rather than by careful testing. It also makes refactoring safe: reshaping a core data structure six months in means following the compile errors, not days of searching the codebase.

The usual objection is that all this typing slows you down. You do write type definitions up front. But you stop writing hand-made API clients and glue code, and you stop debugging mismatches in production. The time moves from unpredictable debugging to cheap definitions, and the speed holds as the codebase grows.

What stack do we use by default?

LayerOur defaultWhyWhen we pick something else
LanguageTypeScript in strict modeOne language and one set of types across the productPython for data and ML services, Go for high-throughput services
RuntimeNode.js (LTS)Supported by every host, cloud provider and libraryBun on some projects for faster installs and test runs, where the deployment target supports it
FrontendNuxt (Vue) or Next.js (React)Mature server rendering, good performance and SEOAstro for content-heavy sites; we follow your team’s existing choice
APItRPCTyped calls from frontend to backend with no code generationREST with an OpenAPI spec for public APIs, partners or clients not written in TypeScript
DatabasePostgreSQL with Drizzle ORMTyped queries over the most capable open-source database; pgvector for AI featuresAn existing MySQL, MongoDB or DynamoDB database we extend rather than migrate
ValidationZodOne schema validates input at runtime and produces the types used everywhere elseRarely replaced
HostingContainers or managed services in EU regions, infrastructure as code (Terraform or SST)Reproducible environments, preferably in the client’s own cloud accountYour existing AWS or GCP setup

A few notes on these choices:

  • Node.js is the default because it runs everywhere and every library supports it. Bun is fast and we use it where it helps, mainly for tooling and tests, but we don’t make a client’s production depend on it unless the hosting and libraries are known to work with it.
  • Nuxt or Next.js is decided per project. If your team knows Vue, we use Nuxt; if it knows React, Next.js. The rest of the stack stays the same.
  • Drizzle is a thin, SQL-like layer, not a heavy abstraction. The schema is TypeScript, queries are checked at compile time, and you keep the full power of PostgreSQL, including pgvector for vector search in RAG (retrieval-augmented generation, where an AI model answers from your own documents).

What are the trade-offs?

No stack is free. These are the ones we tell clients about before we start:

  • tRPC couples the frontend and backend. It works best when both are TypeScript, ideally in one repository. It is not a public API format, so when partners, mobile apps or other languages need the API, we add REST endpoints with an OpenAPI spec next to it.
  • Types exist only at compile time. Anything that comes from outside, such as forms, webhooks or third-party APIs, still has to be validated at runtime. That’s what Zod is for, and skipping it gives a false sense of safety.
  • Drizzle hides less than heavier ORMs. That’s why we like it, but the team has to be comfortable with SQL and careful with migrations.
  • Node.js isn’t built for CPU-heavy work. Video processing, large numeric jobs or model training go into a separate worker or a Python service.
  • The JavaScript ecosystem moves fast. Keeping dependencies patched is real, recurring work, and it’s what our Care Lite plan (€4,200/month) covers after launch.
  • Clever types slow a team down. We keep types boring and readable; if a type needs a paragraph of explanation, it’s usually too clever.

When do we choose a different stack?

  • You already have a team and a stack that works. Then we extend it rather than migrate it. Our engineers work in React, Vue, Node.js, TypeScript and Python and can join an existing team through staff augmentation from €45/hour (mid-level) or €60/hour (senior).
  • The core of the product is data engineering or machine learning. The product UI and API can still be TypeScript, with a Python service for the heavy part.
  • The main product is a public API used by many external clients. Then we design REST and OpenAPI first.
  • A standard product already does the job. Sometimes the right stack is Shopify, Fortnox or a SaaS tool plus a small integration, not custom code at all.

What about apps built with Lovable, Bolt or Cursor?

Apps from AI app builders usually arrive as React with Supabase or Firebase. We don’t rewrite them into our stack by default. In a Vibe-Code Rescue we first stabilize what is there: database access rules, login, tests, CI/CD and a move to a repository and cloud account the client owns. Parts move onto typed APIs and PostgreSQL only where that is cheaper over the next year. The code and security audit costs €1,900 for a typical app and takes 3–5 business days.

What should you ask your developer about the stack?

You don’t need to evaluate frameworks to make a good decision. Ask these questions and listen for specific answers:

  1. How easy will it be to hire more people, or another vendor, for this stack?
  2. Why this stack for our product, and what would make you choose differently?
  3. How quickly can we change direction if users teach us something?
  4. What happens to the code if you’re not available? Where is it, and who has access?
  5. Where does it run, and is the cloud account in our name?
  6. How are dependencies and security updates handled after launch, and what does that cost?

Watch for four red flags: a stack chosen because an engineer wanted to learn it, microservices and Kubernetes for a product with no users yet, choices that lock you into one vendor or host, and a stack only one person understands.

What to do next

If you’re planning a new product, the stack recommendation is part of discovery: you get it in writing, with the reasons and trade-offs, together with a fixed price for the build. Custom projects typically land between €30,000 and €150,000. If you already have a codebase and wonder whether the stack is slowing you down, start with a code audit (from €1,900). Both start on our custom software development page.

Frequently asked questions

What is an end-to-end TypeScript stack?
A setup where the database schema, the API and the frontend are all written in TypeScript and share the same type definitions. A change in the database shows up as a compile error in every part of the code that depends on it, before anything ships.
Why tRPC instead of REST or GraphQL?
tRPC lets a TypeScript frontend call the backend like a typed function, with no schema file or generated client to keep in sync. It only works well when both sides are TypeScript in the same codebase, so for public APIs, partners or apps in other languages we add REST endpoints with an OpenAPI spec.
Do you use Node.js or Bun?
Node.js (an LTS version) is our default runtime, because every host, cloud provider and library supports it. We use Bun on some projects for faster installs and test runs, where the deployment target is known to support it.
Is TypeScript a good choice for AI features?
For most product AI features, yes: the major model providers have TypeScript SDKs, and PostgreSQL with pgvector handles retrieval for RAG. When a workflow needs heavy data processing or model training, we put that part in a separate Python service.
Does the stack change what a project costs?
Not directly. Custom projects with us typically land between €30,000 and €150,000, with a fixed price after discovery, whichever stack we use. A mainstream, typed stack mainly lowers what the product costs to change and hand over later.
Can you work in our existing stack instead?
Yes. If your team already has a mainstream stack that works, we extend it rather than migrate it. Engineers join existing teams from €45/hour (mid-level) or €60/hour (senior).
Vladyslav Sokolovskyi
Written by Vladyslav Sokolovskyi Co-founder & CTO

Vladyslav co-founded Smoother Development and leads architecture and the engineering team in Ukraine. He holds a PhD in computer science and is a senior university lecturer.

Connect on LinkedIn

Need help with your project?

Talk to a founder about what you want to build or fix. You'll get a written next step, not a sales pitch.

Book a 30-minute call

Let's talk about what you want to build

Tell us briefly what you want to build, fix or put into production. You'll talk to a founder, not a salesperson.

Book a 30-minute call

Pick a time in Daniel's calendar. You'll get an invite with a video link, and we'll come prepared with questions about your goal.

Pick a time
  1. 1 A founder reads your message and usually replies within one business day.
  2. 2 We agree a time for a 30-minute call to understand your goal, systems and constraints.
  3. 3 You get a written next step: a fixed-price proposal, a paid audit, or an honest "we're not the right fit".

Prefer e-mail? [email protected]

Or send us a message

Privacy policy *