How treybell/notesapp works
Scrybl is a collaborative drawing app: users browse or create a canvas, draw or erase on it, and receive live updates; canvas strokes and canvas listings are persisted through Supabase. The graph covers the sampled client and server paths. Home-page feature copy documents live collaboration and erasing, while the sampled drawing component shows those behaviors; implementation details beyond the excerpts are not assumed.
Main entry points: DrawingPad.jsx Drawing pad · App.jsx Route dispatch · index.js WebSocket handler · HomePage.jsx Canvas home
Components 8
React client
- Client bootstrap
client/src/main.jsx - Route dispatch
client/src/App.jsx - Canvas home
client/src/HomePage.jsx - Drawing pad
client/src/DrawingPad.jsx
Application server
- WebSocket handler
server/index.js - Canvas listing API
server/index.js
Canvas storage
- Supabase canvases and strokes
Other components
- Canvas user
Connections 11
- Canvas user → Client bootstrap: opens app
client/src/main.jsx - Client bootstrap → Route dispatch: renders
client/src/main.jsx - Route dispatch → Canvas home: routes home
client/src/App.jsx - Route dispatch → Drawing pad: routes canvas
client/src/App.jsx - Canvas user → Canvas home: browses or creates
client/src/HomePage.jsx - Canvas home → Canvas listing API: fetches canvases
client/src/HomePage.jsx - Canvas listing API → Supabase canvases and strokes: reads canvases
server/index.js - Canvas user → Drawing pad: draws or clears
client/src/DrawingPad.jsx - Drawing pad → WebSocket handler: sends canvas events
client/src/DrawingPad.jsx - WebSocket handler → Supabase canvases and strokes: loads and stores strokes
server/index.js - WebSocket handler → Drawing pad: broadcasts canvas updates
server/index.js