Architecture · rtfs

Screenplay retrieval, AST parsing, and export pipeline

rtfs Screenplay Pipeline Data flow from CLI, Python SDK, and FastMCP entrypoints through ScriptAggregator, multi-source providers, cache-backed raw payloads, format parsers, the canonical ScriptDocument AST, and exporters. INGEST PARSE EMIT QUERY HTTP CACHE DECODE HIT/FILE AST EMIT INPUT Entrypoints CLI · SDK · FastMCP CORE ScriptAggregator Fan-out search & rank SOURCES Providers Slug · TVW · IMSDb · Subs STORE RawScript + Cache Disk · Redis · Mem · Null PARSER Parsers PDF x0 · FDX · HTML · Text MODEL ScriptDocument AST Pydantic v2 IR OUTPUT Exporters FTN · FDX · JSON · Stats LEGEND Core / canonical IR External HTTP fetch Cache hit or local parse Canonical emission