Meet Velociradix: The 180,000 req/s C++17 Powered Web Framework for Node.js
Hey everyone! ๐ I've been working on Velociradix, an ultra-fast, zero-dependency C++17 HTTP engine and Node.js web framework.
Why Velociradix?
Standard Node.js frameworks execute HTTP parsing, header validation, and routing on the single-threaded V8 loop. Velociradix moves socket handling (kqueue / epoll), zero-copy HTTP parsing, and Radix Trie routing to native multi-threaded C++ background workers.
Benchmark Highlights
500k requests, HTTP pipelining:
- ๐๏ธ Pure C++ Engine: ~450,000 req/s
- โก JS / TS Multi-Thread: ~181,000 req/s
- ๐ JS Single-Thread (1 core): ~147,000 req/s (~3.5x faster than Express)
Key Features
- ๐ก๏ธ Zero Runtime Dependencies: 0 external npm dependencies.
- ๐ Express Drop-in Replacement: Run existing Express apps/routers via
import express from 'velociradix/express'. - ๐ File-Based Routing: Next.js-style automatic routes (
routes/users/[id].tsโ/users/:id). - ๐ 36+ Built-in Middlewares: JWT auth, sliding-window rate limiter, session encryption, caching, CORS, and helmet out of the box.
- ๐ Built-in Docs & Live Metrics: Interactive Swagger UI, Postman v2.1 export, and live metrics dashboard without extra packages.
- ๐ 100% Strict TypeScript: Zero
any.
Documentation & Guides
- Documentation & Guides: https://moaaz-i.github.io/Velociradix
- GitHub Repository: https://github.com/Moaaz-i/Velociradix
I would love to get your feedback, hear what you think of the architecture, and answer any questions!
Comments
No comments yet. Start the discussion.