How harshvardhan9084/shareonweb works
Toolhive combines on-device utility tools with temporary, code-joined sessions for sharing and collaboration. The main journey is browsing or opening a tool, then creating or joining a session whose live room connects participants and exposes session features. Session records are handled through API routes and a configurable store. The excerpts establish the app-shell routing, room-client socket behavior, and storage options; most individual tool panels and relay internals were not sampled, so their detailed links are omitted.
Main entry points: app-shell.tsx App shell · session-view.tsx Session view · session-store.ts Session store · instant Instant tools
Components 14
Tool discovery
- App shell
src/components/platform/app-shell.tsx - Tool catalog
src/lib/registry.ts - Instant tools
src/components/instant - Tool landing
src/components/platform/app-landing-view.tsx - Utility tool set
src/components/instant/instant-kit.tsx
Live sessions
- Session view
src/components/platform/session-view.tsx - Room client
src/lib/room-client.ts
Session capabilities
- Collaborative panels
src/components/session - Audio and video calls
src/components/session/call-panel.tsx
Session services
- Session API
src/app/api/sessions - Session store
src/lib/session-store.ts - Database
src/lib/db.ts - Relay service
mini-services/relay-service/index.ts
Other components
- Tool user
Connections 14
- Tool user → App shell: opens app
- App shell → Tool catalog: selects tools
src/components/platform/app-shell.tsx - App shell → Instant tools: renders instant
src/components/platform/app-shell.tsx - App shell → Tool landing: renders landing
src/components/platform/app-shell.tsx - App shell → Session view: opens session
src/components/platform/app-shell.tsx - Session view → Room client: uses room client
src/components/platform/session-view.tsx - Session view → Collaborative panels: renders panels
src/components/platform/session-view.tsx - Session view → Audio and video calls: offers calling
src/components/platform/session-view.tsx - Room client → Relay service: socket connection
src/lib/room-client.ts - Session view → Session API: closes session
src/components/platform/session-view.tsx - Session API → Session store: handles records
src/app/api/sessions/[code]/route.ts - Session store → Database: reads and writes
src/lib/session-store.ts - Session store → Relay service: proxies control API
src/lib/session-store.ts - Instant tools → Utility tool set: provides tools