DEV Community

Cover image for Meet Velociradix: The 180,000 req/s C++17 Powered Web Framework for Node.js
Moaaz Yahia
Moaaz Yahia

Posted on

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: 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!

Top comments (0)