Skip to content
ethloPublic

About

r7 is a high-performance Java HTTP gateway core with composable routing, low-allocation design, and memory-mapped full audit logging with pluggable tailers.

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

399 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status

r7: the gateway that remembers every request

When someone asks what a client actually sent you, r7 has the answer. It routes traffic to your services and records every exchange, with its headers or its full bodies, to local disk, with secret header and query values stored as fingerprints. A tailer ships the record as WARC and JSON lines into the tools you already run. One routes.yaml, checked before it serves a single request.

# routes.yaml
routes:
  - id: api
    match:
      - PathPrefix:
          prefix: /api
    upstream:
      targets:
        - url: http://host.docker.internal:3000
    journal:
      request:
        level: HEADERS
      response:
        level: HEADERS
(umask 077; set -C; echo "R7_FINGERPRINT_KEY=$(openssl rand -base64 32)" > .env)   # once: keep it, and keep it private
docker run --rm -p 8888:8888 -p 127.0.0.1:18888:18888 \
  --add-host=host.docker.internal:host-gateway \
  --env-file .env \
  -v "$PWD/routes.yaml:/app/config/routes.yaml:ro" \
  -v r7-journals:/journals \
  ghcr.io/ethlo/r7-gateway:1.0.0-beta.2

That's a running gateway, with every request to /api journaled and a live dashboard on http://localhost:18888.

Why r7

  • It remembers every request. Record metadata, headers or full bodies per route, and turn up the detail on its own when a response fails. Entries go to memory-mapped files on local disk, with no network call while the client waits, and a tailer ships them as JSON lines, a WARC archive, or both.
  • Your configuration is checked before it runs. Unknown keys, misspelled filters, bad regular expressions and missing variables stop r7 at startup with a precise message, not a silent misroute in production. A bad edit to a running gateway is rejected and the old routes keep serving.
  • Routing you can read top to bottom. Routes match in the order you wrote them and the first match wins. Each filter does one job. No scripting language, no hidden precedence rules.
  • Extensions in plain Java. Each request stage has its own filter interface that hands over only what may change there, and the gateway runs every request on one virtual thread, upstream call included: no reactive chain and no worker pools.

r7 does not terminate TLS, and has no scripting language: see where r7 fits, and where it does not.

Learn more

r7 is pre-release. Built on Java 27 and Helidon Níma.

About

r7 is a high-performance Java HTTP gateway core with composable routing, low-allocation design, and memory-mapped full audit logging with pluggable tailers.

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages