Menu

mimi.js vs Express: 4 Faster, Built-in Auth & Zero Config — Benchmarks Inside
📰

mimi.js vs Express: 4 Faster, Built-in Auth & Zero Config — Benchmarks Inside

DEV Community·Mayank Thakur·7 months ago
#oUL7vych
#mimijs#express#node#api#discuss
Reading 0:00
15s threshold

Every Node.js project I've worked on starts with the same ritual:

npm install express cors helmet morgan body-parser bcryptjs jsonwebtoken mongoose npm install -D @types/express @types/cors @types/bcryptjs @types/jsonwebtoken

Enter fullscreen mode

Exit fullscreen mode

Then 40 minutes of wiring. A cors() call here, a body-parser config there, a JWT middleware you copy-paste from your last project. By the time you write your first route, you've already written a hundred lines that have nothing to do with your actual problem.

I got tired of it. So I built mimi.js — a Node.js framework that ships with everything a real API actually needs, keeps the Express API you already know, and runs at near-Fastify speed.

Here's what the same setup looks like with mimi.js:

npm install mimi.js

Enter fullscreen mode

Exit fullscreen mode

That's it.

The Benchmark Numbers

Before I walk through the features, let's talk performance — because "Express-compatible" historically meant slow.

I ran autocannon against Express…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.