How rey1332/etnav2 works
BettyWhite is a web and Electron ERP platform with operational business records, workspace access controls, workflow automation, reporting, and standalone statistical analysis tools. The principal workflow is a signed-in user working in ERP screens, which call server APIs to read or change scoped business data; analytics and workflow features extend that flow. The graph also shows authentication and major integrations. The README is empty, and sampled source is incomplete, so links for unsampled feature internals are omitted rather than inferred.
Main entry points: erp ERP screens · service.ts Currency service · workflows Workflow API · route.ts Workspace access
Components 27
ERP operations
- ERP screens
src/app/erp - Workspace access
src/app/api/erp/workspace/route.ts - Business data API
src/app/api/data/route.ts - ERP service layer
src/app/erp/lib/erpService.ts - Data export
src/app/api/erp/export/route.ts - Currency service
src/server/currency/service.ts - Currency API
src/app/api/erp/currency/route.ts
Workflow automation
- Workflow editor
src/app/erp/workflows - Workflow API client
src/lib/workflow/storage.ts - Workflow API
src/app/api/erp/workflows - Workflow runtime
src/lib/workflow
Analytics and statistics
- ERP reports
src/app/erp/reports/page.tsx - Analytics query API
src/app/api/erp/analytics/query/route.ts - Query and catalog
src/lib/analytics/query.ts - Statistical tools
src/app/statistics - Regression analysis
src/app/regression - Distribution analysis
src/app/distribution
Access and platform
- Sign-in screens
src/app/login/page.tsx - Authentication API
src/app/api/auth/[action]/route.ts - Authentication service
src/server/auth/service.ts - In-app console
src/components/console/ConsoleHost.tsx - Console API
src/app/api/console/route.ts - AI generation API
src/app/api/ai/generate/route.ts
Other components
- ERP user
- Exchange-rate provider
- ERP database
- OpenAI service
Connections 31
- ERP user → ERP screens: uses
- ERP user → Sign-in screens: signs in
- ERP screens → ERP service layer: requests data
- ERP service layer → Business data API: calls
- Business data API → ERP database: executes queries
- ERP screens → Workspace access: manages access
- Workspace access → ERP database: runs RPCs
- ERP screens → Data export: requests export
- Data export → ERP database: reads records
- Currency API → Currency service: dispatches actions
- Currency service → ERP database: reads and writes
- Currency service → Exchange-rate provider: fetches rates
- ERP user → Workflow editor: builds workflows
- Workflow editor → Workflow API client: uses
- Workflow API client → Workflow API: calls endpoints
- Workflow API → ERP database: reads and writes
- Workflow API → Workflow runtime: uses runtime
- ERP user → ERP reports: requests reports
- ERP reports → Analytics query API: queries
- Analytics query API → Query and catalog: validates and shapes
- Query and catalog → ERP database: describes data queries
- ERP user → Statistical tools: analyzes data
- ERP user → Regression analysis: analyzes data
- ERP user → Distribution analysis: analyzes data
- Authentication API → Authentication service: dispatches auth actions
- Authentication service → ERP database: uses auth store
- ERP user → In-app console: opens console
- In-app console → Console API: sends commands
- Console API → ERP database: runs commands
- ERP user → AI generation API: requests generation
- AI generation API → OpenAI service: sends prompt