Skip to content

RNode ServerHigh-performance Node.js server built with Rust

Express-like API with advanced middleware support, featuring revolutionary promise management and zero CPU waste.

RNode Server

🚀 Experimental Project: High-performance Node.js server built with Rust, featuring Express-like API with advanced middleware support.

Overview

RNode Server is a full-featured server implementation built from the ground up with Rust and Node.js bindings. The goal is to create a production-ready server with all the necessary configurations for fast deployment and optimal performance.

Key Features

  • 🚀 High Performance - Built with Rust and Node.js
  • 🔧 Express-like API - Familiar routing and middleware
  • 📁 Static File Serving - With compression and caching
  • 📤 File Upload - Multipart form data support
  • 📥 File Download - Secure file serving
  • 🎨 Template Engine - Tera templates with inheritance
  • 🔒 HTTPS Support - SSL/TLS encryption with certificate support
  • 🌐 IP Detection - Client IP from various proxy headers
  • 🔌 Express Middleware - Use existing Express plugins

Performance

MetricExpressRNode ServerDifference
Requests/sec (RPS)9,31525,378~2.7× faster
Average time/request10.7 ms3.9 ms~2.7× faster
Transfer rate3.3 MB/s6.6 MB/s~2× higher

Quick Start

Installation

javascript
import { createApp } from 'rnode-server';

const app = createApp();
const port = 3000;

app.get('/hello', (req, res) => {
  res.json({ message: 'Hello World!' });
});

app.listen(port, () => {
  console.log(`🚀 Server started on port ${port}`);
});

Architecture

RNode Server uses a unique hybrid approach where all JavaScript code execution happens through Rust backend. This architecture provides:

  • 🚀 Performance: Rust handles HTTP parsing, routing, and response generation at native speed
  • 🔒 Security: Rust's memory safety prevents common server vulnerabilities
  • ⚡ Efficiency: Minimal overhead between HTTP layer and JavaScript execution
  • 🔄 Revolutionary Promise System: No more polling - instant notification when promises complete

Get Started

Released under the MIT License.