Independent by design.Open source / Apache-2.0
hello, world.rs

A gateway you can read,
change, and call your own.

Your traffic.
Your gateway.

An open-source API gateway for teams
who want to understand and own their traffic.

Meet Relay
request → responseRelay / data plane
ClientYour request
RelayRust + Pingora
Your appYour infrastructure
Route. Extend. Inspect.No black box.

A request has a story.
Your gateway should tell it.

One request can cross Cloudflare, a cloud and a few SaaS APIs. When it fails, the why is scattered across all of them.

What if the gateway explained the traffic it handled?

That's Relay: routing, custom logic, config and inspection in one place, on your infrastructure.

A little Rust.
A real limit.

Each API key gets 5 requests a second. The sixth gets a 429. No key gets a 401.

Download the example

Native Rust process.
The website itself runs on Workers.

main.rsRust / Pingora 0.9
use async_trait::async_trait;use pingora::http::ResponseHeader;use pingora::prelude::*;use pingora::proxy::{http_proxy_service, ProxyHttp, Session};use pingora_limits::rate::Rate;use std::sync::LazyLock;use std::time::Duration;// One counter per API key, over a one-second window.static RATE: LazyLock<Rate> = LazyLock::new(|| Rate::new(Duration::from_secs(1)));const LIMIT: isize = 5;struct Gateway;#[async_trait]impl ProxyHttp for Gateway {    type CTX = ();    fn new_ctx(&self) {}    async fn request_filter(&self, session: &mut Session, _: &mut ()) -> Result<bool> {        // No key, no entry.        let Some(key) = session.req_header().headers.get("x-api-key") else {            session.respond_error(401).await?;            return Ok(true);        };        // The API key is the bucket.        if RATE.observe(key, 1) > LIMIT {            let mut res = ResponseHeader::build(429, None)?;            res.insert_header("retry-after", "1")?;            res.insert_header("x-ratelimit-limit", LIMIT.to_string())?;            session.set_keepalive(None);            session.write_response_header(Box::new(res), true).await?;            return Ok(true);        }        Ok(false)    }    async fn upstream_peer(&self, _: &mut Session, _: &mut ()) -> Result<Box<HttpPeer>> {        // Forward everything else to your app.        let app = HttpPeer::new(("127.0.0.1", 3000), false, String::new());        Ok(Box::new(app))    }}fn main() {    let mut server = Server::new(None).unwrap();    server.bootstrap();    let mut proxy = http_proxy_service(&server.configuration, Gateway);    proxy.add_tcp("127.0.0.1:8080");    server.add_service(proxy);    server.run_forever();}
localhost:8080 → localhost:30005 req/s per key

Rust at the core.
Room for your logic.

Pingora / Rust

Memory-safe, no garbage collector. Trusted filters run inside the gateway. Graceful upgrades let in-flight requests finish, so deploys drop nothing. Config swaps live.

workerd / JavaScript

Add logic without a rebuild. Web-standard plugins run in a separate, permissioned process, only on routes you enable.

A complete product

A Workers control plane and a React console for config and traffic inspection.

On your path.
On your terms.

Read it, change it, run it. The whole product, console included, is Apache-2.0. Self-hosting needs no Nexarq account. License and scope.

Early. Open. Evolving.

Build with us.

Bring your workload and your awkward edge cases.

No cookies. No trackers. No hidden JavaScript.

Just HTML and CSS. No cookies, analytics, forms or third-party assets. Worker logs are off; Cloudflare may process connection metadata to deliver the site.