How anthonyy616/antlyst works
Antlyst is a web-based data visualization product: users upload CSV data, then explore generated dashboards in different styles. The repository also includes data-source integrations, dataset profiling and analysis, AI assistance, and project collaboration features. The graph emphasizes the documented upload-to-dashboard workflow and the sampled route/service relationships; unsampled branches are represented at their existing directories, and their internal wiring is not inferred.
Main entry points: prisma.ts Application database · route.ts AI chat endpoint · engine-wrapper.tsx Dashboard engine selector · dataset-profiler.ts Dataset profiler
Components 24
User experience
- Project workspace
src/app/(protected)/(dashboard)/[orgId]/projects/[projectId]/page.tsx - Dashboard views
src/app/(protected)/(dashboard)/[orgId]/projects/[projectId]/dashboard/[style]/page.tsx
Data ingestion
- Data connector
src/components/dashboard/DataConnector.tsx - Upload endpoint
src/app/api/upload/route.ts - File processing endpoint
src/app/api/files/process/route.ts - Data-source API
src/app/api/datasources/route.ts - Background data fetch
src/lib/background-fetch.ts
Analysis and dashboards
- Dashboard engine selector
src/components/dashboard/engine-wrapper.tsx - Simple charts
src/components/dashboard/simple-engine.tsx - ML plots
src/components/dashboard/MLPlotsEngine.tsx - Power BI dashboards
src/components/dashboard/PowerBIEngine.tsx
AI and insights
- Dataset profiling API
src/app/api/datasets/profile/route.ts - Column classification
src/lib/column-validator.ts - Dataset profiler
src/lib/dataset-profiler.ts - Automated insights
src/lib/insight-engine.ts - AI chat endpoint
src/app/api/ai/chat/route.ts - AI context builder
src/lib/ai-context-builder.ts - AI service
src/lib/ai-service.ts
Platform services
- Project API
src/app/api/projects/route.ts - Organization API
src/app/api/org/route.ts - Organization service
src/lib/services/org.service.ts - Application database
src/lib/prisma.ts - R2 object storage
src/lib/r2.ts
Other components
- Analyst
Connections 28
- Analyst → Project workspace: uploads data
- Project workspace → Dashboard views: opens dashboard
- Dashboard views → Dashboard engine selector: selects style
- Dashboard engine selector → Simple charts: renders
src/components/dashboard/engine-wrapper.tsx - Dashboard engine selector → ML plots: renders
src/components/dashboard/engine-wrapper.tsx - Dashboard engine selector → Power BI dashboards: renders
src/components/dashboard/engine-wrapper.tsx - Dashboard engine selector → Data connector: renders
src/components/dashboard/engine-wrapper.tsx - Data connector → Upload endpoint: submits upload
- Upload endpoint → Application database: records upload
src/app/api/upload/route.ts - Upload endpoint → R2 object storage: stores file
src/app/api/upload/route.ts - File processing endpoint → Application database: reads and updates
src/app/api/files/process/route.ts - File processing endpoint → R2 object storage: reads file
src/app/api/files/process/route.ts - File processing endpoint → Column classification: validates columns
src/app/api/files/process/route.ts - Data-source API → Application database: reads and writes
src/app/api/datasources/route.ts - Data-source API → Background data fetch: starts fetch
src/app/api/datasources/route.ts - Dataset profiling API → Application database: loads dataset
src/app/api/datasets/profile/route.ts - Dataset profiling API → R2 object storage: reads dataset
src/app/api/datasets/profile/route.ts - Dataset profiling API → Dataset profiler: profiles rows
src/app/api/datasets/profile/route.ts - Dataset profiler → Column classification: classifies columns
src/lib/dataset-profiler.ts - Automated insights → Dataset profiler: profiles rows
src/lib/insight-engine.ts - AI chat endpoint → Application database: loads project
src/app/api/ai/chat/route.ts - AI chat endpoint → R2 object storage: loads dataset
src/app/api/ai/chat/route.ts - AI chat endpoint → Dataset profiler: profiles dataset
src/app/api/ai/chat/route.ts - AI chat endpoint → AI context builder: builds context
src/app/api/ai/chat/route.ts - AI chat endpoint → AI service: selects model
src/app/api/ai/chat/route.ts - Project API → Application database: uses persistence
src/app/api/projects/route.ts - Organization API → Organization service: delegates
src/app/api/org/route.ts - Organization service → Application database: uses persistence
src/lib/services/org.service.ts