How sagarshivaji/learning-hub works
Watch Later is a browser-based bookmarking and learning library. Users add links, organize them into colored groups and nested subgroups, move links between them, and mark them done; changes are intended to sync across devices. The sampled server implements a separate Socket.IO path backed by local JSON, while the README documents Supabase cloud persistence and realtime sync. The frontend is a single unsampled HTML file, so its internal component boundaries and exact calls to either sync path cannot be verified; capability nodes therefore share that file path.
Main entry points: index.html Learning library UI · server.js Express and Socket.IO server · migrations Items schema and migrations · data.json Local item file
Components 14
Library organization
- Learning library UI
public/index.html - Link management
public/index.html - Groups and colors
public/index.html - Subgroup nesting
public/index.html - Link moves
public/index.html - Quick move modal
public/index.html - Completion tracking
public/index.html
Persistence and sync
- Local item file
data.json - Supabase connection config
public/supabase-config.js - Supabase PostgreSQL
- Items schema and migrations
supabase/migrations
Application runtime
- Express and Socket.IO server
server.js
Other components
- Library user
- Connected browsers and devices
Connections 15
- Library user → Learning library UI: uses
README.md - Learning library UI → Link management: manages
README.md - Learning library UI → Groups and colors: organizes
README.md - Learning library UI → Subgroup nesting: nests groups
README.md - Learning library UI → Link moves: moves links
README.md - Learning library UI → Quick move modal: opens
README.md - Learning library UI → Completion tracking: checks off
README.md - Learning library UI → Express and Socket.IO server: uses realtime
- Express and Socket.IO server → Local item file: loads and saves
server.js - Express and Socket.IO server → Connected browsers and devices: broadcasts updates
server.js - Learning library UI → Supabase connection config: configures cloud
- Learning library UI → Supabase PostgreSQL: syncs items
README.md - Items schema and migrations → Supabase PostgreSQL: defines schema
README.md - Supabase PostgreSQL → Connected browsers and devices: syncs changes
README.md - Express and Socket.IO server → Learning library UI: serves app
server.js