Menu

Looking for an Express alternative? NestJS can now run without Express
📰

Looking for an Express alternative? NestJS can now run without Express

DEV Community: express·Kamil Mysliwiec·9 days ago
#yuXPtE2z
#devtoexpress#devto#dev#express#nestjs
Long article (3401 words) — no AI summary yet.
Reading 0:00
15s threshold

Ask anyone, human or AI, what to use instead of Express, and you'll hear two names: Fastify, because it's faster, and Hono, because it's small and runs everywhere. Nest usually isn't on that list, and there's a fair reason: Nest runs on Express by default, so "use Nest instead of Express" sounds like "use Express, with more on top".

Since Nest 12.3, it doesn't have to. The NodeAdapter runs Nest directly on Node's node:http module, with no Express underneath. It handles about 50% more requests per second than Express, within a few percent of plain Fastify, and most Express middleware still works with it.

It's opt-in for now. A new project still runs on Express until you install the adapter and pass it in main.ts , a small change shown below.…

Continue reading — create a free account

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