MernLabs
← All articles
Engineering26 May 20262 min read

Why we build on Next.js and MongoDB

By MernLabs

Why we build on Next.js and MongoDB — cover

Clients rarely ask about our stack, but they live with the consequences of it for years. Every MernLabs platform ships on Next.js and MongoDB, and that is a deliberate position rather than a habit. This post explains the reasoning, including the trade-offs we accept.

One language, one mental model

TypeScript runs our front end, our APIs, our background jobs and our data layer. That means every engineer on a project can read every part of it, and a feature that spans the whole stack — a form, its validation, its API route, its database write — is one person's afternoon, not a three-team coordination exercise.

For the small senior teams we run, that compounding speed matters more than any individual framework feature.

Next.js earns its place on the front end

Server rendering gives us fast first paints and clean SEO without a separate API tier for every page. Static generation handles marketing pages; server components handle data-heavy dashboards; the same codebase does both. When Google changes how it measures performance — and it does, every year — we inherit most of the fix from the framework.

The trade-off is real: Next.js moves quickly and major versions demand attention. We treat framework upgrades as scheduled maintenance, not emergencies, and we budget for them in every retainer.

MongoDB matches how products actually evolve

Early-stage products change shape constantly. A document database lets the data model evolve with the product instead of fighting it through migration ceremonies. Schema enforcement still exists — we define it in code with Mongoose and Zod, where it is versioned, reviewed and tested.

When a project genuinely needs relational guarantees — heavy reporting, complex joins, financial ledgers — we say so and reach for the right tool. Standardising on a default is not the same as refusing to think.

Boring is a feature

Both technologies are over a decade old, run enormous production estates, and hire well in the UK market. If you ever leave us, the next team will know this stack. Choosing fashionable technology your future engineers cannot maintain is a cost we refuse to pass on to clients.

Have a new project you'd like help with?

Let's get
started
Start your project