Extract professional shooting scripts from videos using Google Gemini AI
Extract professional shooting scripts from YouTube videos using Gemini 3 Pro Multimodal capabilities.
# Clone the repository
git clone https://github.com/yourusername/storyreverse.git
cd storyreverse
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local and add your GEMINI_API_KEY
# Start development server (http://localhost:3000)
npm run dev
# Run tests
npm run test
# Run tests with coverage
npm run test:coverage
# Build for production
npm run build
# Code quality
npm run lint # Lint code
npm run lint:fix # Fix linting issues
npm run format # Format code with Prettier
npm run format:check # Check formatting
npm run type-check # TypeScript type checking
# Testing
npm run test # Run tests in watch mode
npm run test:ui # Run tests with UI
npm run test:coverage # Run tests with coverage report
storyreverse/
βββ components/ # React components
β βββ InputPanel.tsx # Input interface with tabs
β βββ ResultView.tsx # Script display & download
β βββ Navbar.tsx # App header
βββ services/ # API integration
β βββ gemini.ts # Gemini AI service
βββ tests/ # Test files
βββ App.tsx # Main application
βββ types.ts # TypeScript definitions
βββ vitest.config.ts # Test configuration
StoryReverse uses a multi-step pipeline for video analysis:
See CLAUDE.md for detailed architecture documentation.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
npm run lint && npm run type-check && npm testGEMINI_API_KEY: Your Google Gemini API keyConfigure via the Settings modal in the UI:
gemini-3-pro-preview)Run coverage report:
npm run test:coverage