This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
npm run dev- Start development server with Turbopacknpm run build- Build production applicationnpm run start- Start production server
npm run quality- Run all quality checks (typecheck + lint + format check)npm run quality:fix- Run typecheck + lint fix + formatnpm run type-check- TypeScript type checkingnpm run lint- ESLint checkingnpm run lint:fix- ESLint with auto-fixnpm run format- Format code with Prettiernpm run format:check- Check formatting without changing files
npm test- Run Jest testsnpm run test:watch- Run tests in watch modenpm run test:coverage- Run tests with coverage reportnpm run test:ci- Run tests for CI (no watch)
npm test -- --testNamePattern="test name"- Run specific test by namenpm test -- path/to/test.test.ts- Run specific test file
MLOps Studio is a Next.js 15 React application for building MLOps technology stacks visually using React Flow.
Key architectural components:
- State Management: React hooks with localStorage persistence via
/src/lib/storage.ts - Data Layer:
/src/lib/data.tscontains 60+ MLOps technologies across 8 predefined stages - Custom Extensions:
/src/lib/customStages.tsand/src/lib/customTechnologies.tsfor user-defined elements - Physics Engine: Matter.js integration in
/src/hooks/usePhysics.tsand/src/hooks/useSmoothCollision.tsfor advanced collision detection
- Main Canvas (
/src/app/page.tsx): Interactive React Flow builder with drag-and-drop stages - Tools Browser (
/src/app/tools/page.tsx): Browse all available MLOps technologies - Examples (
/src/app/examples/page.tsx): Pre-built example stacks - Admin Panel (
/src/app/admin/page.tsx): Custom technology and stage management
- ReactFlowCanvas (
/src/components/ReactFlowCanvas.tsx): Main visual builder with physics integration - CustomNode (
/src/components/CustomNode.tsx): Interactive stage nodes with technology management - TechnologyPanel (
/src/components/TechnologyPanel.tsx): Side panel for adding technologies to stages - TechnologyModal & TechnologyFormModal: Technology viewing and editing interfaces
Central types defined in /src/types/mlops.ts:
Technology- MLOps tool definitions with installation, integrations, use casesMLOpsStage- Pipeline stages (experiment_tracking, model_serving, etc.)MLOpsStack- Complete user-built technology stacksStageConnection- Directional connections between stages
- Default Data: 60+ technologies across 8 stages loaded from
/src/lib/data.ts - Custom Extensions: User-defined stages/technologies stored in localStorage
- Stack Management: Complete stacks saved/loaded via
/src/lib/storage.ts - Physics Integration: Real-time collision detection and smooth positioning
- TypeScript: Strict mode with
@/*path aliases pointing tosrc/* - Testing: Jest with React Testing Library, jsdom environment
- Code Quality: ESLint + Prettier + Husky pre-commit hooks
- Styling: Tailwind CSS with component-based architecture