npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

qore-quic

v1.0.11

Published

High-performance Express-style API framework over QUIC protocol. Built with Rust + Node.js for ultra-fast communication.

Readme

Qore-QUIC Protocol

Qore-QUIC is a high-performance Node.js framework for building real-time APIs that communicate over the QUIC protocol instead of HTTP. Define Express-style routes — data travels at UDP speed with built-in encryption.

The core is written in Rust (using Cloudflare's quiche library) and bridged to Node.js via NAPI-RS, giving you native performance with zero-copy memory.

Features

  • 🚀 Express-style routingapp.route('/path', handler) over QUIC
  • Native QUIC clientclient.send('/path', data) with Promise responses
  • 🔒 Built-in TLS — Auto-generated self-signed certs for development
  • 🦀 Rust core — Zero-copy memory, async I/O via Tokio
  • 📦 Simple API — 5 minutes to get started

Prerequisites

  • Node.js ≥ 18
  • Rust (stable, edition 2021) — rustup.rs
  • NASM — Required for BoringSSL on Windows (nasm.us)
  • C++ Build Tools — Visual Studio Build Tools (Windows) or build-essential (Linux)

Installation

git clone https://github.com/cesardarizaleta/qore-quic.git
cd qore-quic
npm install
npm run build

Server Usage

Create a file server.js:

const { Qore } = require('qore-quic');

const app = new Qore();

// Define routes (just like Express!)
app.route('/echo', (req, res) => {
  console.log('Body:', req.body.toString());
  res.json({ echo: req.body.toString() });
});

app.route('/hello', (req, res) => {
  const data = req.json();           // Parse JSON body
  res.json({ message: `Hello, ${data?.name || 'World'}!` });
});

app.route('/users', (req, res) => {
  res.json({
    users: [
      { id: 1, name: 'Alice' },
      { id: 2, name: 'Bob' },
    ],
  });
});

// Lifecycle events
app.onConnection(({ peer }) => console.log(`Connected: ${peer}`));
app.onClosed(({ peer }) => console.log(`Disconnected: ${peer}`));

// Start listening (certs auto-generated for dev!)
app.listen(4433, () => {
  console.log('🚀 Qore-QUIC server running on port 4433');
});

Run it:

node server.js

With custom certificates (production)

const app = new Qore({
  certPath: '/path/to/cert.crt',
  keyPath: '/path/to/cert.key',
});

Client Usage

Create a file client.js:

const { QoreClient } = require('qore-quic');

async function main() {
  const client = new QoreClient();

  await client.connect('127.0.0.1', 4433);
  console.log('Connected!');

  // Send requests to routes (returns a Promise!)
  const echo = await client.send('/echo', { message: 'Hi!' });
  console.log('Echo:', echo);
  // → { echo: '{"message":"Hi!"}' }

  const hello = await client.send('/hello', { name: 'Qore-QUIC' });
  console.log('Hello:', hello);
  // → { message: 'Hello, Qore-QUIC!' }

  const users = await client.send('/users');
  console.log('Users:', users);
  // → { users: [{ id: 1, name: 'Alice' }, ...] }

  client.close();
}

main().catch(console.error);

API Reference

Qore (Server)

const app = new Qore(options?: QoreOptions);

Options

| Property | Type | Description | |------------|----------|--------------------------------| | certPath | string | Path to TLS certificate file | | keyPath | string | Path to TLS private key file |

If omitted, self-signed certificates are auto-generated for development.

Methods

| Method | Description | |--------|-------------| | app.route(path, handler) | Register a handler for a route | | app.onConnection(fn) | Called when a peer connects | | app.onData(fn) | Fallback for unmatched routes | | app.onClosed(fn) | Called when a peer disconnects | | app.listen(port, callback?) | Start listening on UDP port |

Handler signature

app.route('/path', (req: QoreRequest, res: QoreResponse) => { ... });

QoreRequest | Property | Type | Description | |------------|------------|---------------------------------| | peer | string | Remote address (ip:port) | | streamId | number | QUIC stream ID | | route | string | Matched route path | | body | Buffer | Raw request payload | | json() | () => any| Parse body as JSON |

QoreResponse | Method | Description | |-------------|------------------------------------| | send(data) | Send string, Buffer, or object | | json(data) | Send JSON response |


QoreClient

const client = new QoreClient(timeout?: number);

| Parameter | Type | Default | Description | |-----------|----------|---------|------------------------| | timeout | number | 10000 | Request timeout in ms |

Methods

| Method | Description | |--------|-------------| | client.connect(host, port) | Connect to a Qore-QUIC server (Promise) | | client.send(route, data?) | Send request and receive response (Promise) | | client.close() | Close the connection |

Events

| Event | Description | |--------------|----------------------------| | connection | Fired when connected | | closed | Fired when disconnected | | data | Raw data on unknown stream |


How It Works

Qore-QUIC uses a simple binary frame protocol over QUIC streams:

┌──────────────────┬────────────────┬──────────────────┐
│ Route Length (2B) │ Route (UTF-8)  │ Payload (bytes)  │
│ uint16 BE        │ variable       │ rest of frame    │
└──────────────────┴────────────────┴──────────────────┘

Each client.send() opens a new QUIC bidirectional stream, sends the framed request, and waits for the framed response on the same stream.

Architecture

  Node.js                         Node.js
┌──────────┐                   ┌────────────┐
│  Qore    │                   │ QoreClient │
│ .route() │                   │ .send()    │
│ .listen()│                   │ .connect() │
└────┬─────┘                   └─────┬──────┘
     │ Frame Protocol                │
     │ [routeLen][route][payload]    │
├────┴───────────────────────────────┴─────┤
│            Rust (NAPI-RS)                │
│  startServer()        connectToServer()  │
│         QUIC (quiche / BoringSSL)        │
│                UDP Socket                │
└──────────────────────────────────────────┘

License

MIT