# falkordb/saasbuilder architecture

> Architecture diagram of the GitHub repository falkordb/saasbuilder, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/falkordb/saasbuilder
- Repository: https://github.com/falkordb/saasbuilder

## Overview

This is Omnistrate’s Customer Portal: a customer-facing SaaS interface for discovering service plans, subscribing, provisioning cloud accounts and instances, and managing usage and account operations. The tree shows distinct dashboard areas for cloud accounts, instances, subscriptions, billing, audit logs, and related tools, alongside public sign-in and sign-up. Source excerpts and the index verify only a few internal calls; most dashboard and API relationships are therefore left unconnected rather than inferred from filenames. The README describes the product’s purpose and configuration, not detailed runtime wiring.

Main entry points: [`app/(dashboard)/cloud-accounts/components/steps/ConfigureVPCsStep.tsx`](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/components/steps/ConfigureVPCsStep.tsx) (VPC Setup), [`server.js`](https://github.com/falkordb/saasbuilder/blob/master/server.js) (Web Server), [`src/components/ServicePlanDetails/ServicePlanDetails.tsx`](https://github.com/falkordb/saasbuilder/blob/master/src/components/ServicePlanDetails/ServicePlanDetails.tsx) (Plan Details), [`src/components/APIDocumentation/APIDocumentation.tsx`](https://github.com/falkordb/saasbuilder/blob/master/src/components/APIDocumentation/APIDocumentation.tsx) (API Documentation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Access"]
  node_signin["Sign-in<br/>[page.tsx]"]
  node_signup["Sign-up<br/>[page.tsx]"]
end

subgraph group_catalog["Service Catalog"]
  node_serviceplan["Plan Details"]
  node_plan_card["Plan Selection"]
  node_subscriptions["Subscriptions<br/>[page.tsx]"]
end

subgraph group_provision["Provisioning"]
  node_cloud_accounts["Cloud Accounts<br/>[page.tsx]"]
  node_account_wizard["Account Setup"]
  node_vpc_setup["VPC Setup"]
  node_network_hook["Cloud Networks"]
  node_instances["Instances<br/>[page.tsx]"]
  node_instance_detail["Instance Details<br/>[page.tsx]"]
  node_snapshots["Snapshots<br/>[page.tsx]"]
end

subgraph group_operations["Account Operations"]
  node_billing["Billing<br/>[page.tsx]"]
  node_payments["Payment Methods<br/>[page.tsx]"]
  node_cost["Cost Explorer<br/>[page.tsx]"]
  node_custom_networks["Custom Networks<br/>[page.tsx]"]
  node_audit["Audit Logs<br/>[page.tsx]"]
  node_access["Access Control<br/>[page.tsx]"]
end

subgraph group_integration["API and Runtime"]
  node_api_docs["API Documentation"]
  node_docs_hook["API Docs Query"]
  node_service_api["Service API<br/>[service-api.js]"]
  node_api_client["API Client<br/>[client.ts]"]
  node_auth_refresh["Auth Refresh<br/>[refreshAuth.ts]"]
  node_server["Web Server<br/>[server.js]"]
  node_mail_cron["Mail Scheduler<br/>[mail-cron.js]"]
  node_env_check["Environment Check"]
end

node_customer(("Customer"))

node_customer -.->|"authenticates"| node_signin
node_customer -.->|"creates account"| node_signup
node_customer -.->|"browses plans"| node_serviceplan
node_customer -.->|"manages accounts"| node_cloud_accounts
node_customer -.->|"manages instances"| node_instances
node_customer -.->|"reviews usage"| node_billing
node_serviceplan -->|"renders"| node_api_docs
node_api_docs -.->|"queries"| node_docs_hook
node_docs_hook -->|"calls"| node_service_api
node_vpc_setup -->|"uses"| node_network_hook
node_vpc_setup -.->|"configures"| node_account_wizard
node_api_client -->|"refreshes auth"| node_auth_refresh
node_server -->|"starts"| node_mail_cron
node_server -->|"verifies environment"| node_env_check

click node_signin "https://github.com/falkordb/saasbuilder/blob/master/app/(public)/(main-image)/signin/page.tsx"
click node_signup "https://github.com/falkordb/saasbuilder/blob/master/app/(public)/(main-image)/signup/page.tsx"
click node_serviceplan "https://github.com/falkordb/saasbuilder/blob/master/src/components/ServicePlanDetails/ServicePlanDetails.tsx"
click node_plan_card "https://github.com/falkordb/saasbuilder/blob/master/src/components/ServicePlanCard/ServicePlanCard.tsx"
click node_subscriptions "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/subscriptions/page.tsx"
click node_cloud_accounts "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/page.tsx"
click node_account_wizard "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/components/CloudAccountWizard.tsx"
click node_vpc_setup "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/components/steps/ConfigureVPCsStep.tsx"
click node_network_hook "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/hooks/useCloudNativeNetworks.ts"
click node_instances "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/instances/page.tsx"
click node_instance_detail "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/instances/%5BserviceId%5D/%5BservicePlanId%5D/%5BresourceId%5D/%5BinstanceId%5D/%5BsubscriptionId%5D/page.tsx"
click node_snapshots "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/instance-snapshots/page.tsx"
click node_billing "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/billing/page.tsx"
click node_payments "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/payment-methods/page.tsx"
click node_cost "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cost-explorer/page.tsx"
click node_custom_networks "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/custom-networks/page.tsx"
click node_audit "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/audit-logs/page.tsx"
click node_access "https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/access-control/page.tsx"
click node_api_docs "https://github.com/falkordb/saasbuilder/blob/master/src/components/APIDocumentation/APIDocumentation.tsx"
click node_docs_hook "https://github.com/falkordb/saasbuilder/blob/master/src/hooks/useServiceApiDocsData.ts"
click node_service_api "https://github.com/falkordb/saasbuilder/blob/master/src/api/service-api.js"
click node_api_client "https://github.com/falkordb/saasbuilder/blob/master/src/api/client.ts"
click node_auth_refresh "https://github.com/falkordb/saasbuilder/blob/master/src/api/refreshAuth.ts"
click node_server "https://github.com/falkordb/saasbuilder/blob/master/server.js"
click node_mail_cron "https://github.com/falkordb/saasbuilder/blob/master/src/server/mail-service/mail-cron.js"
click node_env_check "https://github.com/falkordb/saasbuilder/blob/master/src/server/utils/verifyEnvironmentVariables.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_signin,node_signup toneBlue
class node_serviceplan,node_plan_card,node_subscriptions toneAmber
class node_cloud_accounts,node_account_wizard,node_vpc_setup,node_network_hook,node_instances,node_instance_detail,node_snapshots toneMint
class node_billing,node_payments,node_cost,node_custom_networks,node_audit,node_access toneRose
class node_api_docs,node_docs_hook,node_service_api,node_api_client,node_auth_refresh,node_server,node_mail_cron,node_env_check,node_customer toneIndigo
```

## Components

### Access

- [Sign-in](https://github.com/falkordb/saasbuilder/blob/master/app/(public)/(main-image)/signin/page.tsx): `app/(public)/(main-image)/signin/page.tsx`
- [Sign-up](https://github.com/falkordb/saasbuilder/blob/master/app/(public)/(main-image)/signup/page.tsx): `app/(public)/(main-image)/signup/page.tsx`

### Service Catalog

- [Plan Details](https://github.com/falkordb/saasbuilder/blob/master/src/components/ServicePlanDetails/ServicePlanDetails.tsx): `src/components/ServicePlanDetails/ServicePlanDetails.tsx`
- [Plan Selection](https://github.com/falkordb/saasbuilder/blob/master/src/components/ServicePlanCard/ServicePlanCard.tsx): `src/components/ServicePlanCard/ServicePlanCard.tsx`
- [Subscriptions](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/subscriptions/page.tsx): `app/(dashboard)/subscriptions/page.tsx`

### Provisioning

- [Cloud Accounts](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/page.tsx): `app/(dashboard)/cloud-accounts/page.tsx`
- [Account Setup](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/components/CloudAccountWizard.tsx): `app/(dashboard)/cloud-accounts/components/CloudAccountWizard.tsx`
- [VPC Setup](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/components/steps/ConfigureVPCsStep.tsx): `app/(dashboard)/cloud-accounts/components/steps/ConfigureVPCsStep.tsx`
- [Cloud Networks](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cloud-accounts/hooks/useCloudNativeNetworks.ts): `app/(dashboard)/cloud-accounts/hooks/useCloudNativeNetworks.ts`
- [Instances](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/instances/page.tsx): `app/(dashboard)/instances/page.tsx`
- [Instance Details](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/instances/%5BserviceId%5D/%5BservicePlanId%5D/%5BresourceId%5D/%5BinstanceId%5D/%5BsubscriptionId%5D/page.tsx): `app/(dashboard)/instances/[serviceId]/[servicePlanId]/[resourceId]/[instanceId]/[subscriptionId]/page.tsx`
- [Snapshots](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/instance-snapshots/page.tsx): `app/(dashboard)/instance-snapshots/page.tsx`

### Account Operations

- [Billing](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/billing/page.tsx): `app/(dashboard)/billing/page.tsx`
- [Payment Methods](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/payment-methods/page.tsx): `app/(dashboard)/payment-methods/page.tsx`
- [Cost Explorer](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/cost-explorer/page.tsx): `app/(dashboard)/cost-explorer/page.tsx`
- [Custom Networks](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/custom-networks/page.tsx): `app/(dashboard)/custom-networks/page.tsx`
- [Audit Logs](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/audit-logs/page.tsx): `app/(dashboard)/audit-logs/page.tsx`
- [Access Control](https://github.com/falkordb/saasbuilder/blob/master/app/(dashboard)/access-control/page.tsx): `app/(dashboard)/access-control/page.tsx`

### API and Runtime

- [API Documentation](https://github.com/falkordb/saasbuilder/blob/master/src/components/APIDocumentation/APIDocumentation.tsx): `src/components/APIDocumentation/APIDocumentation.tsx`
- [API Docs Query](https://github.com/falkordb/saasbuilder/blob/master/src/hooks/useServiceApiDocsData.ts): `src/hooks/useServiceApiDocsData.ts`
- [Service API](https://github.com/falkordb/saasbuilder/blob/master/src/api/service-api.js): `src/api/service-api.js`
- [API Client](https://github.com/falkordb/saasbuilder/blob/master/src/api/client.ts): `src/api/client.ts`
- [Auth Refresh](https://github.com/falkordb/saasbuilder/blob/master/src/api/refreshAuth.ts): `src/api/refreshAuth.ts`
- [Web Server](https://github.com/falkordb/saasbuilder/blob/master/server.js): `server.js`
- [Mail Scheduler](https://github.com/falkordb/saasbuilder/blob/master/src/server/mail-service/mail-cron.js): `src/server/mail-service/mail-cron.js`
- [Environment Check](https://github.com/falkordb/saasbuilder/blob/master/src/server/utils/verifyEnvironmentVariables.js): `src/server/utils/verifyEnvironmentVariables.js`

### Other components

- **Customer**

## Connections

- Customer → Sign-in: authenticates
- Customer → Sign-up: creates account
- Customer → Plan Details: browses plans
- Customer → Cloud Accounts: manages accounts
- Customer → Instances: manages instances
- Customer → Billing: reviews usage
- Plan Details → API Documentation: renders (evidence: `src/components/ServicePlanDetails/ServicePlanDetails.tsx`)
- API Documentation → API Docs Query: queries
- API Docs Query → Service API: calls (evidence: `src/hooks/useServiceApiDocsData.ts`)
- VPC Setup → Cloud Networks: uses (evidence: `app/(dashboard)/cloud-accounts/hooks/useCloudNativeNetworks.ts`)
- VPC Setup → Account Setup: configures
- API Client → Auth Refresh: refreshes auth (evidence: `src/api/client.ts`)
- Web Server → Mail Scheduler: starts (evidence: `server.js`)
- Web Server → Environment Check: verifies environment (evidence: `server.js`)
