Shorts Engine — The Open-Source AI Planning Engine for Short-Form Video
The biggest bottleneck for short-form creators isn't running out of ideas. It's planning fatigue. Different specs for every platform. AI prompts written from scratch. Camera motion choices. B-roll hunting. Cost optimization across multiple AI backends. All of that before a single frame is generated.
Shorts Engine automates the entire planning pipeline. Drop in one JSON request file, and it outputs a complete production plan — validated, normalized, platform-optimized, with AI prompts ready to fire.
"It doesn't make the video. It plans it perfectly — so you can."
14-Stage Automated Pipeline
Cost Routing — 5 Deterministic Rules
| Rule | Condition | Action |
|---|---|---|
| Rule A | Candidate score below 0.6 | Block premium engine use |
| Rule B | Cache hit detected | Return immediately (highest priority) |
| Rule C | Batch ≥5 + GPU available | Route to GPU processing |
| Rule D | Intermediate pipeline stage | Premium engine blocked |
| Rule E | Retry cost > expected gain | Fall back immediately |
All routing decisions are rule-based and deterministic. No AI making arbitrary choices. The cost-quality tradeoff is controlled explicitly through named rules — transparent, auditable, predictable.
Quick Start
git clone https://github.com/sinmb79/Shorts-engine.git
cd Shorts-engine && npm install
# Run the pipeline (human-readable output)
npm run engine -- run tests/fixtures/valid-low-cost-request.json
# JSON output mode
npm run engine -- run tests/fixtures/valid-low-cost-request.json --json
# Run all 70+ tests
npm test
All 14 planning pipeline stages fully implemented. JSON request → complete production plan output. 70+ tests passing. Novel-to-Shorts conversion pipeline included.
Actual video generation (Sora/Runway/Kling API integration), TTS synthesis, and auto-platform upload are planned for the next phase. Current release is the planning engine only.
🎬 22B Labs · Shorts Engine
The goal is to eliminate planning bottlenecks in short-form creation.
From novel to Shorts — the plan writes itself.
⭐ A star on GitHub means everything.
👉 github.com/sinmb79/Shorts-engine
✍️ 22B Labs · The 4th Path, GitHub: sinmb79