New JavaScript (Node.js) framework rapidly gaining popularity
The JavaScript (Node.js) ecosystem continues to surprise. Despite the dominance of giants like Express.js, NestJS, and Fastify, a new player has appeared on the horizon that has attracted the attention of thousands of developers in a short time. We are talking about next-generation frameworks focused on performance, modern TypeScript standards, and a minimalist API. Among the most prominent representatives are Hono and Elysia, which have already captured a significant market share in the niche of high-load applications.
Why are developers switching to the new framework?
The main reason for the hype is speed. In benchmarks, Hono shows results comparable to Go solutions, outperforming Express by 5-10 times. This became possible thanks to the use of native Node.js 20+ features (e.g., Web Streams API) and an ultra-light architecture without excessive abstractions.
- Minimal dependency on third-party libraries — the framework uses only built-in Node.js modules.
- TypeScript support "out of the box" with full typing of routes and middleware.
- Versatility: works not only on Node.js but also on Deno, Bun, and Cloudflare Workers.
- Built-in OpenAPI support — automatic documentation generation from code.
Key features of Hono and Elysia
Both frameworks have a similar philosophy but different implementations. Hono (Japanese for "flash") focuses on maximum simplicity: its API resembles Express but with modern improvements. Elysia, on the other hand, emphasizes strict typing and a functional approach, resembling a combination of Fastify and tRPC.
Here is what sets them apart from competitors:
- Type-level data validation: request errors are caught at the TypeScript compilation stage.
- Middleware without chains: instead of cumbersome constructs — simple functions that are easy to test.
- WebSocket and SSE support without additional modules.
- Package size less than 50 KB (compressed) — a record for Node.js frameworks.
Real-world use cases
According to the State of JS 2024 survey, Hono entered the top three most desired frameworks (satisfaction — 94%). It is already being used for:
- Microservices — due to low memory consumption (from 2 MB per instance).
- Edge functions — the framework is ideal for Cloudflare Workers and Vercel Edge.
- APIs for AI applications — fast processing of streaming data from language models.
"We rewrote our API gateway from Express to Hono and reduced response latency by 40%. At the same time, the codebase shrank by three times," shares an engineer from Vercel.
Is it worth switching?
For new projects — definitely yes. If you are just starting to learn Node.js or planning to create a high-performance backend for high loads, Hono or Elysia will be an excellent choice. For migrating existing projects