Skip to main content

CLI that compiles a JSON5 deck + slide files into a self-contained 2D-canvas HTML presentation.

Project description

scrolly

Compile a JSON5 deck into a single, self-contained, scrollable 2D-canvas HTML presentation.

Liked by humans; understood by agents.

scrolly — scroll-driven 2D-canvas presentations

CI PyPI Python License

Why it's different

  • A 2D canvas you fly around, not a linear reel. Slides sit on an integer grid connected by edges; readers zoom out to a deck map and zoom into any slide to scroll through it.
  • Scroll-driven keyframe animation. Element properties (position, size, opacity, scale, angle) interpolate as the reader scrolls — no timeline, no autoplay.
  • One self-contained HTML file. A default build inlines every asset into a single index.html with zero external loads — open it by double-clicking, host it anywhere, email it.
  • Agent-friendly. The CLI exposes full help, input schemas, deck introspection, and numbered error codes, so agentic coding tools immediately understand how to author and debug scrolly decks.

Installation

pip install scrolly        # or: uv tool install scrolly

Quickstart

scrolly init my-deck                                    # scaffold a starter deck
scrolly build my-deck/deck.deck.json --out out --force  # compile to one HTML file
open out/index.html                                     # double-click anywhere

A deck is a .deck.json manifest plus one .slide.json per slide (both parsed as JSON5):

// deck.deck.json
{
  title: "My Deck",
  slides: [
    { id: "intro", position: [0, 0], source: "slides/intro.slide.json" },
  ],
  edges: [],
}
// slides/intro.slide.json
{
  title: "My Deck",
  elements: [
    { markdown: "# My Deck\n\nWelcome to your new presentation." },
  ],
}

Elements

Slides hold elements of six types — markdown, image, image_sequence, mermaid, html, and iframe — each animatable via scroll-driven keyframes. See the element reference for fields and examples.

Learn more

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrolly-0.3.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrolly-0.3.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file scrolly-0.3.0.tar.gz.

File metadata

  • Download URL: scrolly-0.3.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scrolly-0.3.0.tar.gz
Algorithm Hash digest
SHA256 03002d5c49af225eba0890e0a0e50f48a73f32ed6214300fc6c08e6a743e4549
MD5 35a42e63275e10a1836793c235985a62
BLAKE2b-256 bbdbfce1b36f8ea7a7b327b9eac2e38acbbc39fae5b96261bc004e728c795eee

See more details on using hashes here.

Provenance

The following attestation bundles were made for scrolly-0.3.0.tar.gz:

Publisher: release_tag.yml on bertpl/scrolly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scrolly-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: scrolly-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scrolly-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11b6d50fb4b80894c10c860ea0f40a6a76041c5481ad16f73817adc28af53b1a
MD5 dc0c2b3472897080135bd664901c097d
BLAKE2b-256 8748e9f984692fd25b1ff3dacd5dd6a12a51b66fa3f97e016a175575f622cd9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for scrolly-0.3.0-py3-none-any.whl:

Publisher: release_tag.yml on bertpl/scrolly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page