
[](https://fastapi.tiangolo.com)
[](https://react.dev)
[](https://vitejs.dev)
[](https://opencv.org)
[](run_tests.bat)
[](docs/STATUS.md)
An open-source desktop studio for screenwriters, directors, and artists.
Convert standard screenplays into visual storyboards, 24 FPS animatics, structural beat sheets, and multi-voice table reads.
[Quick Start](#-quick-start) • [Studio Modules](#-the-8-studio-modules) • [System Architecture](#-system-architecture) • [Sample Scripts](#-the-27-sample-script-library) • [Styles & Genres](#-styles--genre-presets) • [Testing](#-testing--verification) • [Status](docs/STATUS.md)
---
## 📖 Overview
**CineMatrix** is a local-first pre-visualization and storytelling studio. It reads standard screenplays, stage plays, and literary documents across multiple formats (`.fdx`, `.fountain`, `.docx`, `.pdf`, `.epub`, `.cbz`), breaking scenes down into:
- **16:9 Storyboard Frames** with cinematography camera and lighting notes.
- **24 FPS Camera Motion Animatics** with camera moves (dolly, pan, handheld, slow-mo drift).
- **Blake Snyder 15-Beat Screenplay Coverage** with scene-by-scene narrative tension pacing.
- **Synchronized Virtual Table Reads** with multi-character teleprompter highlighting.
- **Graphic Novel & Comic Book Layouts** with geometric speech balloon placement and 300 DPI print export.
- **Procedural Cinematic Scoring & Foley** generating mood audio stems.
- **Production Export Decks** (16:9 PDF Keynote Decks, Shot List CSVs, ZIPs, Fountain, and Master MP4 Reels).
---
## 📐 System Architecture
CineMatrix is built with a FastAPI Python backend and a React/TypeScript frontend.

### How It Works:
1. **Script Ingestion**: Ingests screenplay files and extracts scenes, headings, actions, character dialogue, and emotional tone.
2. **Analysis & Framing**: Evaluates scene intensity, recommends camera focal lengths, shot types, and lighting styles based on the genre.
3. **Visual & Motion Synthesis**: Synthesizes 16:9 visual frames and applies 24 FPS sub-pixel camera motion transforms locally via OpenCV.
4. **Export Engine**: Packages everything into PDF presentation decks, production shot lists, and stitched MP4 video reels.
---
## 🎬 The 8 Studio Modules