How rocketseat/jupiter works
Jupiter is a video-upload hub. Its main workflow is to upload and manage video batches, process stored media, and generate AI transcripts and subtitles, with video metadata and processing status available in the app. The graph also preserves the documented upload, search, tagging, AI-title/description, transcription-review, and webhook capabilities. Source evidence is partial: several UI and route modules are indexed but not excerpted, so links between those parts are omitted where their calls are not shown.
Main entry points: prisma.ts Database client · eden.ts Typed API client · env.ts Runtime configuration · route.ts Transcription job
Components 26
App experience
- Upload interface
src/app/(app)/upload/upload-list/index.tsx - Upload state
src/state/uploads.ts - Video library
src/app/(app)/uploads/page.tsx - Library pagination
src/app/(app)/uploads/uploads-pagination.tsx - Video search
src/components/search.tsx - Video details
src/app/(app)/videos/[id]/page.tsx - Transcript review
src/components/transcription-preview.tsx - Storage summary
src/components/summary/storage.tsx - Byte formatting
src/utils/format-bytes.ts
API and workflows
- Upload endpoints
server/routes/request-video-upload-url.ts - Batch creation
server/routes/create-upload-batch.ts - Tag endpoints
server/routes/create-tag.ts - AI metadata
server/routes/generate-ai-description.ts - API router
server/app.ts - Transcription job
src/app/api/webhooks/create-video-transcription/route.ts - Subtitle generation
src/app/api/webhooks/create-subtitles-from-transcription/route.ts
Media and AI services
- Object storage client
src/lib/cloudflare-r2.ts - OpenAI service
src/lib/openai.ts - Runtime configuration
src/env.ts - Typed API client
src/lib/eden.ts
Persistence and messaging
- Database client
src/lib/prisma.ts - QStash messaging
src/lib/qstash.ts - Kafka messaging
src/lib/kafka.ts
Other components
- User
- PandaVideo
- Application database
Connections 32
- User → Upload interface: uploads media
- Upload state → Typed API client: calls API
src/state/uploads.ts - Upload state → Upload interface: supports uploads
- API router → Upload endpoints: registers route
server/app.ts - API router → Batch creation: registers route
server/app.ts - API router → Tag endpoints: registers route
server/app.ts - Batch creation → Database client: reads and writes
server/routes/create-upload-batch.ts - Batch creation → QStash messaging: publishes job
server/routes/create-upload-batch.ts - Batch creation → Kafka messaging: publishes messages
server/routes/create-upload-batch.ts - Tag endpoints → Database client: writes tag
server/routes/create-tag.ts - AI metadata → Database client: reads video
server/routes/generate-ai-description.ts - AI metadata → OpenAI service: requests description
server/routes/generate-ai-description.ts - Transcription job → Database client: reads and writes
src/app/api/webhooks/create-video-transcription/route.ts - Transcription job → Object storage client: reads audio
src/app/api/webhooks/create-video-transcription/route.ts - Transcription job → QStash messaging: publishes event
src/app/api/webhooks/create-video-transcription/route.ts - Transcription job → Kafka messaging: publishes event
src/app/api/webhooks/create-video-transcription/route.ts - Subtitle generation → Database client: reads and updates
src/app/api/webhooks/create-subtitles-from-transcription/route.ts - Subtitle generation → Object storage client: writes subtitles
src/app/api/webhooks/create-subtitles-from-transcription/route.ts - Subtitle generation → PandaVideo: uploads subtitles
src/app/api/webhooks/create-subtitles-from-transcription/route.ts - Database client → Application database: queries
- Video library → Typed API client: fetches library
src/app/(app)/uploads/page.tsx - Video library → Transcript review: renders preview
src/app/(app)/uploads/page.tsx - Video library → Library pagination: renders pagination
src/app/(app)/uploads/page.tsx - Transcript review → Typed API client: fetches transcript
src/components/transcription-preview.tsx - Video search → Typed API client: searches videos
src/components/search.tsx - Storage summary → Database client: reads storage totals
src/components/summary/storage.tsx - Storage summary → Byte formatting: formats sizes
src/components/summary/storage.tsx - Object storage client → Runtime configuration: uses credentials
src/lib/cloudflare-r2.ts - Database client → Runtime configuration: uses database URL
src/lib/prisma.ts - QStash messaging → Runtime configuration: uses credentials
src/lib/qstash.ts - Kafka messaging → Runtime configuration: uses credentials
src/lib/kafka.ts - Typed API client → Runtime configuration: uses API URL
src/lib/eden.ts