How sathvikhegade/dataforge works
DataForge is an authenticated dataset-preparation workspace. Users register or log in, upload a dataset, inspect previews and profiling results, apply transformations that create immutable versions, then validate, compare schemas, assess ML readiness, visualize, or export a selected version. The React workspace calls a FastAPI API; backend routes coordinate Polars engines, metadata persistence, and file storage. The README documents the capability-level flow; sampled route excerpts are limited, so several route-to-engine links are documented rather than source-verified. Background task execution is present but current profiling and transformation routes are synchronous.
Main entry points: client.ts API client · tasks.py Background tasks · datasets.py Dataset routes · App.tsx App routing
Components 29
Web workspace
- App routing
frontend/src/App.tsx - Auth context
frontend/src/context/AuthContext.tsx - Dataset context
frontend/src/context/DatasetContext.tsx - Data preview
frontend/src/pages/InteractivePreview.tsx - Quality profile
frontend/src/pages/ProfilingQuality.tsx - Transform builder
frontend/src/pages/TransformationBuilder.tsx - Readiness and charts
frontend/src/pages/MLReadinessPage.tsx - API client
frontend/src/api/client.ts
API and identity
- Authentication routes
backend/app/api/routes/auth.py - Dataset routes
backend/app/api/routes/datasets.py - Profiling routes
backend/app/api/routes/profiling.py - Transformation routes
backend/app/api/routes/transformations.py - Validation and schema
backend/app/api/routes/validation.py - Version routes
backend/app/api/routes/versions.py - Readiness routes
backend/app/api/routes/ml_readiness.py - Charts and export
backend/app/api/routes/visualizations.py
Dataset preparation
- Format reader
backend/app/engine/reader.py - Profiler
backend/app/engine/profiler.py - Transformer
backend/app/engine/transformer.py - Schema comparison
backend/app/engine/schema_engine.py - Readiness engine
backend/app/engine/ml_engine.py - Chart engine
backend/app/engine/visualizer.py - Export engine
backend/app/engine/exporter.py
Persistence and jobs
- Metadata database
backend/app/database.py - Dataset storage
backend/app/core/storage.py - Version records
backend/app/models/version.py - Background tasks
backend/app/workers/tasks.py
Other components
- User
- Redis broker
Connections 33
- User → App routing: uses
README.md - App routing → Auth context: provides auth
frontend/src/App.tsx - App routing → Dataset context: provides workspace
frontend/src/App.tsx - Auth context → API client: requests auth
frontend/src/context/AuthContext.tsx - Dataset context → API client: loads datasets
frontend/src/context/DatasetContext.tsx - Data preview → API client: requests preview
frontend/src/pages/InteractivePreview.tsx - Quality profile → API client: requests profile
frontend/src/pages/ProfilingQuality.tsx - Transform builder → API client: requests transforms
frontend/src/pages/TransformationBuilder.tsx - Readiness and charts → API client: requests readiness
frontend/src/pages/MLReadinessPage.tsx - API client → Authentication routes: calls auth endpoints
README.md - API client → Dataset routes: calls dataset endpoints
README.md - API client → Profiling routes: calls profile endpoints
README.md - API client → Transformation routes: calls transform endpoints
README.md - API client → Validation and schema: calls validation endpoints
README.md - API client → Version routes: calls version endpoints
README.md - API client → Readiness routes: calls readiness endpoints
README.md - API client → Charts and export: calls chart and export endpoints
README.md - Dataset routes → Format reader: reads uploaded formats
README.md - Dataset routes → Dataset storage: stores originals and versions
README.md - Dataset routes → Version records: records version metadata
README.md - Profiling routes → Profiler: profiles data
README.md - Transformation routes → Transformer: executes operations
README.md - Transformation routes → Version records: creates child version
README.md - Validation and schema → Schema comparison: compares schemas
README.md - Readiness routes → Readiness engine: evaluates readiness
README.md - Charts and export → Chart engine: builds chart data
README.md - Charts and export → Export engine: exports selected version
README.md - Authentication routes → Metadata database: queries users
backend/app/api/routes/auth.py - Metadata database → Version records: defines ORM base
backend/app/models/version.py - Background tasks → Metadata database: updates job records
backend/app/workers/tasks.py - Background tasks → Dataset storage: reads and writes files
backend/app/workers/tasks.py - Background tasks → Transformer: applies operation
backend/app/workers/tasks.py - Background tasks → Redis broker: uses broker