LLM API Explainer Creation and Technical Implementation
The LLM API explainer is created through a detailed process involving shared 3D worlds, frame-by-frame web page captures, and modular codebases for full and promotional versions.
Creation and Structure of the LLM API Explainer
The creation and structure of the LLM API explainer involve a detailed process of tracing an API request from the user's code through the system to the GPU and back. The explainer is divided into two parts: a full version and a shorter promotional version. Both versions use a shared page capture and 3D world from the src/shared/ directory. The full explainer is rendered in 16:9 format and takes 4 to 5 minutes to watch, while the promotional version includes both 2D and 3D elements and is available in 16:9 and 9:16 formats. The videos are generated by capturing web pages frame by frame using headless Chromium. For the 3D version, WebGL is rendered in software using SwiftShader to ensure consistent frame output across all machines. This approach guarantees identical visuals regardless of the viewer's hardware.
Customization and Iterative Development Process
In the customization and iterative development process, the use of a coding agent—such as Claude Code, Codex, or OpenCode—allows for precise adjustments to the project's brief. The user begins by editing either brief-full.md for the full video or brief-promo.md for promotional content. Once the brief is updated, the agent modifies the src/ directory and generates a draft in workspace/promo/preview/v1/ or workspace/full/preview/v1/, with subsequent versions labeled v2, v3, and so on. Feedback is provided through timestamped notes, such as "0:13: the router shot feels rushed", which the agent then uses to refine the output. This iterative approach ensures that changes are systematically applied and visualized, allowing for continuous improvement without overwriting previous work.
Technical Implementation and Rendering Details
The technical implementation of the visual explainer relies on a modular codebase that separates full explainer content from promotional material. The full explainer, generated via ./render-full.sh, is defined in src/full/full2d.html and represents the entire journey as a pure function of time (seek(t)). This includes a 2D map of the route with a zooming camera, transition and title cards, and scenes covering topics like prompt caching, KV cache, and speculative decoding. The promo version, built with ./render-promo.sh, is located in src/promo/promo.html and includes content such as prompt examples, token counts, and example timings, along with a stopwatch and timeline. Both versions share code from src/shared/world3d.js, which uses three.js to render a 3D journey with stages and a chase camera (camAt).
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.