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

Install Relay, mount it on FastAPI, then open /relay on the backend's existing port.

  1. Install in your backend's Python environment:
python -m pip install relay-backend

A fresh installation gets the latest stable release. To update an existing installation:

python -m pip install --upgrade relay-backend

Restart the backend after upgrading. The browser title uses your application's name: FastAPI(title="Ludo Portal") becomes Relay - Ludo Portal. Any application's title works.

  1. Add these lines where your FastAPI app is created:
from relay_backend import install_relay
install_relay(app)
  1. Restart the backend with its usual command and open /relay on its existing port.
Complete example for a new app
from fastapi import FastAPI
from relay_backend 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 are outside v0.0.3. Opt into automatic team statuses with install_relay(app, sync_status=True) using the backend repository's existing Git remote. Team setup explains access and conflict handling.

The PyPI distribution is relay-backend; the Python import is relay_backend. The former relay_agent root import remains compatible. 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.3

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.3
File Size Uploaded
relay_backend-0.0.3.tar.gz 266.4 kB Details

Built distribution (wheel)

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

Total release size: 529.3 kB

Release files / relay_backend-0.0.3.tar.gz

Download URL relay_backend-0.0.3.tar.gz
Size 266.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c854bfd02e3fdfdce84fab72eec8be2a80a463bd40ff8af58a8a2ad52e0b0d9f
BLAKE2b-256 checksum
How to use checksums
1c636a1c3df71e19e671c2543074c8a4fd877f3ce9d72b482557f065590ada8b
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.3-py3-none-any.whl

Download URL relay_backend-0.0.3-py3-none-any.whl
Size 262.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bc1b817c41b86f1733abd4ece2394e33f3e2fdac15cebe3aaf10d884b6b942d
BLAKE2b-256 checksum
How to use checksums
e0b0271f43779db7b13467244bce590afdb1ed1258a3643c4c39f216b8a5b228
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

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

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