System Architecture

EdithAI uses a hybrid Web2 + Web3 architecture optimized for AI workloads.

Frontend (Vite)

  • Prompt editor

  • Code preview sandbox

  • Wallet connection

  • Usage estimation display

  • Billing settlement trigger

Backend Services

  • AI model orchestration

  • Prompt execution engine

  • Token and compute metering

  • Usage receipt signing

  • MongoDB persistence

Database Layer (MongoDB)

  • User accounts

  • Prompt history

  • Usage receipts

  • Settlement records

Blockchain Layer

  • EDITH token contract

  • PromptBilling contract

  • Treasury contract

circle-info

Trust Model

  • Backend signs usage receipts

  • Smart contracts verify signatures

  • All settlements are public and auditable

Was this helpful?