# billaxy/billaxy-platform architecture

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

- Interactive diagram: https://gitdiagram.com/billaxy/billaxy-platform
- Repository: https://github.com/billaxy/billaxy-platform

## Overview

Billaxy’s repository is a public marketing site for its shop-management app, not the app itself. Visitors browse the landing page and trade-specific pages, review product capabilities and pricing, then follow sign-in/registration links to the external app or open a prefilled WhatsApp/email message. The site also provides FAQs, contact details, legal pages and theme selection. The main page and selected components were excerpted; other page and component links below rely on SOURCE INDEX references or README statements, so unsampled behavior is not inferred.

Main entry points: [`src/app/page.tsx`](https://github.com/billaxy/billaxy-platform/blob/main/src/app/page.tsx) (Landing page), [`src/app/business/[slug]/page.tsx`](https://github.com/billaxy/billaxy-platform/blob/main/src/app/business/%5Bslug%5D/page.tsx) (Trade pages), [`src/components/site-header.tsx`](https://github.com/billaxy/billaxy-platform/blob/main/src/components/site-header.tsx) (Site header), [`src/components/business-type-selector.tsx`](https://github.com/billaxy/billaxy-platform/blob/main/src/components/business-type-selector.tsx) (Trade selector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public pages"]
  node_home["Landing page<br/>[page.tsx]"]
  node_trade["Trade pages<br/>[page.tsx]"]
  node_legal["Legal pages<br/>[page.tsx]"]
  node_metadata["Site metadata<br/>[sitemap.ts]"]
end

subgraph group_content["Product content"]
  node_trade_data["Trade catalog<br/>[business-types.ts]"]
  node_features["Feature catalog<br/>[features.ts]"]
  node_pricing_data["Pricing data<br/>[pricing.ts]"]
  node_site_config["Site configuration<br/>[site.ts]"]
end

subgraph group_ui["Page components"]
  node_selector["Trade selector"]
  node_feature_view["Feature display"]
  node_pricing_view["Pricing display<br/>[pricing-table.tsx]"]
  node_comparison["Comparison table"]
  node_flow["Sale-flow diagram<br/>[flow-diagram.tsx]"]
  node_sample_bill["Sample invoice<br/>[sample-bill.tsx]"]
  node_contact_form["Contact form<br/>[contact-form.tsx]"]
  node_faq["FAQ list<br/>[faq-list.tsx]"]
  node_header["Site header<br/>[site-header.tsx]"]
  node_floating["Floating actions"]
  node_brand["Brand mark<br/>[brand-mark.tsx]"]
  node_theme["Theme toggle<br/>[theme-toggle.tsx]"]
end

subgraph group_security["Request security"]
  node_csp["CSP policy<br/>[csp.ts]"]
  node_proxy["Request proxy<br/>[proxy.ts]"]
end

subgraph group_external["External destinations"]
  node_app["Billaxy app"]
  node_whatsapp["WhatsApp"]
  node_email["Email client"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_home
node_visitor -.->|"opens trade"| node_trade
node_home -->|"renders"| node_selector
node_home -->|"renders"| node_sample_bill
node_home -->|"renders"| node_faq
node_home -->|"renders"| node_header
node_home -->|"renders"| node_floating
node_home -.->|"renders"| node_flow
node_home -.->|"renders"| node_comparison
node_home -.->|"renders"| node_contact_form
node_trade -->|"reads"| node_trade_data
node_trade -->|"renders"| node_feature_view
node_trade -->|"renders"| node_sample_bill
node_trade -->|"renders"| node_header
node_trade -->|"renders"| node_floating
node_trade -.->|"links to"| node_selector
node_selector -->|"reads"| node_trade_data
node_selector -->|"opens message"| node_whatsapp
node_home -.->|"renders"| node_feature_view
node_home -.->|"renders"| node_pricing_view
node_pricing_view -->|"reads"| node_pricing_data
node_feature_view -->|"reads"| node_features
node_contact_form -->|"opens message"| node_whatsapp
node_contact_form -->|"opens message"| node_email
node_header -->|"renders"| node_brand
node_header -->|"renders"| node_theme
node_header -.->|"links to"| node_app
node_floating -->|"reads"| node_site_config
node_sample_bill -.->|"reads"| node_site_config
node_sample_bill -.->|"uses toast"| node_faq
node_metadata -->|"reads"| node_trade_data
node_metadata -->|"reads"| node_site_config
node_legal -->|"reads"| node_site_config
node_proxy -->|"configures"| node_csp
node_visitor -->|"requests"| node_proxy

click node_home "https://github.com/billaxy/billaxy-platform/blob/main/src/app/page.tsx"
click node_trade "https://github.com/billaxy/billaxy-platform/blob/main/src/app/business/%5Bslug%5D/page.tsx"
click node_legal "https://github.com/billaxy/billaxy-platform/blob/main/src/app/privacy/page.tsx"
click node_metadata "https://github.com/billaxy/billaxy-platform/blob/main/src/app/sitemap.ts"
click node_trade_data "https://github.com/billaxy/billaxy-platform/blob/main/src/lib/business-types.ts"
click node_features "https://github.com/billaxy/billaxy-platform/blob/main/src/lib/features.ts"
click node_pricing_data "https://github.com/billaxy/billaxy-platform/blob/main/src/lib/pricing.ts"
click node_site_config "https://github.com/billaxy/billaxy-platform/blob/main/src/lib/site.ts"
click node_selector "https://github.com/billaxy/billaxy-platform/blob/main/src/components/business-type-selector.tsx"
click node_feature_view "https://github.com/billaxy/billaxy-platform/blob/main/src/components/feature-catalog.tsx"
click node_pricing_view "https://github.com/billaxy/billaxy-platform/blob/main/src/components/pricing-table.tsx"
click node_comparison "https://github.com/billaxy/billaxy-platform/blob/main/src/components/comparison-table.tsx"
click node_flow "https://github.com/billaxy/billaxy-platform/blob/main/src/components/flow-diagram.tsx"
click node_sample_bill "https://github.com/billaxy/billaxy-platform/blob/main/src/components/sample-bill.tsx"
click node_contact_form "https://github.com/billaxy/billaxy-platform/blob/main/src/components/contact-form.tsx"
click node_faq "https://github.com/billaxy/billaxy-platform/blob/main/src/components/faq-list.tsx"
click node_header "https://github.com/billaxy/billaxy-platform/blob/main/src/components/site-header.tsx"
click node_floating "https://github.com/billaxy/billaxy-platform/blob/main/src/components/floating-actions.tsx"
click node_brand "https://github.com/billaxy/billaxy-platform/blob/main/src/components/brand-mark.tsx"
click node_theme "https://github.com/billaxy/billaxy-platform/blob/main/src/components/theme-toggle.tsx"
click node_csp "https://github.com/billaxy/billaxy-platform/blob/main/src/lib/csp.ts"
click node_proxy "https://github.com/billaxy/billaxy-platform/blob/main/src/proxy.ts"

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_home,node_trade,node_legal,node_metadata toneBlue
class node_trade_data,node_features,node_pricing_data,node_site_config toneAmber
class node_selector,node_feature_view,node_pricing_view,node_comparison,node_flow,node_sample_bill,node_contact_form,node_faq,node_header,node_floating,node_brand,node_theme toneMint
class node_csp,node_proxy toneRose
class node_app,node_whatsapp,node_email,node_visitor toneIndigo
```

## Components

### Public pages

- [Landing page](https://github.com/billaxy/billaxy-platform/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Trade pages](https://github.com/billaxy/billaxy-platform/blob/main/src/app/business/%5Bslug%5D/page.tsx): `src/app/business/[slug]/page.tsx`
- [Legal pages](https://github.com/billaxy/billaxy-platform/blob/main/src/app/privacy/page.tsx): `src/app/privacy/page.tsx`
- [Site metadata](https://github.com/billaxy/billaxy-platform/blob/main/src/app/sitemap.ts): `src/app/sitemap.ts`

### Product content

- [Trade catalog](https://github.com/billaxy/billaxy-platform/blob/main/src/lib/business-types.ts): `src/lib/business-types.ts`
- [Feature catalog](https://github.com/billaxy/billaxy-platform/blob/main/src/lib/features.ts): `src/lib/features.ts`
- [Pricing data](https://github.com/billaxy/billaxy-platform/blob/main/src/lib/pricing.ts): `src/lib/pricing.ts`
- [Site configuration](https://github.com/billaxy/billaxy-platform/blob/main/src/lib/site.ts): `src/lib/site.ts`

### Page components

- [Trade selector](https://github.com/billaxy/billaxy-platform/blob/main/src/components/business-type-selector.tsx): `src/components/business-type-selector.tsx`
- [Feature display](https://github.com/billaxy/billaxy-platform/blob/main/src/components/feature-catalog.tsx): `src/components/feature-catalog.tsx`
- [Pricing display](https://github.com/billaxy/billaxy-platform/blob/main/src/components/pricing-table.tsx): `src/components/pricing-table.tsx`
- [Comparison table](https://github.com/billaxy/billaxy-platform/blob/main/src/components/comparison-table.tsx): `src/components/comparison-table.tsx`
- [Sale-flow diagram](https://github.com/billaxy/billaxy-platform/blob/main/src/components/flow-diagram.tsx): `src/components/flow-diagram.tsx`
- [Sample invoice](https://github.com/billaxy/billaxy-platform/blob/main/src/components/sample-bill.tsx): `src/components/sample-bill.tsx`
- [Contact form](https://github.com/billaxy/billaxy-platform/blob/main/src/components/contact-form.tsx): `src/components/contact-form.tsx`
- [FAQ list](https://github.com/billaxy/billaxy-platform/blob/main/src/components/faq-list.tsx): `src/components/faq-list.tsx`
- [Site header](https://github.com/billaxy/billaxy-platform/blob/main/src/components/site-header.tsx): `src/components/site-header.tsx`
- [Floating actions](https://github.com/billaxy/billaxy-platform/blob/main/src/components/floating-actions.tsx): `src/components/floating-actions.tsx`
- [Brand mark](https://github.com/billaxy/billaxy-platform/blob/main/src/components/brand-mark.tsx): `src/components/brand-mark.tsx`
- [Theme toggle](https://github.com/billaxy/billaxy-platform/blob/main/src/components/theme-toggle.tsx): `src/components/theme-toggle.tsx`

### Request security

- [CSP policy](https://github.com/billaxy/billaxy-platform/blob/main/src/lib/csp.ts): `src/lib/csp.ts`
- [Request proxy](https://github.com/billaxy/billaxy-platform/blob/main/src/proxy.ts): `src/proxy.ts`

### External destinations

- **Billaxy app**
- **WhatsApp**
- **Email client**

### Other components

- **Visitor**

## Connections

- Visitor → Landing page: browses (evidence: `README.md`)
- Visitor → Trade pages: opens trade
- Landing page → Trade selector: renders (evidence: `src/app/page.tsx`)
- Landing page → Sample invoice: renders (evidence: `src/app/page.tsx`)
- Landing page → FAQ list: renders (evidence: `src/app/page.tsx`)
- Landing page → Site header: renders (evidence: `src/app/page.tsx`)
- Landing page → Floating actions: renders (evidence: `src/app/page.tsx`)
- Landing page → Sale-flow diagram: renders (evidence: `src/app/page.tsx`)
- Landing page → Comparison table: renders (evidence: `src/app/page.tsx`)
- Landing page → Contact form: renders (evidence: `src/app/page.tsx`)
- Trade pages → Trade catalog: reads (evidence: `src/app/business/[slug]/page.tsx`)
- Trade pages → Feature display: renders (evidence: `src/app/business/[slug]/page.tsx`)
- Trade pages → Sample invoice: renders (evidence: `src/app/business/[slug]/page.tsx`)
- Trade pages → Site header: renders (evidence: `src/app/business/[slug]/page.tsx`)
- Trade pages → Floating actions: renders (evidence: `src/app/business/[slug]/page.tsx`)
- Trade pages → Trade selector: links to
- Trade selector → Trade catalog: reads (evidence: `src/components/business-type-selector.tsx`)
- Trade selector → WhatsApp: opens message (evidence: `src/components/business-type-selector.tsx`)
- Landing page → Feature display: renders (evidence: `src/app/page.tsx`)
- Landing page → Pricing display: renders (evidence: `src/app/page.tsx`)
- Pricing display → Pricing data: reads (evidence: `src/components/pricing-table.tsx`)
- Feature display → Feature catalog: reads (evidence: `src/components/feature-catalog.tsx`)
- Contact form → WhatsApp: opens message (evidence: `src/components/contact-form.tsx`)
- Contact form → Email client: opens message (evidence: `src/components/contact-form.tsx`)
- Site header → Brand mark: renders (evidence: `src/components/site-header.tsx`)
- Site header → Theme toggle: renders (evidence: `src/components/site-header.tsx`)
- Site header → Billaxy app: links to (evidence: `README.md`)
- Floating actions → Site configuration: reads (evidence: `src/components/floating-actions.tsx`)
- Sample invoice → Site configuration: reads
- Sample invoice → FAQ list: uses toast
- Site metadata → Trade catalog: reads (evidence: `src/app/sitemap.ts`)
- Site metadata → Site configuration: reads (evidence: `src/app/sitemap.ts`)
- Legal pages → Site configuration: reads (evidence: `src/app/privacy/page.tsx`)
- Request proxy → CSP policy: configures (evidence: `src/proxy.ts`)
- Visitor → Request proxy: requests (evidence: `README.md`)
