Skip to main content

versereel

Turn a poem or quote into a calm, text-only vertical video (Shorts, Reels, TikTok) with original ambient music that is synthesised from scratch: no stock tracks, no samples, nothing to license.

  • Works with Urdu Nastaliq and other right-to-left scripts (Arabic, Persian, Hebrew), as well as Latin text.
  • Text fades in stanza by stanza over a soft paper-and-watercolour background that drifts slowly.
  • Ships as a CLI, a Python API, an MCP server and a Claude Code skill.
  • Pure Python plus ffmpeg. No GPU, no API keys, no network (except the optional Wikisource fetch).

versereel demo

Built for a calm-poetry Shorts channel, where the same code produced over a hundred videos before it was cleaned up and released.

Install

pip install "versereel[mcp]"       # drop [mcp] if you do not need the MCP server

You also need ffmpeg on your PATH. Fonts are looked up on your system and are not bundled; for Urdu install Noto Nastaliq Urdu (Debian/Ubuntu: sudo apt install fonts-noto-extra).

Use it

# 1. From a JSON spec
versereel render examples/dickinson-hope.json -o hope.mp4

# 2. From plain text (blank line = new stanza)
printf 'Thou hast made me endless,\nsuch is thy pleasure.\n' | versereel render --title "Gitanjali 1" \
  --author "Rabindranath Tagore" --credit "Public domain" -o gitanjali.mp4

# 3. Urdu, right to left
versereel render examples/iqbal-akhtar-e-subh.json -o iqbal.mp4

# 4. Just the music
versereel bed --seconds 45 --seed my-seed -o bed.wav

# 5. Fetch public-domain text from Wikisource
versereel fetch "Poems: Second Series (Dickinson)/Hope" --author "Emily Dickinson" > hope.json
versereel render hope.json -o hope.mp4

Check whether a poem fits in a Short (60 s limit) without rendering: add --dry-run.

Spec format

{
  "title": "Hope",
  "author": "Emily Dickinson",
  "lang": "en",
  "stanzas": [["line one", "line two"], ["next stanza"]],
  "credit": ["Emily Dickinson (1830-1886), public domain", "Original music: versereel"]
}

lang of ur, ar, fa, he (and similar) turns on right-to-left layout.

Python

from versereel import Poem, render, write_bed

render(Poem("Hope", [["Hope is the thing with feathers", "That perches in the soul,"]], author="Emily Dickinson"), "hope.mp4")
write_bed("bed.wav", seconds=40, seed="rainy-sunday")

MCP server

{ "mcpServers": { "versereel": { "command": "versereel-mcp" } } }

Tools: check_environment, plan_poem, render_poem, make_music_bed, fetch_poem.

Claude Code skill

Copy skill/versereel/ to ~/.claude/skills/versereel/. It walks the assistant through the rights check, fitting a Short, rendering and reviewing.

About the music

make_bed builds slow pad chords (Cmaj7, Am7, Fmaj7, G6 voicings, gently detuned), sparse pentatonic bell notes and a long FFT reverb, then low-passes it. The same seed always gives the same piece and different seeds are transposed and re-timed, so a channel's videos do not all sound identical. It is deliberately calm background music, not a composition tool.

Rights and responsibility

versereel makes files; you are responsible for what you publish.

  • Use texts that are public domain where you publish (often: author died 70+ years ago) or that you have permission to use. Do not use modern song lyrics.
  • Wikisource transcriptions are CC BY-SA; fetch returns a credit line you should keep.
  • The music is original and synthesised, but platforms differ on how they treat synthesised audio, so read the rules of wherever you post.
  • Fonts are not bundled. Noto fonts are under the SIL Open Font License.

Develop

git clone https://github.com/ali-saad-khan/versereel && cd versereel
uv venv && uv pip install -e ".[dev,mcp]"
pytest

A render takes about 30 seconds for a 30 second video (most of it is ffmpeg compositing).

Author

Built by Saad Ali Khan, a full stack and AI engineer. Portfolio: saadconsulting.tech. Available for freelance work on AI tooling, MCP servers and automation.

Licence

MIT

Metadata

Release files for versereel 0.1.1

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

Source distribution (sdist)

Source distribution for versereel 0.1.1
File Size Uploaded Provenance Actions
versereel-0.1.1.tar.gz 2.0 MB Without provenance Details for versereel-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / versereel-0.1.1.tar.gz

Download URL versereel-0.1.1.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
e373f8a72add202512e926934535930d6d8ae354a0801319393cc9b4405f2021
BLAKE2b-256 checksum
How to use checksums
ec7ff0625deba175b9648a60b38b1953b792242e5d386726055772f8d3a8d94b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / versereel-0.1.1-py3-none-any.whl

Download URL versereel-0.1.1-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b31ff9e5118746ffe477366685e97ff0f594ad0724d052225c0bef12f21f9013
BLAKE2b-256 checksum
How to use checksums
5dda7380aca9566ac063f3d106a15d778307b4d12cabe1fe47ab37532719bf7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for versereel 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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