A minimal, Cursor-ready Next.js + TypeScript starter for visualizing ML/data workflows. The MVP supports:
- Upload CSV (client-only, PapaParse)
- Node card for Read CSV showing:
- Parameters (editable)
- Generated Python code (pd.read_csv(...))
- Preview table (first 100 rows)
 
- Extensible op registry for future nodes (train/test split, etc.)
pnpm i        # or npm i / yarn
pnpm dev      # http://localhost:3000If using npm:
npm run dev
app/                # Next.js App Router
components/         # UI pieces (UploadDropzone, Inspector, TablePreview, CodeBlock)
core/               # types, registry, zustand store
plugins/            # operations (Read CSV)
styles/             # Tailwind setup
- Dropping/choosing a file caches it in window.__fileMap.
- A Read CSVnode is created and registered in the global registry.
- The plugin's preview()parses the file with PapaParse and emits atableartifact.
- The Inspectorupdates parameters and regenerates Python code viacodegen().
- Click Refresh Preview to re-parse using current params.
- Add Train/Test Split plugin and connect outputs → inputs
- Introduce React Flow graph canvas and right-side inspector
- Implement Export to .py (codegen across nodes)
- Optional runtime toggle: Client-only → Pyodide → FastAPI kernel
- The pandas function is pd.read_csv(underscore).
- This MVP avoids server code for simplicity.
## License
MIT