How comstrx/saasx works
SaasX is a multi-tenant SaaS composed of two shared foundations and five product parts. The principal customer flow is through the mobile or web experience into backend services for identity, tenant access, and business operations; the README describes the product capabilities, but the sampled source does not expose most backend or mobile call chains. The graph therefore uses documented relationships and keeps other products—especially infrastructure and the MCP knowledge runtime—as distinct branches. Subsystem paths identify unsampled areas; sampled web API internals are shown where they clarify the request layer.
Main entry points: app Multi-role mobile app · web Web surfaces · crates SaaS API services · client.ts Web API client
Components 20
Shared foundations
- Rust foundation
engine/rust/crates/base/src/lib.rs - TypeScript foundation
engine/node/packages/base/src/index.ts
Backend services
- SaaS API services
platform/api/crates - API contracts
platform/api
Customer experiences
- Web surfaces
platform/web - Web specs
platform/web/specs - Web API client
platform/web/src/api/core/client.ts - Server API workflow
platform/web/src/api/workflow/server.ts - Route and query utilities
platform/web/src/lib/std/route.ts - Review management
platform/web/src/components/review-manager.tsx - Multi-role mobile app
platform/mobile/src/app - Mobile API client
platform/mobile/src/api/client.ts - Mobile identity flows
platform/mobile/src/features/auth - Catalog and discovery
platform/mobile/src/features/explore - Cart and checkout
platform/mobile/src/features/checkout - Orders and tickets
platform/mobile/src/features/orders
Platform operations
- Infrastructure engine
platform/infra/src/main.rs
Knowledge runtime
- MCP knowledge runtime
platform/skill/src/main.rs
Other components
- Customer or staff
- AI agent
Connections 22
- Customer or staff → Multi-role mobile app: uses app
README.md - Customer or staff → Web surfaces: uses surfaces
README.md - Multi-role mobile app → Mobile identity flows: supports identity
README.md - Multi-role mobile app → Catalog and discovery: supports discovery
README.md - Multi-role mobile app → Cart and checkout: supports checkout
README.md - Multi-role mobile app → Orders and tickets: supports orders
README.md - Multi-role mobile app → Mobile API client: uses API client
- Mobile API client → SaaS API services: calls services
- Web surfaces → Web specs: declares surfaces
README.md - Web surfaces → Server API workflow: loads server data
platform/web/src/api/workflow/server.ts - Server API workflow → Web API client: uses client
platform/web/src/api/workflow/server.ts - Web API client → Route and query utilities: encodes requests
- Web API client → SaaS API services: calls services
- Web surfaces → Review management: manages reviews
platform/web/src/components/review-manager.tsx - Review management → SaaS API services: persists review actions
- SaaS API services → API contracts: exposes contracts
README.md - SaaS API services → Rust foundation: builds on
README.md - Web surfaces → TypeScript foundation: builds on
README.md - Multi-role mobile app → TypeScript foundation: builds on
README.md - Infrastructure engine → Rust foundation: builds on
README.md - AI agent → MCP knowledge runtime: queries MCP
README.md - MCP knowledge runtime → Rust foundation: builds on