How mcalrifle789/ozone works
OZONE is an AI-agent website with account management, subscriptions and credits, and chat and media-generation features. Users browse the site, authenticate, select a plan or fund an account, then submit generation requests; prompts are screened before model requests are relayed through a per-user key vault. Payments and usage are tracked in a split-fund ledger. The README documents both standalone internal services and an embedded Vercel deployment; the graph captures their shared product roles. Some frontend-to-handler and handler-to-service details are documented at the architecture level rather than shown in sampled calls.
Main entry points: main.go Gateway routes · services.go Service adapter · main.rs Key vault and relay · js Feature scripts
Components 21
Website
- OZONE site
web/index.html - Feature scripts
web/assets/js - Interactive visuals
wasm
Gateway
- Gateway routes
gateway/main.go - Accounts and sessions
gateway/auth.go - Plans and models
gateway/plans.go - Agent and studio
gateway/studio.go - Application state
gateway/store.go
Safety and generation
- Prompt guardrails
guardrails/guardrails.py - Key vault and relay
keyvault/src/main.rs - Key sealing
keyvault/src/seal.rs
Billing and ledger
- Checkout and webhooks
gateway/billing.go - Ledger API
ledger/src/main/java/ai/ozone/ledger/LedgerServer.java - Payment and usage ledger
ledger/src/main/java/ai/ozone/ledger/Ledger.java - Ledger JSON codec
ledger/src/main/java/ai/ozone/ledger/Json.java
Runtime services
- Service adapter
gateway/services.go - Vercel entrypoint
api/ozone.go
Other components
- Visitor
- Crazyrouter console
- Crazyrouter models
- Stripe
Connections 22
- Visitor → OZONE site: browses
README.md - OZONE site → Feature scripts: loads features
- Feature scripts → Gateway routes: requests APIs
- Feature scripts → Interactive visuals: uses visuals
- Gateway routes → Accounts and sessions: routes account requests
gateway/main.go - Gateway routes → Plans and models: routes catalog requests
gateway/main.go - Gateway routes → Agent and studio: routes generation requests
gateway/main.go - Gateway routes → Checkout and webhooks: routes billing requests
gateway/main.go - Gateway routes → Application state: opens state
gateway/main.go - Gateway routes → Service adapter: wires services
gateway/main.go - Checkout and webhooks → Stripe: processes payments
README.md - Checkout and webhooks → Service adapter: records payment
- Agent and studio → Prompt guardrails: screens prompts
README.md - Agent and studio → Service adapter: relays generation
- Service adapter → Key vault and relay: requests relay
gateway/services.go - Key vault and relay → Key sealing: seals keys
keyvault/src/main.rs - Key vault and relay → Crazyrouter console: manages user keys
- Key vault and relay → Crazyrouter models: relays model calls
keyvault/src/main.rs - Service adapter → Ledger API: sends ledger requests
gateway/services.go - Ledger API → Payment and usage ledger: records and queries
ledger/src/main/java/ai/ozone/ledger/LedgerServer.java - Payment and usage ledger → Ledger JSON codec: parses and writes
ledger/src/main/java/ai/ozone/ledger/Ledger.java - Vercel entrypoint → Gateway routes: serves API routes
api/ozone.go