Self-Contained Video Production OS
Status: β Successfully deployed to GitHub - Ready for production use
Repository: https://github.com/r-hisamoto/DirectorX.git
DirectorX v1.0 is a comprehensive video production operating system that handles the complete workflow from assets to final video distribution within a single application. Built with Japanese language support and advanced video processing capabilities.
Assets β Scripts β SRT β TTS β Video β Thumbnails β Distribution Checks
- 8-Step Recipe Engine: Dependency-managed production workflow
- Asset Ingestion: Multi-source import (URL, files, X/Twitter, 5ch, YouTube)
- Script Generation: AI-assisted scriptwriting with templates
- SRT Processing: Japanese formatting with kinsoku rules (η¦εε¦η)
- TTS Integration: Web Speech API with Japanese voice support
- Video Rendering: Canvas API + MediaRecorder browser-native generation
- Thumbnail Creation: Automated thumbnail generation
- Distribution: Multi-platform export preparation
- Kinsoku Rules (η¦εε¦η): Proper Japanese text line breaking
- SRT Formatting: 20-character full-width text wrapping
- Native TTS: Japanese speech synthesis integration
- UI Localization: Complete Japanese interface support
- Frontend: React 18 + TypeScript + Vite + Zustand
- Backend: Node.js + Express + TypeScript
- Monorepo: pnpm workspaces for organized development
- State Management: Zustand with TypeScript integration
- Command Palette: Quick access to all functions
- Three-Column Layout: Optimized workflow interface
- Node.js 18+
- pnpm (recommended) or npm
- Modern browser with Canvas and MediaRecorder support
# Clone the repository
git clone https://github.com/r-hisamoto/DirectorX.git
cd DirectorX
# Install dependencies
pnpm install
# Start development servers
pnpm dev # Both frontend and backend
pnpm dev:web # Frontend only (port 5173)
pnpm dev:api # Backend only (port 3001)- Frontend: http://localhost:5173
- Backend API: http://localhost:3001
- API Documentation: http://localhost:3001/api-docs
DirectorX/
βββ web/ # React frontend
β βββ src/
β β βββ components/ # React components
β β βββ lib/ # Core services
β β β βββ recipeEngine.ts # 8-step pipeline
β β β βββ renderService.ts # Video rendering
β β β βββ ttsService.ts # TTS integration
β β β βββ srtProcessor.ts # Japanese SRT handling
β β βββ store/ # Zustand state management
βββ api/ # Node.js backend
β βββ src/
β β βββ controllers/ # API endpoints
β β βββ services/ # Business logic
β β βββ models/ # Data models
βββ shared/ # Common TypeScript types
βββ docs/ # Documentation
export class RecipeEngine {
async executeRecipe(recipe: VideoRecipe, options: RenderOptions): Promise<void>
private sortStepsByDependencies(steps: RecipeStep[]): RecipeStep[]
}export class TTSService {
async generateFromScript(scriptContent: string, options: TTSOptions = {}): Promise<TTSResult>
async generateFromSRT(srtContent: string, options: TTSOptions = {}): Promise<TTSResult>
}export class RenderService {
async renderJob(jobId: string): Promise<void>
private async generateFrame(job: RenderJob, timestamp: number): Promise<VideoFrame>
}pnpm test # All tests
pnpm test:web # Frontend tests
pnpm test:api # Backend tests
pnpm test:e2e # End-to-end testspnpm test:coverage # Generate coverage reportpnpm build # Build all packages
pnpm build:web # Build frontend
pnpm build:api # Build backendDirectorX v1.0 includes complete Google Cloud Platform deployment configuration:
# Deploy to Firebase Hosting + Cloud Run
pnpm deploy
# Individual deployments
pnpm deploy:web # Frontend to Firebase Hosting
pnpm deploy:api # Backend to Cloud RunInfrastructure Components:
- Frontend: Firebase Hosting with global CDN
- API: Cloud Run with auto-scaling
- Database: Firestore with security rules
- Storage: Cloud Storage with IAM policies
- Monitoring: Cloud Logging and Error Reporting
See DEPLOYMENT.md for complete deployment instructions.
pnpm dev # Start both servers in development mode
pnpm dev:web # Start frontend development server
pnpm dev:api # Start backend development serverpnpm build # Build all packages for production
pnpm build:web # Build frontend bundle
pnpm build:api # Build backend for deploymentpnpm test # Run all tests
pnpm test:watch # Run tests in watch mode
pnpm lint # Run ESLint on all packages
pnpm type-check # Run TypeScript type checkingpnpm deploy # Deploy to production (GCP)
pnpm deploy:web # Deploy frontend to Firebase Hosting
pnpm deploy:api # Deploy backend to Cloud RunVITE_API_URL=http://localhost:3001
VITE_APP_NAME=DirectorX
VITE_ENABLE_DEBUG=truePORT=3001
NODE_ENV=development
CORS_ORIGIN=http://localhost:5173Production environment variables are managed through:
- Firebase configuration for hosting
- Cloud Run environment variables for the API
- Firestore security rules for database access
- Cloud Storage IAM policies for file storage
- Kinsoku Rules: Automatic line breaking for proper Japanese typography
- Character Width: Full-width character support for SRT formatting
- Voice Selection: Native Japanese TTS voice detection and selection
- Canvas Rendering: High-performance browser-based video generation
- MediaRecorder: Efficient video encoding and export
- Frame Composition: Layer-based video composition system
- Quick access to all application functions
- Keyboard shortcuts for power users
- Context-aware command suggestions
- Deployment Guide - Complete deployment instructions
- API Documentation - REST API reference
- Component Guide - Frontend component documentation
- Architecture - System architecture overview
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a pull request
- Follow TypeScript best practices
- Write tests for new features
- Use conventional commit messages
- Ensure Japanese language support for new features
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with modern web technologies and best practices
- Japanese language processing with kinsoku rule implementation
- Browser-native video processing for maximum compatibility
- Production-ready GCP deployment configuration
DirectorX v1.0 - Complete video production OS ready for production use.
Repository: https://github.com/r-hisamoto/DirectorX.git