Architecture
GitHub is the source of truth. Four surfaces are fed from it — two documentation sites, one API runtime, and one MCP server — all in front of a Cloudflare zone you already own.
The split between the two doc sites is deliberate:
- Mintlify (
docs.skia.money) = protocol + API. Concepts, the golden path, and the API Reference generated from the spec of record. - Docusaurus (
sdk.skia.money) = package-level SDK reference. Installation, configuration, authentication, error taxonomy, advanced usage, migration guides for@skia-money/sdk.
What lives in the repo
The runtime model
- Engine: Next.js standalone + Prisma/SQLite. Quote, commit, reveal, wallets, smart accounts, tiering, and the whole invoice ledger live here.
- Rail: the existing
swap()lane onSwapERC20— invoice payments resolve into the same commit/reveal Order flow, byte-identical wire. - Sponsorship: ERC-4337 smart accounts (
SkiaAccount+ factory),SkiaPaymaster, and policy contracts (SkiaDefaultPolicy/ISponsorPolicy). - Keys: role keys live in
.envon the origin machine only — never in any Cloudflare-side surface. The key ceremony for mainnet is a separate ritual. - MCP: the hosted mini-service is a thin honest proxy — the MCP surface never forks settlement logic; it forwards to the same REST handlers.
The journey, end to end
1
Discover at
skia.money (landing).2
Read concepts at
docs.skia.money (this site).3
Integrate the SDK — the guide here links to
sdk.skia.money for the full package reference.4
Check exact wire detail in the generated API Reference here.
5
Call
api.skia.money — or drive everything through mcp.skia.money.Operational wiring details — Mintlify root-directory setup, the Docusaurus
build commands, Fly.io, DNS records, and the Cloudflare Tunnel fallback — are
in the repo runbook
docs/README.md.