Skip to main content

HTML Deck

Edit HTML slides, reports and pages yourself, without burning tokens.

Fix a typo, change a color or move a block right in the browser, no AI needed. Leave notes for the changes that need the agent.

CI PyPI npm Python 3.11+ License: MIT

🇬🇧 English • 🇻🇳 Tiếng Việt • 🇨🇳 简体中文 • 🇹🇼 繁體中文

Editing a slide title in HTML Deck

Why

AI assistants like Claude Code and Codex are great at making slides and pages in HTML. Changing them is another story: even a one-word fix sends the AI back through a large file, which burns tokens and time, and it may touch things you didn't ask for.

  • Edit it yourself. Click to change text, colors, fonts, images, layout and effects. No agent needed.
  • Point the agent to the exact spot. For bigger changes, pin an AI Feedback note on a block or an area ("make this shorter"). The agent knows what to change and where.
  • Your file stays clean. Saving updates only the parts you edited, so the rest of the file is left as it was. If a full rewrite is ever needed, you are asked first.
  • Present it. Show the deck full screen with its own animations.
AI Feedback panel with a block note and a region note Presenting a deck
AI Feedback: notes for your agent Present with the deck's own animations
Retyping a label inside an SVG architecture diagram
Diagrams: retype a label inside a diagram

Install

Where Command
Claude Code /plugin marketplace add avis309/html-deck then /plugin install htmldeck@htmldeck
Codex codex plugin marketplace add avis309/html-deck then codex plugin add htmldeck@htmldeck
uv uvx htmldeck · uv tool install htmldeck
pipx / pip pipx install htmldeck · pip install htmldeck
npm npx @avis309/htmldeck · npm i -g @avis309/htmldeck

Needs Python 3.11+ (the npm package also needs Node.js 18+). Linux, macOS and Windows.

Use

With Claude Code or Codex:

  1. Say "open my deck in HTML Deck" (or type /htmldeck:open [file] in Claude Code).
  2. Edit what you can. Pin AI Feedback notes for the rest.
  3. Say "apply my HTML Deck notes". The agent makes the changes and marks the notes done. HTML Deck shows the new version as soon as the file changes.

On its own, in the folder with your files:

htmldeck                          # open the editor on the current folder
htmldeck --file <file>.html       # open that document first
htmldeck --root <folder> --port 6789 --no-browser

It runs on your computer (127.0.0.1). Save keeps a backup of each version in .htmldeck_bak/. Save ▾ also gives you a copy to share: one HTML file with its images, styles and fonts built in, or a PDF. The editor starts in your browser's language; change it from the language menu.

Try it in a clone of this repo: htmldeck --root samples --file marketing-report.html.

Works with

Documents Plain HTML pages, reports, and decks of .slide blocks, written by hand or by an agent.
Reveal.js Hand-written decks: stacks, fragments, speaker notes, backgrounds. Markdown slides are read-only.
Tailwind CSS Classes stay as written; your styles go on top.
SVG Retype a <text> / <tspan> label in an inline <svg>.
Animations The page's own scripts (anime.js, GSAP…) run when presenting a file from the workspace. While editing, CSS and Web Animations are paused, and content a script changes is locked. Add data-fx entrance effects from the toolbar.
Safety Undo/redo, draft recovery, backups. Remote scripts (a CDN, for example) are blocked while editing until you trust the file; presenting runs on a separate origin.
Details for developers

Workspace. The current folder, or --root. Nothing outside it is served or written. A --file outside it makes its folder the workspace (unless --root is given).

Saving. The source is patched where you edited; when a document can't be patched, the editor asks before rewriting it. Backups are kept for files from the workspace (not for a file opened from your computer).

Files opened from your computer (or dropped in) rather than from the workspace run none of their own scripts, even when presenting; HTML export saves the edited file without embedding its images and styles; AI Feedback is off.

Export. HTML export embeds linked images, styles, scripts and fonts; resources it can't fetch stay as links. From a terminal: python -m htmldeck.export --file <file>.html --remote (--remote also embeds web resources). PDF uses the browser's print dialog.

AI Feedback. Notes are stored in .htmldeck_notes/<name>.json beside the document. Each note records the element's selector, a text snippet and its source line; a region note also records the area and the elements in it.

htmldeck-notes --file <file>.html             # list open notes
htmldeck-notes --file <file>.html --prompt    # as a request ready to paste to an agent
htmldeck-notes --file <file>.html --done <id> # mark one done

Develop.

python3 -m venv .venv && .venv/bin/pip install -e '.[dev]'
npm install
npm run check        # eslint + pytest + browser specs

Server: htmldeck/server.py. Editor: htmldeck/web/js/ (native ES modules, no bundler; app.mjs boots it; npm run lint also checks that imports only go down the layers and never form a cycle). Browser specs: tests/spec/. Release: python tools/bump_version.py X.Y.Z, commit, tag vX.Y.Z, push the tag.

License

MIT © Avis

Metadata

Release files for htmldeck 0.1.8

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

Source distribution (sdist)

Source distribution for htmldeck 0.1.8
File Size Uploaded
htmldeck-0.1.8.tar.gz 208.6 kB Details

Built distribution (wheel)

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

Total release size: 431.5 kB

Release files / htmldeck-0.1.8.tar.gz

Download URL htmldeck-0.1.8.tar.gz
Size 208.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0fff56c841310c7a951f41ccaebf05fc98d56c66c65c21b077ad3cd5a087d880
BLAKE2b-256 checksum
How to use checksums
7412254819e1392c6b796f818fdf256e015afa067e266326ae72c7093b267e20
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 8, 2026.

Transparency log

Release files / htmldeck-0.1.8-py3-none-any.whl

Download URL htmldeck-0.1.8-py3-none-any.whl
Size 222.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28ba5d70e2dc45fe7cb1c2126b579f4297e4bc92847abad2acd3e3757b1f9475
BLAKE2b-256 checksum
How to use checksums
cb7f4ad227604b4f39a59c252053f47c690d0c68846cf76650f630219b5c540e
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 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.12

2 release files

0.1.9

2 release files

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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