rlinks

rlinks keeps rmax.to redirects eternal, safe, and observable.

Typed redirect objects β€’ CLI control plane β€’ Cloudflare edge runtime β€’ <10ms global latency

What is rlinks?

rlinks is the authoritative control plane and global edge runtime for the rmax.to redirect fabric. It is an identity infrastructure system, not a marketing shortener or multi-tenant SaaS.

It provides a typed, schema-first redirect system managed via a CLI-first workflow, ensuring strict safety guarantees for high-value links.

Architecture & Planes

Terraform (Infra) ↓ Cloudflare Platform ↓ rlinks CLI (Control) β†’ KV (Storage) β†’ Worker (Runtime) β†’ Internet

The system is divided into strict responsibility planes:

Redirect Lifecycle & Schema

Every redirect is a typed object that moves through a strict lifecycle: Creation via CLI β†’ Validation β†’ KV Write β†’ Worker Lookup β†’ Hit Logging β†’ Disable/Rotate.

The schema enforces invariants (no loops, no reserved words, HTTPS only) and supports forward-only versioning. Key fields include:

Safety Guarantees

We treat redirects as critical infrastructure. Our safety guarantees include:

CLI & Operations

The rlinks CLI is the only approved way to mutate state. It enforces the write pipeline: rlinks-cli β†’ rlinks-core β†’ rlinks-kv β†’ Cloudflare KV.

# Create a new redirect
rlinks set --code "infra" --target "https://github.com/rmax-ai/infra"

# Disable a redirect
rlinks disable "infra"

# Inspect redirect details
rlinks get "infra" --json
            

Development & Contribution

Developers must adhere to strict guidelines:

Review GUIDELINES.md and DEVELOPMENT.md before contributing. Standard cargo test, clippy, and fmt rules apply.

Roadmap

Planned capabilities for the rlinks fabric: