How rosmnd/signhome works
SignHome is a local ASL home-automation interface. The main workflow is camera input → hand tracking and gesture classification → shared appliance state and command dispatch → optional Arduino serial control. The control center also exposes virtual appliance controls, calibration, and diagnostics; separate routes provide a gesture guide and language information. Edges follow shown imports/calls or README descriptions; unsampled UI details and integrations are not inferred.
Main entry points: control-center.tsx Control center · use-hand-tracker.ts Hand tracker · routeTree.gen.ts Route tree · guide.tsx Gesture guide
Components 25
App and routes
- Router setup
src/router.tsx - Route tree
src/routeTree.gen.ts - Home route
src/routes/index.tsx - Gesture guide
src/routes/guide.tsx - Language page
src/routes/languages.tsx
Hand tracking
- Camera stage
src/components/camera-stage.tsx - Hand tracker
src/hooks/use-hand-tracker.ts - Landmark processing
src/lib/landmarks.ts - Gesture classifier
src/lib/classifier.ts - Random Forest
src/lib/random-forest.ts - Hand drawing
src/lib/draw-hands.ts - Hand skeleton
src/components/hand-skeleton.tsx - Gesture definitions
src/lib/gestures.ts - Hand poses
src/lib/hand-poses.ts - Hand diagnostics
src/components/landmark-inspector.tsx
Appliance controls
- Control center
src/components/control-center.tsx - App state
src/lib/store.ts - Virtual appliances
src/components/virtual-home.tsx - Calibration tools
src/components/calibrate-panel.tsx
Hardware and guides
- Serial panel
src/components/arduino-serial-panel.tsx - Serial transport
src/lib/arduino-serial.ts - Peer connections
src/lib/multiplayer/p2p.ts
Other components
- User
- Browser camera
- Arduino relay
Connections 29
- User → Router setup: opens app
src/router.tsx - Router setup → Route tree: uses routes
src/router.tsx - Route tree → Home route: registers
src/routeTree.gen.ts - Route tree → Gesture guide: registers
src/routeTree.gen.ts - Route tree → Language page: registers
src/routeTree.gen.ts - Home route → Control center: renders
src/routes/index.tsx - Control center → Camera stage: renders
src/components/control-center.tsx - Control center → Virtual appliances: renders
src/components/control-center.tsx - Control center → Serial panel: renders
src/components/control-center.tsx - Control center → Calibration tools: renders
src/components/control-center.tsx - Control center → Hand diagnostics: renders
src/components/control-center.tsx - Camera stage → Hand tracker: displays tracking
src/components/control-center.tsx - Browser camera → Hand tracker: provides video
src/hooks/use-hand-tracker.ts - Hand tracker → Landmark processing: processes points
src/hooks/use-hand-tracker.ts - Hand tracker → Gesture classifier: classifies hand
src/hooks/use-hand-tracker.ts - Hand tracker → Hand drawing: paints hands
src/hooks/use-hand-tracker.ts - Hand tracker → App state: updates state
src/hooks/use-hand-tracker.ts - Gesture classifier → Random Forest: predicts gesture
src/lib/classifier.ts - Hand drawing → Landmark processing: uses geometry
src/lib/draw-hands.ts - Camera stage → Hand skeleton: renders
src/components/camera-stage.tsx - Camera stage → App state: reads status
src/components/camera-stage.tsx - Virtual appliances → App state: reads state
src/components/virtual-home.tsx - App state → Serial transport: writes commands
src/lib/store.ts - Serial panel → Serial transport: uses transport
src/components/arduino-serial-panel.tsx - Serial transport → Arduino relay: serial control
README.md - Gesture guide → Gesture definitions: shows commands
src/routes/guide.tsx - Gesture guide → Hand poses: shows poses
src/routes/guide.tsx - Gesture guide → Hand skeleton: renders examples
src/routes/guide.tsx - User → Peer connections: optional peer use