Skip to content
ensdomainsPublic

About

A replayable, auditable indexing and read API for ENS, ENSv2, and Basenames

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,460 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bigname

A replayable, auditable indexing and read API for ENS, ENSv2, and Basenames.

bigname turns onchain state from Ethereum and Base into a versioned REST API. Its v2 routes cover the supported portions of exact-name profiles, name and address collections, resolver records and overviews, primary names, history, permissions, and verified record reads; see the consumer capability matrix for the exact boundaries. Partial and unsupported results are reported explicitly. Raw facts are immutable; projections are rebuildable; v2 verified reads use the schema-v2 lookup engine without writing reusable outcomes or durable execution traces.

What's here

  • apps/api — the read API (/v1/..., /healthz)
  • apps/phase-runner — the ingest, interpret, project, verify, and live phase supervisor
  • crates/ — domain types, storage, manifests, schema-v2 adapters, ingest, interpret, lookup, and projection behavior
  • manifests/ — checked-in profile roots such as mainnet and sepolia, split by chain combo
  • crates/storage/schema/ — the fresh database baseline and schema regression fixtures
  • migrations/ — append-only SQLx history and upgrades for existing databases
  • scripts/ — development and CI checks, including scripts/check-schema
  • tests/e2e/ — contract-backed scenarios and the retained restore exercise
  • ops/ — operational SQL and monitoring configuration
  • docs/ — current contracts and runbooks; historical plans live in docs/internal/archive/
  • site/ — the landing page and API reference, a static site hosted apart from the API, with a mainnet/Sepolia network switcher

Local development

For a fresh, disposable local database:

cp .env.example .env
# Edit local settings before loading them.
set -a
. ./.env
set +a
docker compose up -d --wait
cargo phase init-schema
./scripts/dev-up

The sample configuration starts only the API, on 127.0.0.1:3000. Use /v1 routes for REST and /healthz for readiness. To run indexing too, complete the phase-runner configuration, including its separate SELECT-only verification login, before starting dev-up.

init-schema refuses a nonempty schema. For a retained database, follow the upgrade procedure instead of initializing it again.

Useful one-shots, with the environment loaded:

  • cargo api serve
  • cargo phase init-schema
  • cargo phase redo --help

Set BIGNAME_API_CHAIN_RPC_URLS for schema-v2 verified ENS resolution and ENS/60 primary-name lookup. The phase runner owns ingest, interpret, project, verify, and continuous live follow. See docs/development.md.

Container

Published as ghcr.io/ensdomains/bigname when a vMAJOR.MINOR.PATCH[-PRERELEASE] tag is pushed on a commit on main whose CI passed. Each image is tagged with the release tag and the short commit sha; :latest moves only for releases without a pre-release suffix. The image entrypoint takes a service name (api, phases, or phases-migrate). The one-time phases-migrate command installs schema-v2 into an empty bigname_phase namespace in that same database.

For server deployment:

cp .env.server.example .env.server         # configure credentials, image and capacity inputs
# Set a positive disk floor, pre-create the dedicated probe directory, and
# choose a memory ceiling per service.
# Complete docs/runbooks/production-docker.md#capacity-preflight before starting.
docker compose --env-file .env.server -f docker-compose.server.yml up -d

The compose file leaves api and phase-runner as long-running services. Apply reviewed versioned migrations at the deployment boundary before starting the new image; the deleted worker migration command is no longer available.

See docs/deployment.md and docs/production.md for the public-edge stack.

Reading the docs

Start with docs/architecture.md for the model — with docs/glossary.md beside it for any project-specific term — then dive into the area you care about:

Internal planning notes (implementation sequencing, parallel workstreams) live under docs/internal/ and are not required reading to use or deploy bigname.

Guardrails

  • schema-v2 interpret writes identity rows, discovery edges, and normalized events; adapters provide interpretation behavior, not projection writes
  • the API reads projections and request-scoped schema-v2 lookup output, not raw facts
  • raw facts are immutable, projections are rebuildable, and provider lookup responses are not retained
  • update the relevant doc before changing public semantics, shared IDs, manifest schema, or coverage meaning

About

A replayable, auditable indexing and read API for ENS, ENSv2, and Basenames

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages