1.1 KiB
1.1 KiB
Project
Webcam pose detection app using MediaPipe Tasks Vision. Vite + React 19 + TypeScript.
Commands
npm run dev- start dev servernpm run build- typecheck then build (tsc -b && vite build)npm run lint- eslintnpm run preview- preview production build
Workflow
- Commit on your own after completing a reasonable chunk of work. Don't wait to be asked.
Code guidelines
- Modular architecture: each file should have a single, clear responsibility. Extract logic into separate modules rather than growing large files.
- Good abstractions: group related logic into custom hooks, utility modules, or components. Keep rendering, state management, and business logic in separate layers.
- Easy to maintain: prefer small, focused functions and components. Name things clearly so intent is obvious without comments.
- Keep types in dedicated files (e.g.
types.ts), not scattered across components. - Use
typeimports for type-only imports (import type { ... }). - No default exports for non-page components; use named exports.