r/typescript • u/Low-Schedule996 • Feb 14 '26
Would you choose Express.js.
hi Family, am planning to start a startup in my home town Uganda in Africa. And i am planning to base all my products on this stack based on Express.js. backend Express.js, postgresql DB / MongoDB where necessary, frontend React.js and Tailwind.css. Same backend for Mobile dev and React native for mobile UI.
All will be in Typescript throughout.
What's your opinion on choosing Express.js.
19
Upvotes
37
u/Ok-Hospital-5076 Feb 14 '26
In 2026 i will choose fastify or hono . Very express like with first hand typescript support.
79
u/ninth_reddit_account Feb 14 '26
I’m going to say out of all the decisions your company will have to make, this matters the least.
It doesn’t matter, who cares, just pick one and get on with the job.
11
u/Pleasant-Today60 Feb 14 '26
Express works fine for this honestly. people will tell you to use Fastify or Hono but Express has the biggest ecosystem and the most answers on stackoverflow when something breaks at 2am. for a startup where shipping speed matters more than benchmarks its a solid pick. just make sure you set up proper error handling middleware from day one, thats the thing that bites most Express projects later
4
u/denysov_kos Feb 14 '26
Express proven as a good one. But I would recommend to check Fastify.
From other perspective what you said just a random technology names. You need properly validate your architecture first.
8
u/Affectionate-Job8651 Feb 14 '26
Express is legacy. Hono and Fastify are much faster by default and TypeScript-friendly.
2
u/FalseWait7 Feb 14 '26
Pick something that you know well. This is production so don’t try to learn at work. Express is as good choice as any!
2
u/Unlucky_Chart_7156 Feb 14 '26
A little minor tweak i would recommend is switch the expeess.js with elysia. You get a much better type safety, better speed, and much more out of the box. Use a meta framework like tanstack start to have things like SSR and file based routing for ur frontend. Final stack would be Elysia for the backend, Prisma + Postgres for the database and ORM, Better Auth for authentication, Tanstack start + tailwind for frontend, Expo + uniwind for mobile. Put them in a mono repo like turbo repo have all ur shared types and components and you're good to go.
31
u/burtgummer45 Feb 14 '26
hono is the new hotness. Looks appealing because it has no dependencies.
5
u/GlitteringPenalty210 Feb 16 '26
Encore has been making some waves lately, worth checking out if you're starting from scratch. The declarative infra approach paired with AI tooling could be huge for small teams. Hono is solid too if you want something more lightweight.
Honestly at the startup stage just pick what lets you ship fastest and don't overthink it.
2
u/Minimum-Ad7352 Feb 14 '26
I don't understand why you would choose it when there are better tools available. Express is so popular because of the tutorials on the internet, but I don't see the point in choosing it over Fastify, for example.
2
u/Prior-Yak6694 Feb 14 '26
Have you tried using NestJS? It uses express by default and can switch to fastify as well
1
u/AgencyActive3928 Feb 14 '26
For smaller things definitely. I’ve worked with serverless functions lately and have chosen Express over Nest.
1
u/EcstaticHoney3303 Feb 14 '26
For a startup, I'd focus on how you'll manage project scope and evolving requirements early on; having a clear system for tasks and goals can save a ton of time down the line.
1
u/realbiggyspender Feb 14 '26
If you anticipate growing in the future, pick the technologies that are easiest to hire for. As such, I think your choices make a lot of sense.
1
u/zensucht0 Feb 14 '26
Until a system is wildly complex and you have to worry about standardizing it really doesn't matter. The patterns for rest are very well established and largely interchangeable. I usually wrap everything at the http layer in custom code anyway so that it's easier to swap things out and maintain consistency. Node's built-in libraries might be just fine. I would be more worried about the frontend framework, and your choice there is fine. You're likely to build a lot of assets and business logic there which is more time consuming to convert to something else. At a startup you're likely to iterate numerous times anyway until you find a pattern you like. Not to mention the fact that at a startup your first concern is a viable product not necessarily how you got there. Just start building.
2
u/shlanky369 Feb 14 '26
Express is great, but this choice isn’t going to make or break you.
2
u/Fidodo Feb 14 '26
I'm picking encore.dev
2
u/failedbump16 Feb 15 '26
Recently I’m using elysia, really great and I recommend u take a look
2
u/rennademilan Feb 14 '26
Fastify and node 24 for native typescript all the way
1
u/simwai Feb 14 '26
Mono > Express
1
u/rover_G Feb 14 '26
I would pick what you are comfortable with
1
u/[deleted] Feb 14 '26
Express types are kinda painful
1
u/Mechanical_Turk Feb 14 '26
Use the one you can hire for. You're going to need help to make all your wildest dreams come true. The better the help and the faster/cheaper you can get it, that's the concern. Small firms take on all kinds of technical debt to survive and become viable. If you survive, you can pay off that debt with the revenue of your success.
Punk Rock was built on cheap guitars, blown out amps, barely functioning tour vans, empty stomachs, and people who believe. Optimizing for your ability to gather people who believe is what you're after.
As others have said, pick one and start rockin' with everything you got!
1
u/The_real_bandito Feb 14 '26
I use fasting myself but you do you. Express is a great framework.
1
u/lars_jeppesen Feb 15 '26
Most things are good, but React...zzzzzzzz
1
u/PriorLeast3932 Feb 15 '26
I like your stack, I'd go Postgres all the way since you can just use JSONB columns for flexibility where needed.
1
u/brian-cometloop Feb 16 '26
Hono is a better alternative to express in my opinion. Using hono with the zod openapi plugin, you can get strong type safety automatically inferred.
1
u/strange_username58 Feb 16 '26
Depends on what the app is. Generally I recommend go for a backend if you are starting from scratch and rails if you want it built as fast as possible.
1
u/nickbostrom2 Feb 16 '26
Hono or Nitro for something small. Nitro DX is unmatched.
1
u/ThinNCrispy Feb 21 '26
i didn't read a single word beyond the headline
no
-4
u/d0paminedriven Feb 14 '26
Nope, I’d suggest going with a custom node server (not much more work than express) and handling features as you need them vs express bloat packages. That’s just my two cents though. Not huge on express
-1
u/Sea-Offer88 Feb 14 '26
For an enterprise grade product you will have to go with Nestjs, the rest offer you flexibility but long term that flexibility will be a pain. People being people they are not disciplined to use an architecture that is maintainable, they usually choose the easy way.
So stick to Nestjs as it works either withe express or fastify. I would still choose express, fastify looks promising, but there are some parts that don't always work (you can always change this later with some adaptation).
Express is battle tested and has been around for decades, sure it is slower, but 99% of the time, that will not be your chocking point, you can still scale up horizontally and use something like aws ECS or docker swarm or kubernetes. Mongo dB sounds also ok for some parts, but I can bet that you won't need it, at least not initially, so stick to postgres 18. Final recommendation:
Backend: Nestjs with express typescript, Redis for sessions jwt/cookie, and Postgres as database.
Frontend: Nextjs with typescript and Tailwind, as a UI framework Mantine is very nice, Tanstack Query, Redux Toolkit for state.
This is already enterprise ready from the beginning with very good scaling capability.
-2
u/Icy_Physics51 Feb 14 '26
Lol, no
1
u/[deleted] Feb 14 '26
[removed] — view removed comment
-1
u/[deleted] Feb 14 '26
[removed] — view removed comment