How cybersec-001/knowverse works
Knowverse is a video-based study workspace: learners organize notebooks, add videos, then study timestamp-linked summaries, notes, exam material, quizzes, and transcripts. The tree and README describe both a self-contained sample-data demo and an optional connected stack with authentication, queued processing, AI providers, search, and persistence. The graph preserves both modes and major product capabilities. Backend implementation excerpts are partial, so several documented subsystem relationships cite the README rather than implying unseen call paths.
Main entry points: worker.js Video processing worker · api.ts API client · LiveWorkspace.tsx Study workspace · app.js Express API
Components 28
Learning experience
- Authentication screens
components/Auth.tsx - Notebook dashboard
components/Dashboard.tsx - Notebook and uploads
components/NotebookView.tsx - Study workspace
components/LiveWorkspace.tsx - Sample study workspace
components/Workspace.tsx - Account settings
components/Account.tsx - Workspace navigation
components/Shell.tsx - Summary editor
components/SummaryEditor.tsx - YouTube player
components/YouTubePlayer.tsx
Application services
- API client
lib/api.ts - Express API
backend/src/app.js - OAuth authentication
backend/src/oauth.js - Authentication rate limits
backend/src/rate-limit.js
Video processing
- Ingestion job queue
backend/src/queue.js - Video processing worker
backend/src/worker.js - Caption parsing
backend/src/captions.js - YouTube transcript retrieval
backend/src/youtube-transcript.js - AI provider interface
backend/src/provider.js - AI provider adapters
backend/src/gemini.js - Semantic retrieval
backend/src/retrieval.js
Data and events
- Postgres and pgvector
backend/src/db.js - Video storage adapter
backend/src/storage.js - Processing events
backend/src/events.js - WebSocket service
backend/src/socket.js - WebSocket client
lib/socket.ts
Other components
- Learner
- Redis
- Optional S3 storage
Connections 36
- Learner → Authentication screens: signs in
README.md - Learner → Notebook dashboard: opens workspace
README.md - Learner → Notebook and uploads: adds video
README.md - Learner → Study workspace: studies lesson
README.md - Learner → Sample study workspace: uses demo
README.md - Learner → Account settings: manages account
README.md - Notebook dashboard → API client: requests data
components/Dashboard.tsx - Notebook and uploads → API client: submits upload
components/NotebookView.tsx - Study workspace → API client: requests study data
components/LiveWorkspace.tsx - Authentication screens → API client: authenticates
components/Auth.tsx - Account settings → API client: updates account
components/Account.tsx - Workspace navigation → API client: searches notebooks
components/Shell.tsx - Study workspace → Summary editor: edits summary
README.md - Study workspace → YouTube player: plays video
README.md - Study workspace → WebSocket client: tracks status
README.md - API client → Express API: sends requests
README.md - Express API → OAuth authentication: mounts routes
backend/src/app.js - Express API → Authentication rate limits: limits auth
backend/src/app.js - Express API → Ingestion job queue: queues ingestion
README.md - Ingestion job queue → Redis: stores jobs
README.md - Video processing worker → Ingestion job queue: processes jobs
backend/src/worker.js - Video processing worker → YouTube transcript retrieval: retrieves captions
backend/src/worker.js - Video processing worker → Caption parsing: parses captions
- Video processing worker → Video storage adapter: loads uploads
backend/src/worker.js - Video processing worker → AI provider interface: generates artifacts
backend/src/worker.js - AI provider interface → AI provider adapters: selects provider
backend/src/provider.js - Video processing worker → Semantic retrieval: retrieves chunks
backend/src/worker.js - Semantic retrieval → Postgres and pgvector: queries vectors
backend/src/retrieval.js - Semantic retrieval → AI provider interface: embeds queries
backend/src/retrieval.js - Video processing worker → Postgres and pgvector: persists results
backend/src/worker.js - Video processing worker → Processing events: publishes status
backend/src/worker.js - Processing events → WebSocket service: broadcasts updates
- WebSocket client → WebSocket service: receives updates
README.md - Express API → Video storage adapter: stores uploads
backend/src/app.js - Video storage adapter → Postgres and pgvector: uses upload fallback
backend/src/storage.js - Video storage adapter → Optional S3 storage: stores objects
backend/src/storage.js