Viral Carousels with Claude x Paper¶
| Category | Content Creation |
| Status | ๐ก Partially completed |
| Repo | nextwork-viral-carousels-with-claude-x-paper |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Viral Carousels with Claude x Paper guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ Content Creation
Status: ๐ก Partially completed
Overview¶
A carousel is a design system plus a sequence. Keeping both in one JSON file means I can rewrite the copy or restyle every slide without touching the drawing code, and the fit checks stop text from spilling off a slide.
Summary¶
I built my own carousel generator in Python with PIL. One deck.json holds the whole design system (size, colours, fonts, margins, handle) and the slide content. The script renders a 7-slide 1080x1350 carousel: a hook slide, five numbered tip slides and a call-to-action slide, with progress dots and a swipe cue. It exports one PNG per slide, a single PDF ready to upload, and a contact sheet for checking the sequence at a glance. Text auto-shrinks and wraps to fit, and anything that still can't fit raises an error instead of overflowing. 3 tests pass. Partial: Paper and Claude Code weren't used (I wrote the code and the slide text), and nothing was posted.
The checks behind this are in docs/verification.txt.
Skills & tools¶
Python, PIL, Typography and layout, Design systems, pytest
What I built¶
deck.json: theme (1080x1350, colours, fonts, margin, handle) and seven slides of my own copy on reading error messages.carousel.py:wrapandfit(largest font that fits, error if nothing does),slide(accent bar, number, title, body, handle, progress dots, swipe cue) andrender(PNGs, PDF, contact sheet).docs/: the rendered slides,carousel.pdfandcontact-sheet.png.tests/test_carousel.py: slide count and size, background colour, wrapping and shrinking, and the overflow error.
How to run¶
python carousel.py deck.json out
python -m pytest -q tests
Verification¶
I ran the verification command on 2026-12-03. The full output is in docs/verification.txt.
/workspace/nextwork-portfolio/.venv/bin/python carousel.py deck.json /tmp/carousel-verify && /workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider tests 2>&1 | tail -1 | grep -q '3 passed' && echo CAROUSEL OK
What isn't done, and why¶
No Paper design tool or Claude Code: the layout is my own PIL code and the copy is mine. Nothing was published to a social account.
Original project: https://nextwork.ai/projects/49d9138c-228a-4eb4-8e43-952663b7cafd ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ /workspace/nextwork-portfolio/.venv/bin/python carousel.py deck.json /tmp/carousel-verify && /workspace/nextwork-portfolio/.venv/bin/python -m pytest -q -p no:cacheprovider tests 2>&1 | tail -1 | grep -q '3 passed' && echo CAROUSEL OK
rendered 7 slides
CAROUSEL OK
[exit code 0]