How frappe/central works
Central is Frappe Cloud v2’s control plane, with a Frappe backend and Vue console. The main user journey is managing a team’s identity and resources, provisioning services such as object storage, and viewing or paying for resulting usage and bills. Billing spans catalog and subscription intent, metering, invoicing, payment collection, and reporting; additional branches cover server/site operations, notifications, and SSO. The graph uses documented product scope and shown imports/calls; paths for unsampled subsystems come from the tree, and their internal links are omitted where evidence is unavailable.
Main entry points: charges.py Invoice charges · subscriptions.py Subscriptions · team_service.py Team services · main.ts Vue console
Components 27
Console and APIs
- Vue console
dashboard/src/main.ts - Team and resource APIs
central/api/teams.py - Storage API
central/services/api/storage.py
Team and Resources
- Sites and servers
central/api/servers.py - Team services
central/services/doctype/team_service/team_service.py - Object storage client
central/integrations/object_storage.py
Billing
- Plans and pricing
central/billing/catalog/pricing.py - Subscriptions
central/billing/catalog/subscriptions.py - Usage metering
central/billing/api/metering.py - Storage usage bridge
central/billing/revenue/storage_bridge.py - Invoices
central/billing/doctype/invoice/invoice.py - Payment lifecycle
central/billing/payments/payments.py - Invoice charges
central/billing/payments/charges.py - Gateway adapters
central/billing/gateways/registry.py - Gateway webhooks
central/billing/payments/webhooks.py - Payment corrections
central/billing/payments/corrections.py - Billing projection
central/billing/projection/engine.py - Billing reports
central/billing/report - Credits
central/billing/revenue/credits.py - Tax calculation
central/billing/revenue/tax.py - Billing state model
central/billing/states.py
Integrations and Identity
- Notifications
central/notification/engine.py - Access control
central/iam.py - Single sign-on
central/sso.py - Identity API
central/api/identity.py
Other components
- Cloud user
- Cargo
Connections 28
- Cloud user → Vue console: uses
- Vue console → Team and resource APIs: manages
- Vue console → Storage API: manages buckets
- Cloud user → Identity API: authenticates
- Team and resource APIs → Access control: checks access
- Sites and servers → Subscriptions: provisions
central/billing/catalog/subscriptions.py - Team services → Subscriptions: provisions service plan
central/services/doctype/team_service/team_service.py - Team services → Object storage client: manages bucket
central/services/doctype/team_service/team_service.py - Storage API → Team services: loads team service
central/services/api/storage.py - Object storage client → Cargo: calls bucket API
central/integrations/object_storage.py - Plans and pricing → Subscriptions: prices plans
central/billing/catalog/services.py - Subscriptions → Plans and pricing: uses pricing
central/billing/catalog/subscriptions.py - Storage usage bridge → Team services: reads bucket usage
central/billing/revenue/storage_bridge.py - Storage usage bridge → Usage metering: supplies usage
- Subscriptions → Tax calculation: calculates tax
central/billing/catalog/subscriptions.py - Invoice charges → Gateway adapters: selects adapter
central/billing/payments/charges.py - Payment lifecycle → Invoice charges: initiates charges
central/billing/payments/payments.py - Gateway webhooks → Invoice charges: dispatches events
central/billing/payments/webhooks.py - Gateway webhooks → Payment corrections: dispatches refunds
central/billing/payments/webhooks.py - Invoice charges → Payment corrections: handles disputes
central/billing/payments/charges.py - Invoices → Payment corrections: uses corrections
central/billing/doctype/invoice/invoice.py - Invoice charges → Credits: uses credits
central/billing/payments/charges.py - Invoice charges → Notifications: sends alerts
central/billing/payments/charges.py - Invoice charges → Billing state model: transitions state
central/billing/payments/charges.py - Payment lifecycle → Billing state model: transitions state
central/billing/payments/payments.py - Billing projection → Invoices: reads invoices
central/billing/projection/engine.py - Cloud user → Billing reports: reviews billing
- Cloud user → Single sign-on: signs in