How medevs/primalbound works
Purpose and deploy boundary
Primal Bound is a brand monorepo for a documentary YouTube channel and its marketing/editorial site. The deployable product is exclusively the static Next.js site under website/; OpenMontage/ is a locally operated video-production system. Primary website entries are website/app/page.tsx, website/app/layout.tsx, and website/app/blog/page.tsx.
Website application and content
The site uses Next.js 16, Tailwind 4, TypeScript, and pnpm. App-router routes provide the landing page, mission page, blog index, and MDX article content: website/app/page.tsx, website/app/mission/page.tsx, website/app/blog/why-tribes-dont-get-lonely/page.mdx. Global presentation and site-level navigation are centralized in website/app/globals.css and website/components/SiteHeader.tsx.
Scroll-world experience
The landing page’s defining interactive subsystem is a scroll-synchronized “world” composed from video assets. website/components/ScrollWorld.tsx renders the experience, driven by scene/media definitions in website/lib/world-config.ts and scroll behavior in website/lib/scrub-engine.js. Runtime media is pre-encoded and served as static files from website/public/world/, with desktop/mobile variants such as website/public/world/city.mp4 and website/public/world/city-m.mp4.
Asset generation pipeline
Scroll-world media is generated outside the web build. website/generation/world.py calls fal.ai using FAL_KEY loaded from OpenMontage/.env; intermediate material is intended for local-only website/generation/work/, while approved encodes are published into website/public/world/. Supporting regeneration/QA wiring resides in website/generation/bridge_bound.py and website/generation/qa.mjs. This is a clear boundary: generation needs the OpenMontage Python environment; the deployed site only consumes resulting static assets.
Video-production platform
OpenMontage/ is a vendored, locally modified Python production pipeline for planning, generating, composing, reviewing, and exporting videos. Its main CLI/server entry points are OpenMontage/setup.py, OpenMontage/backlot/__main__.py, and OpenMontage/render_demo.py. Pipeline variants are declarative YAML definitions, notably the locally relevant OpenMontage/pipeline_defs/vox-explainer.yaml, alongside cinematic, animation, avatar, and documentary variants.
Pipeline contracts and orchestration
OpenMontage treats production stages as artifact-driven workflows. JSON schemas define handoffs for briefs, scripts, scene plans, manifests, editing decisions, reviews, render reports, and publishing: OpenMontage/schemas/artifacts/brief.schema.json, OpenMontage/schemas/artifacts/scene_plan.schema.json, OpenMontage/schemas/artifacts/render_report.schema.json. Shared orchestration concerns—configuration, checkpoints, eventing, provider selection, and scoring—are concentrated in OpenMontage/lib/config_model.py, OpenMontage/lib/checkpoint.py, and OpenMontage/lib/pipeline_loader.py.
Media runtimes, providers, and review
The production runtime combines Python tools, FFmpeg-oriented media processing, optional GPU/local generation dependencies, and a TypeScript Remotion compositor. Remotion compositions start at OpenMontage/remotion-composer/src/Root.tsx; video assembly and provider routing live in OpenMontage/tools/video/video_compose.py and OpenMontage/tools/video/video_selector.py. External integrations include fal.ai for website imagery and multiple configurable AI/media services represented by adapters such as OpenMontage/tools/_kling/client.py, OpenMontage/tools/_comfyui/client.py, and OpenMontage/tools/audio/elevenlabs_tts.py. The Backlot server/UI provides production-state visibility and gate-oriented review through OpenMontage/backlot/server.py, OpenMontage/backlot/state.py, and OpenMontage/backlot/ui/board.js.
Main entry points: pipeline_loader.py Pipeline orchestration · ScrollWorld.tsx Scroll world · world.py World generator · page.tsx App routes
Components 18
Static website
Deployable Next.js application.
- App routes · Landing, mission, blog, and MDX content.
website/app/page.tsx - Site shell · Global layout, styles, and navigation.
website/app/layout.tsx - Site header
website/components/SiteHeader.tsx - Scroll world · Scroll-synchronized video world on the landing page.
website/components/ScrollWorld.tsx - World definitions
website/lib/world-config.ts - Scroll scrub engine
website/lib/scrub-engine.js - Published world media · Desktop and mobile pre-encoded video assets.
website/public/world/city.mp4
World asset generation
Local pipeline publishing static media.
- World generator · Generates world media through fal.ai.
website/generation/world.py - Generation bridge and QA
website/generation/bridge_bound.py - OpenMontage environment · Supplies FAL_KEY and Python dependencies.
OpenMontage/.env.example
OpenMontage production
Locally operated video-production platform.
- Production entry points · Setup, Backlot CLI, and demo render entry points.
OpenMontage/setup.py - Pipeline definitions · Declarative production pipeline variants.
OpenMontage/pipeline_defs/vox-explainer.yaml - Artifact contracts · Stage handoffs for planning, rendering, review, and publishing.
OpenMontage/schemas/artifacts/brief.schema.json - Pipeline orchestration · Configuration, checkpoints, events, providers, and scoring.
OpenMontage/lib/pipeline_loader.py - Media assembly · FFmpeg-oriented composition and provider selection.
OpenMontage/tools/video/video_compose.py - Remotion compositor
OpenMontage/remotion-composer/src/Root.tsx - AI and media providers · Configurable generation and audio/media services.
OpenMontage/tools/_kling/client.py - Backlot review · Production-state visibility and gate-oriented review.
OpenMontage/backlot/server.py
Connections 18
- App routes → Site shell: renders within
- Site shell → Site header: includes
- App routes → Scroll world: landing page renders
- Scroll world → World definitions: uses scenes
- Scroll world → Scroll scrub engine: uses scroll timing
- Scroll world → Published world media: plays
- World generator → OpenMontage environment: loads FAL_KEY
- World generator → Generation bridge and QA: regenerated and checked by
- Generation bridge and QA → Published world media: publishes approved encodes
- Production entry points → Pipeline definitions: selects
- Pipeline definitions → Pipeline orchestration: drives
- Artifact contracts → Pipeline orchestration: governs handoffs
- Pipeline orchestration → AI and media providers: routes to
- Pipeline orchestration → Media assembly: orchestrates
- Media assembly → Remotion compositor: composites with
- Pipeline orchestration → Backlot review: reports state to
- Backlot review → Artifact contracts: reviews artifacts
- OpenMontage environment → World generator: supports local runtime