Skip to content

feat: export a molecule read as a branded flavor-card PNG - #181

Merged
rvnminers-A-and-N merged 1 commit into
mainfrom
feat/export-flavor-card
Jul 16, 2026
Merged

rvnminers-A-and-N merged 1 commit into
mainfrom
feat/export-flavor-card

Conversation

@rvnminers-A-and-N

Copy link
Copy Markdown
Collaborator

Second A feature. /api/card renders a self-contained 1200×630 (OG-sized) branded flavor card — emblem + wordmark, the 2D structure, name/IUPAC/SMILES, the 'reads as' pills, taste-model bars, and the shareable URL in the footer. RDKit draws the structure (MolDraw2DCairo), Pillow composes — no new runtime deps. An Export button in the modal downloads it. Great for sending a client a read or social sharing. Verified with Playwright.

Add /api/card — a self-contained 1200x630 (social/OG-sized) 'flavor card'
PNG for a molecule: emblem + wordmark header, the 2D structure (RDKit
draws it), name/IUPAC/SMILES, the 'reads as' pills (flavors/tastes/
aromas), the taste-model bars, and the shareable URL in the footer. RDKit
renders the structure (MolDraw2DCairo) and Pillow composes — no new
runtime deps. An 'Export' button in the modal downloads it.

Verified with Playwright: the card renders for vanillin and Export
downloads flavormancer-Vanillin.png.

Signed-off-by: Austin L. <86896075+rvnminers-A-and-N@users.noreply.github.com>
@rvnminers-A-and-N
rvnminers-A-and-N force-pushed the feat/export-flavor-card branch from ee706d8 to d1776a0 Compare July 16, 2026 01:55
@rvnminers-A-and-N rvnminers-A-and-N changed the title feat: export a molecule read as a branded flavor-card PNG (A) feat: export a molecule read as a branded flavor-card PNG Jul 16, 2026
@rvnminers-A-and-N
rvnminers-A-and-N merged commit 8dc2398 into main Jul 16, 2026
3 checks passed
@rvnminers-A-and-N
rvnminers-A-and-N deleted the feat/export-flavor-card branch July 16, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant