What this project does
Only what exists in this repo: generation jobs, Arc payment proof, storage persistence, and storefront publishing.
ARC ties together three moving parts into a single, demoable pipeline: (1) a merchant-facing studio, (2) an API, and (3) a consumer storefront. The critical constraint is that the payment proof (Arc tx hash) and the deliverables (images/video) stay linked and durable.
View system map (apps + services)
apps/ merchant-studio/ → merchant UI (create jobs, track jobs/products, billing, testing) storefront/ → consumer UI (browse products, preview video, checkout UI) services/ api/ → Express API (jobs, products, orders, generation, web3 lab tools) Supabase (Postgres + Storage) tables: products, jobs, job_logs buckets: uploads (source files), generated (final durable assets) Arc testnet (USDC) tx hash is captured + verified and stored with the job/product
Architecture (repo truth)
Where each capability lives in this monorepo.
End-to-end flow
From merchant upload → on-chain payment proof → durable media → storefront listing.
Payments + verification (Arc + USDC)
What the backend actually checks before accepting a job.
The backend treats the incoming payment proof as an Arc transaction hash. Verification is RPC-based and uses receipt + logs so the demo can show a real explorer link.
View how the API asks for payment (402 header)
- recipient (merchant pay-to address)
- amount (USDC)
- rpcUrl + explorerBase for Arc testnet
AI generation pipeline
Prompt planning → image generation → looping video generation.
Persistence (Supabase Postgres + Storage)
The part that makes this a real product pipeline rather than a one-off generation demo.
Storefront publishing
How a generated product becomes shoppable content.
Testing tools (Web Lab)
A combined testing surface for both the AI pipeline and the Arc/Circle flows.