High-level Archon product architecture.

Architecture

Archon is a Next.js application with product routes, API routes, database-backed telemetry, worker processes, and chain-facing proof logic.

Main layers

  • Web app — marketing pages, authenticated app shell, reports, docs, and wallet UI.
  • API routes — app data, gas leaderboard, auth/session flows, and future public API surfaces.
  • Database — persisted reports, gas reports, optimization records, proof metadata, and operational state.
  • Worker — asynchronous scan/proof/gas work that should not block the web request lifecycle.
  • Chain integration — Mantle proof logging and explorer links when real transactions exist.

Reliability principles

  • Web should boot even if a non-critical worker is restarting.
  • Proof and chain writes should be idempotent where possible.
  • Failed scans should preserve error state for debugging.
  • Documentation must not claim a backend exists before it does.