Skip to main content

narratty

narratty

Turn a YAML script into a narrated terminal video. narratty types your commands in a real terminal (VHS), speaks the narration with local text-to-speech (Kokoro or Piper) and keeps voice and picture in sync. It runs sandboxed in Docker or Podman, or natively.

License: MIT

# demo.narratty.yaml
scenes:
  - id: intro
    narration: This is a quick tour of the repository layout.
    actions:
      - run: eza --tree --level=1 .
uv tool install narratty            # or: pipx install narratty
narratty build demo.narratty.yaml   # writes demo.mp4
narratty build demo.narratty.yaml -f cast  # demo.cast + demo.mp3 + demo.html

With Docker or Podman installed, the build runs in the ghcr.io/ditschi/narratty image and needs nothing else on the host. Without one, narratty doctor lists the tools native mode needs.

Documentation: https://ditschi.github.io/narratty/

Features

  • Spec to video: a .narratty.yaml file becomes an MP4, or an asciicast with narration and a player page (--format cast).
  • Local voices: Kokoro (natural sounding, the default) or Piper (many languages), no cloud service. Narration and typing stay in sync, and audio is cached.
  • Sandboxed by default: runs in Docker or Podman with no network unless the spec asks for it and you approve. The demo runs in a throwaway snapshot of your repository. Native mode is available too.
  • Subtitles and drafts: SRT/VTT files, a soft track or burned-in text from the narration; --draft previews timing in seconds, without TTS.
  • Overlays: chapter titles, file names and notes in a rounded box over the video, with reusable styles.
  • Browser views: a web page or local HTML file as Chromium renders it, scrolling while the narration talks about it.
  • Scripting: hidden setup scenes, waits for screen output, key presses and per-scene typing speed.
  • Editor layout: a file explorer with preview above the shell (terminal.layout: editor), focus and reveal actions, and a diff of what the demo changed.
  • Demo toolkit: bat, delta, eza, fd, ripgrep, jq, micro, yazi, file, tmux and zsh as static binaries, for the narratty image and, with one COPY line, for any dev container.
  • Editor support: a JSON Schema for completion and inline errors, validate with line numbers, and shell completion.

Development

uv sync --extra dev
uv run pre-commit install
nox                                 # all quality gates (NOX_CI=1 skips auto-formatting)

See the contributor guide.

License

MIT

Metadata

Release files for narratty 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for narratty 0.3.0
File Size Uploaded
narratty-0.3.0.tar.gz 2.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for narratty 0.3.0
File Interpreter ABI Platform
narratty-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.9 MB

Release files / narratty-0.3.0.tar.gz

Download URL narratty-0.3.0.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
576418cc4855a23b6713a91cbba19dc4b56ba1ff212b39080e43fa5b85618cdd
BLAKE2b-256 checksum
How to use checksums
2b10dc93d8dcf3f76a88a1e96872bd553d6a32987cb55ff110ccca80b0c19b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / narratty-0.3.0-py3-none-any.whl

Download URL narratty-0.3.0-py3-none-any.whl
Size 157.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69d8ed5ad9471be48fe10dcfe5a9d006dc9f5d55c625d62faeac8c6e627c2c9f
BLAKE2b-256 checksum
How to use checksums
693b627457ee234827744c4a52348db3e0e29eca4ac353224d95d8a03be0f466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page