someguy

command module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0, MIT Imports: 76 Imported by: 0

README

🤷 Someguy

Official Part of IPFS Project Discourse Forum Matrix CI Code Coverage GitHub Release Go Reference

Someguy is an HTTP Delegated Routing V1 server that proxies requests to the Amino DHT and other Delegated Routing servers such as the Network Indexer.

Shipyard also runs a public Someguy instance at https://delegated-ipfs.dev/routing/v1.

Build

go build -o someguy

Install

go install github.com/ipfs/someguy@latest
Docker

Automated Docker container releases are available from the Github container registry:

  • 🟢 Releases
    • latest always points at the latest stable release
    • vN.N.N point at a specific release tag
  • 🟠 Unreleased developer builds
    • main-latest always points at the HEAD of the main branch
    • main-YYYY-DD-MM-GITSHA points at a specific commit from the main branch
  • ⚠️ Experimental, unstable builds
    • staging-latest always points at the HEAD of the staging branch
    • staging-YYYY-DD-MM-GITSHA points at a specific commit from the staging branch
    • This tag is used by developers for internal testing, not intended for end users

When using Docker, pass configuration via -e:

$ docker pull ghcr.io/ipfs/someguy:main-latest
$ docker run --rm -it --net=host ghcr.io/ipfs/someguy:main-latest

See /docs/environment-variables.md.

Usage

Run someguy as a client or as a server.

Server

Start the server with someguy start. By default it proxies requests to the IPFS Amino DHT and the cid.contact indexer (IPNI) node.

For more details, run someguy start --help.

Client

To query an existing server without running one yourself, use someguy ask <subcommand> to look up a provider, peer, or IPNS record.

For more details, run someguy ask --help.

AutoConf

Automatic configuration of bootstrap peers and delegated routing endpoints. When enabled (default), Someguy replaces the auto placeholder with network-recommended values fetched from a remote URL.

Configuration:

Endpoint flags (default to auto):

To use custom endpoints instead of auto:

someguy start --ipns-endpoints https://example.com

See environment-variables.md for URL formats and configuration details.

Deployment

For self-hosting, run the prebuilt Docker image.

Release

  1. Create a PR from branch release-vX.Y.Z against main that:
    1. Updates CHANGELOG.md with entries for the current release
    2. Updates the version.json file
  2. Once the release checker creates a draft release, copy-paste the changelog into the draft
  3. Merge the PR; the release workflow tags and publishes automatically

License

Dual-licensed under MIT + Apache 2.0

Documentation

Overview

autoconf.go implements automatic configuration for someguy.

Autoconf fetches network configuration from a remote JSON endpoint to automatically configure bootstrap peers and delegated routing endpoints.

The autoconf system:

  • Fetches configuration from a remote URL (configurable)
  • Caches configuration locally and refreshes periodically
  • Falls back to embedded defaults if fetching fails
  • Expands "auto" placeholder in endpoint configuration
  • Filters out endpoints for systems running natively (e.g., DHT)
  • Validates and normalizes endpoint URLs

See https://github.com/ipfs/someguy/blob/main/docs/environment-variables.md for configuration options and defaults.

server_delegated_routing.go implements HTTP delegated routing for the server.

This file contains code for creating and managing HTTP clients that talk to remote delegated routing endpoints (e.g., cid.contact, delegated-ipfs.dev). The server uses these HTTP clients to perform content, peer, and IPNS lookups when delegated routing is enabled.

Key components:

  • newDelegatedRoutingClient: creates HTTP client with consistent options
  • collectEndpoints: deduplicates URLs and aggregates capabilities
  • createDelegatedHTTPRouters: creates one client per unique base URL

Directories

Path Synopsis
internal
fd
Package fd provides filesystem descriptor count for different architectures.
Package fd provides filesystem descriptor count for different architectures.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL