How 404-shiv/clarionex works
Clarionex turns uploaded CSVs into cleaned, classified datasets and suggested Plotly visualizations, which users select for a dashboard. The backend keeps the current dataset and metadata in memory; the frontend coordinates upload, chart selection, rendering, and exports. The README documents broad chart support, while the excerpts show the upload/cleaning/metadata path and chart-generation boundary. Some view and chart-rendering details are unsampled, so uncertain internal links are omitted.
Main entry points: main.py FastAPI endpoints · App.jsx App state · DashboardView.jsx Dashboard view · Layout.jsx App layout
Components 20
Frontend experience
- App state
frontend/src/App.jsx - Upload view
frontend/src/views/UploadView.jsx - CSV upload
frontend/src/components/UploadZone.jsx - API client
frontend/src/api.js - Dashboard view
frontend/src/views/DashboardView.jsx - Chart selector
frontend/src/components/ChartSelector.jsx - Dashboard grid
frontend/src/components/Dashboard.jsx - Chart card
frontend/src/components/ChartCard.jsx - Insights view
frontend/src/views/InsightsView.jsx - Datasets view
frontend/src/views/DatasetsView.jsx - App layout
frontend/src/components/Layout.jsx - Navigation bar
frontend/src/components/Navbar.jsx - Sidebar navigation
frontend/src/components/Sidebar.jsx
Dataset processing
- FastAPI endpoints
backend/main.py - In-memory dataset
backend/main.py - CSV cleaning
backend/cleaning.py - Column metadata
backend/metadata.py
Charting
- Chart suggestions and generation
backend/chart_engine.py - Plotly chart output
backend/chart_engine.py
Other components
- Analyst
Connections 20
- Analyst → CSV upload: uploads CSV
README.md - App state → App layout: renders
frontend/src/App.jsx - App state → Upload view: routes upload
frontend/src/App.jsx - App state → Dashboard view: routes dashboard
frontend/src/App.jsx - Upload view → CSV upload: renders
frontend/src/views/UploadView.jsx - CSV upload → API client: uploads and fetches charts
frontend/src/components/UploadZone.jsx - API client → FastAPI endpoints: HTTP requests
frontend/src/api.js - FastAPI endpoints → CSV cleaning: cleans dataset
backend/main.py - FastAPI endpoints → Column metadata: detects structure
backend/main.py - FastAPI endpoints → Chart suggestions and generation: suggests and generates
backend/main.py - FastAPI endpoints → In-memory dataset: stores dataset and metadata
backend/main.py - Chart suggestions and generation → In-memory dataset: uses stored dataset
backend/main.py - Chart suggestions and generation → Plotly chart output: returns chart JSON
backend/chart_engine.py - Dashboard view → Chart selector: shows chart options
frontend/src/views/DashboardView.jsx - Dashboard view → Dashboard grid: renders selected charts
frontend/src/views/DashboardView.jsx - Dashboard grid → Chart card: renders cards
frontend/src/components/Dashboard.jsx - Chart card → API client: requests chart data
frontend/src/components/ChartCard.jsx - App layout → Sidebar navigation: renders
frontend/src/components/Layout.jsx - App layout → Navigation bar: renders
frontend/src/components/Layout.jsx - Insights view → Dashboard grid: renders dashboard
frontend/src/views/InsightsView.jsx