How cs-kyoutu/data-palette-builder works
Data Palette is a web application for turning uploaded or selected table definitions and output requirements into executable data-preparation instructions and Excel workbooks. Its main workflow runs through the FastAPI application, generation engine, procedure rendering, and workbook creation. A separate BI mode plans reports, creates BI designs, and renders report instructions and spreadsheets; it also supports reverse-design documents and executable preprocessing for BI-derived metrics. The graph follows documented imports and calls; some implementation details and frontend wiring were not sampled, so those links are omitted.
Main entry points: routes.py BI API · app.py Web API · generate_engine.py Procedure Generation · _shared.py Shared Infrastructure
Components 21
Application
- Web API
backend/app.py
Data Preparation
- Input Parser
backend/parser.py - Procedure Generation
backend/generate_engine.py - Template Renderer
backend/template_engine.py - Formal Renderer
backend/procedure_engine.py - Procedure Pipeline
skills/procedure_pipeline.js - Procedure Resolver
skills/resolve_procedure.js - Procedure Workbook
backend/excel_builder.py
BI Design
- BI API
backend/bi/routes.py - BI Prompts
backend/bi/prompts.py - BI Vocabulary
backend/bi/vocab.py - SQL Builder
backend/bi/sql_builder.py - Report Instructions
backend/bi/report_engine.py - Design Documents
backend/bi/design_engine.py - BI Workbook
backend/bi/excel_builder.py - Design Document
backend/bi/design_doc.py
Shared Services
- Shared Infrastructure
backend/_shared.py - Session Store
backend/_shared.py
Other components
- User
- PostgreSQL
- Claude API
Connections 26
- User → Web API: submits requests
backend/app.py - Web API → Input Parser: parses inputs
backend/app.py - Web API → Procedure Generation: generates procedures
backend/app.py - Web API → Template Renderer: renders steps
backend/app.py - Web API → Procedure Workbook: builds workbook
backend/app.py - Web API → Shared Infrastructure: uses services
backend/app.py - Web API → BI API: mounts routes
backend/bi/routes.py - Procedure Generation → Shared Infrastructure: uses services
backend/generate_engine.py - Procedure Generation → Template Renderer: renders procedures
backend/generate_engine.py - Procedure Generation → Formal Renderer: renders procedures
backend/generate_engine.py - Procedure Generation → Procedure Workbook: builds workbook
backend/generate_engine.py - Formal Renderer → Procedure Pipeline: ports pipeline
backend/procedure_engine.py - Procedure Pipeline → Procedure Resolver: resolves operations
skills/procedure_pipeline.js - BI API → Shared Infrastructure: uses services
backend/bi/routes.py - BI API → BI Prompts: builds prompts
backend/bi/routes.py - BI API → SQL Builder: builds SQL
backend/bi/routes.py - BI API → Report Instructions: renders instructions
backend/bi/routes.py - BI API → Design Documents: renders designs
backend/bi/routes.py - BI API → BI Workbook: builds workbook
backend/bi/routes.py - BI API → Design Document: uses design documents
backend/bi/routes.py - BI Prompts → BI Vocabulary: uses vocabulary
backend/bi/prompts.py - SQL Builder → BI Vocabulary: uses vocabulary
backend/bi/sql_builder.py - Report Instructions → BI Vocabulary: uses vocabulary
backend/bi/report_engine.py - Design Documents → BI Vocabulary: uses vocabulary
backend/bi/design_engine.py - Shared Infrastructure → PostgreSQL: stores sessions
backend/_shared.py - Shared Infrastructure → Claude API: calls API