brainrot.jsRepository45/100 via “trpc-based api orchestration for video generation workflow”
Text to video generator in the brainrot form. Learn about any topic from your favorite personalities 😼.
Unique: Uses tRPC for end-to-end type safety between Next.js frontend and backend, eliminating REST API boilerplate and enabling IDE autocomplete across the frontend-backend boundary. Implements job queuing via pendingVideos database table with polling-based status updates, allowing distributed backend services to process videos asynchronously without blocking user requests.
vs others: Provides better developer experience than REST APIs because tRPC generates type definitions automatically, while maintaining flexibility to call multiple backend services (LLM, TTS, RVC, Remotion) in sequence. More lightweight than GraphQL because it avoids query language overhead while still providing type safety.