Architecture Map

Product Boundary

PubFi Platform is a crypto-data-specific agent layer:
  • catalog and source-selection evidence;
  • route and capability contracts;
  • billing-account, admission, usage, billing-read, and auth boundaries;
  • gateway execution for configured providers;
  • MCP and OpenAPI surfaces for agents;
  • operational checks that fail closed instead of overstating readiness.

Runtime Boundary

Repository Layout

Implementation Defaults

  • Rust owns backend, catalog, routing, account, gateway, capability, MCP, storage, and operations.
  • Next.js owns public presentation, Discovery rendering, account/dashboard presentation, text exports, and static discovery manifests.
  • Public Discovery and LLM routes use checked-in public-safe curated data.
  • Provider credentials stay server-side and must not appear in public docs or examples.