Skip to main content

Relay Backend

An offline API testing interface for your FastAPI application. Install one Python package, mount it once, and open /relay on your backend's existing port.

Install

python -m pip install relay-backend==0.0.1
from fastapi import FastAPI
from relay_agent import install_relay

app = FastAPI()
install_relay(app)

@app.get("/health", tags=["System"])
def health():
    return {"status": "ok"}

Run your backend normally, for example uvicorn main:app --reload, then visit http://localhost:8000/relay/.

No repository clone, Node installation, frontend build, CDN, separate Relay process, or target URL is required. Existing applications only need the import and install_relay(app) call. Use install_relay(app, enabled=settings.DEBUG) to keep Relay under your application's development flag. Install it on the FastAPI object before wrapping that object in Socket.IO or another ASGI wrapper.

Included

  • Code-generated OpenAPI endpoints grouped by tags, with inline request/response testing.
  • Shared and per-endpoint bearer, Basic, API-key and explicit no-auth modes.
  • Five color schemes, copy controls, response focus, and Relay/JSON endpoint exports.
  • Manual endpoint status, defaulting to Done, with optional Git-shared status and inferred source attribution.
  • A bundled standalone CLI for local OpenAPI backends and portable .relay reports.

Python 3.11+ is required. This is a local development tool: only loopback hosts/clients are accepted. Request execution invokes your real application middleware, dependencies and handlers. Tests can change your development data. Multipart upload, OAuth browser flows, remote/shared deployment and realtime team sync are outside v0.0.1.

The PyPI distribution is relay-backend; the Python import remains relay_agent. relay-agent on PyPI is an unrelated package.

Documentation · Source · Issues

Licensed under Apache-2.0. Bundled React, Lucide and JetBrains Mono assets retain their respective licenses; see THIRD_PARTY_NOTICES.md.

Metadata

Release files for relay-backend 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for relay-backend 0.0.1
File Size Uploaded
relay_backend-0.0.1.tar.gz 379.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for relay-backend 0.0.1
File Interpreter ABI Platform
relay_backend-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 756.1 kB

Release files / relay_backend-0.0.1.tar.gz

Download URL relay_backend-0.0.1.tar.gz
Size 379.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5755a5f2a891e12471b2998423670fbc920e15bebe04ca6d48d330b923c59bd0
BLAKE2b-256 checksum
How to use checksums
b415f2682b428a7fdc27d6ea3434c60850d8f23d3856aa4ef3792f366e9268a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / relay_backend-0.0.1-py3-none-any.whl

Download URL relay_backend-0.0.1-py3-none-any.whl
Size 377.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7266227f9603364ccfad73f4335a1a3725ec8cd4725605b622a3b1341cc324d
BLAKE2b-256 checksum
How to use checksums
ee55be4b9d62e02f44b107d85603f5be607ddc29615d704bfecc1eab614da49e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page