← /projectsAITypeScript · React · three.js

A browser app that turns a question or an uploaded file into a narrated, animated explanation, filling in from Wikipedia when there is little to go on. No API key, and files never leave your device.

Built with TypeScript, React, three.js, Canvas 2D, WebCodecs, Web Audio, Kokoro TTS, ONNX Runtime Web and Ollama. The code is on GitHub.

Project Reelix is for understanding a topic, not for making content. There is one box: type “black holes” or “why is the sky blue?”, paste notes, or upload a PDF, Word document, PowerPoint deck, spreadsheet or photo. A narrated explanation plays right on the page, as long as the material needs, and ends with one short “in short” line instead of a long recap.

It is built to infer from limited information. Pictures and scans are read with OCR in the browser. A short topic, or the subject found in a thin upload, is looked up on Wikipedia, and the source is credited on screen. A rule based planner then finds the structure that explains best: a definition, the kinds of something, the steps of a process, a timeline, the key numbers and charts from tables. It ranks sentences by how well they answer the question, so a “why” question gets its reason, and it drops side remarks instead of cutting sentences mid thought. Run locally with Ollama, a local model can write the script instead.

From a question to a storyboard
From a question to a storyboardA short question is filled in from Wikipedia, and a rule based planner in the browser picks the sentences that explain best: the definition, the key points, the numbers and charts, and one short closing line. Each becomes a scene.

The voice is Kokoro 82M, an open text to speech model, running in a pool of Web Workers through WebAssembly. Narration is split into sentences, spread across the workers and cached, and the visuals can be watched while the voice records. Word timings are estimated from syllables and snapped to the pauses found in the audio, which keeps the captions in step with the voice.

Motion on the spoken word
Motion on the spoken wordWord times come from syllables and snap to the pauses in the recorded voice. Each item enters on the word that names it, with its sound, so the picture keeps pace with the narration.

Each video is one continuous 3D world built with three.js. A director turns the plan into set pieces along a gentle path: extruded icons, short labels, framed photos, 3D bars and ribbons, pictograms and particles, each entering on the word that names it, while captions land word by word. The camera flies from piece to piece and dollies through each one, and depth of field, bloom, grain and filmic tone mapping finish every frame. Frames are a pure function of time, so a saved video matches the preview. Topic videos also get freely licensed photos from Wikipedia, Wikimedia Commons and Openverse, credited on screen and raised into relief by a depth model in the browser, and common topics get custom 3D models: a black hole, a virus, light scattering in air, a DNA helix, or a compound's real structure from PubChem. Phones get the 2D canvas renderer, and a watchdog steps a slow preview down. A music bed is synthesized with Web Audio, ducks under the voice, and gets whooshes and pops on the cuts.

Free photos, credited
Free photos, creditedCandidates come from the article, Wikimedia Commons and Openverse. Only public domain, CC0, CC BY and CC BY-SA pass, drawings are skipped, and the best match goes to the scene with its credit. Moving photos adds depth from a model in the browser. Illustrative candidates.

A download button renders every frame offline and encodes 1080p H.264 with AAC audio through WebCodecs, about three times faster than real time in 3D on a laptop. Everything runs client side and the site is static, so the demo costs nothing to host and nothing to use.

Any frame, any order
Any frame, any orderA frame is a pure function of its time, so scrubbing the preview in any order and exporting every frame in sequence give the same pictures. The MP4 is encoded with WebCodecs at about a third of real time. Illustrative hashes.

What it does

  • One box: ask a question, paste notes, or upload PDF, Word, PowerPoint, Excel, CSV or images
  • Reads text in images with OCR and fills in short topics from Wikipedia, with sources credited
  • Finds definitions, steps, kinds, timelines, key numbers and charts on its own
  • One continuous 3D world with a flying camera, lit icons, charts and photos, and a 2D fallback
  • Credited online photos with depth parallax, and custom 3D models for space, biology, earth science, optics and chemistry
  • Neural voiceover generated in the browser, with word by word captions
  • Length follows the material and ends with one short closing line
  • 1080p MP4 download with WebCodecs, and files never leave your device

Keep reading

A few sentences is plenty. If it's a fit, our first call starts with the work instead of an intro.

Send me a noteClass of 2029