Skip to content

About

Intelligent HTTP redirector with fuzzy search for self-hosted services.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Jump Blueprint 🚀

Jump is a small Go service that turns a browser address-bar query into a redirect to a self-hosted service. It reads Homepage service definitions, matches short hostname fragments, validates HTTPS targets, and redirects the browser to the selected service.

This repository is a public blueprint, not a hosted product or a universal distribution. It is intentionally dogfood-oriented. If you want to use it, fork it and adapt the code, configuration, Homepage layout, domains, deployment and event delivery integrations yourself. The original author does not provide development work to make the project generic for every environment.

How it works

The intended browser workflow is deliberately simple:

jp adg       -> the matching AdGuard service
jp adg ha    -> a more specific matching service
jp pg pub    -> a public PostgreSQL administration service

Searches use fragments of service hostnames. Multiple fragments disambiguate similar names without a structured query syntax.

Optional search realms are isolated by prefix:

Prefix Realm Source
none services Homepage services.yaml
@ bookmarks Homepage bookmarks.yaml
/ Jump endpoints Jump itself

Service entries must provide HTTPS href values with hostnames. Invalid service entries reject a reload and leave the previous in-memory index active.

Runtime behavior

Redis or Valkey is optional. Jump loads Homepage data into memory and remains usable while Redis is unavailable. When Redis becomes ready, persistence and the resolution cache are enabled. Redis does not rank search results and there is no usage-ranking system.

The main endpoints are:

Endpoint Method Purpose
/search?q=<query> GET Search and redirect
/healthz GET Liveness check
/readyz GET Ready when services are loaded in memory
/infra GET Runtime status
/reload POST Queue a Homepage reload

/reload is asynchronous and returns 202 Accepted when the request is queued. It does not claim that the reload has completed:

⏳ Reload request queued; result will be logged asynchronously

Configuration

Copy .env.example into the environment where your fork runs and adapt every path, hostname, domain allowlist, Redis setting and optional integration. The application validates configuration at startup.

Important contracts include:

  • JUMP_LISTEN_PORT expects a port such as 8090, without a leading colon.
  • JUMP_SERVICE_FILE points to the Homepage services.yaml file.
  • JUMP_BOOKMARK_FILE is optional.
  • JUMP_HOMEPAGE_URL, JUMP_ALLOWED_HOSTS, JUMP_REDIS_ADDR and JUMP_REDIS_DB are required by the current configuration.
  • JUMP_NAVIRE_EVENTS_URL and JUMP_NAVIRE_TEMPLATE_ID are both required to enable optional Navire events.

Navire is an operational event delivery and reliability platform currently in development, with a public OSS release planned after its MVP is finalized. Its origin and design are described in the Navire project article. Configure the event template and endpoint in your fork, or replace Navire with another event delivery platform.

Build and run

This blueprint intentionally does not include the original repository's local Makefile, CI files, hooks or development fixtures. Use the Go toolchain or adapt the build process to your fork:

go test ./...
go vet ./...
go build ./cmd/jump

The included Dockerfile can also be adapted for your deployment:

docker build -t jump:local .

You must provide a Homepage source file and the environment required by your deployment. No personal infrastructure, domain, Redis instance or event delivery service is bundled with this blueprint.

Adaptation boundary

The matching behavior, Homepage schema and HTTP contracts are intentionally opinionated. Forks are expected to change them when needed. Examples include:

  • replacing Homepage with another source format;
  • changing hostname matching or search realms;
  • adding authentication or deployment middleware;
  • adapting Redis/Valkey configuration;
  • replacing or extending Navire event handling;
  • changing the browser keyword and redirect policy.

License

MIT. See LICENCE.

About

Intelligent HTTP redirector with fuzzy search for self-hosted services.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages