Skip to main content

plaincard

plaincard

plaincard draws plain, consistent images for software projects from a few lines of spec. It makes project cards (for a portfolio page or a repository's social preview), header banners and diagrams for READMEs, and small square icons. Every image has the same dark background, the project name in a monospace face, one line in plain words, and a small flat drawing of what the project does, with one accent colour.

I made it because I wanted images for my own repositories that did not look like generic stock art and that still matched each other. It is also a Claude Code plugin, so an agent working in any of my projects can make an image in the same style.

claude-ops sqlgate
claude-human couchctl

Install

pip install plaincard            # the command and the Python API
pip install 'plaincard[mcp]'     # also the MCP server

PNG export uses a local Chrome or Chromium (set PLAINCARD_CHROME to choose one). Without a browser, plaincard still writes the SVG.

Use

Write a spec, for example .plaincard/sqlgate.yaml.

kind: card                  # card 1280x640, banner 1600x400, diagram 1200x480, icon 512x512
name: sqlgate
line: "Serve a database you host yourself to serverless apps over HTTPS."
accent: green               # clay, blue, amber, green, violet, teal, rose, sky, or #rrggbb
footer: github.com/drkostas/sqlgate
diagram:                    # parts from left to right, joined by edges
  - cloud
  - arrow: https            # arrow, dots or line, with an optional label
  - gate
  - line
  - db

Then render it.

plaincard render .plaincard/sqlgate.yaml -o images   # images/sqlgate.svg and images/sqlgate.png
plaincard parts                                      # every part, edge, accent and kind
plaincard example banner                             # a starting spec for a kind

The PNG is twice the canvas size, so it stays sharp on high density screens. The SVG is the source and can be used directly where SVG is allowed.

It can also be called from Python.

from plaincard import render_file, render_spec
render_file(".plaincard/sqlgate.yaml", "images")
render_spec({"kind": "icon", "diagram": ["db"]}, "images", "db")

Parts

pane, panes (a grid with one highlighted), terminal, phone (model: ios or android, or shows: lock or check), laptop, tv (app tiles, one crossed out, one highlighted), remote, cloud, db, gate, server, doc, folder, lock, check, user, globe, chart, heart, note (music), watch, cube, and box (a labelled box for anything else). Each part is quiet unless the spec marks it accent: true. A gate, lock, check and remote are lit by default. Any part can take a label.

Rules it keeps

The text owns the top of the canvas and the drawing is fitted into the space below it, so text and drawing never overlap. A name that does not fit, a line longer than about two lines, an unknown part or option, two edges in a row, and YAML it cannot read are all refused with a message that says what to change. Colours, fonts and line weights live in one file (style.py), so every image can be restyled together by rendering the specs again.

Claude Code

The repository is a Claude Code plugin. It adds a plaincard skill (when to make an image and how to write a good spec), a /plaincard command, and an MCP server with render_image, list_parts and example.

claude plugin install /path/to/plaincard   # or add it from a marketplace that lists it

The MCP server needs pip install 'plaincard[mcp]' so that plaincard-mcp is on the path.

License

MIT

Metadata

Release files for plaincard 0.2.0

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

Source distribution (sdist)

Source distribution for plaincard 0.2.0
File Size Uploaded Provenance Actions
plaincard-0.2.0.tar.gz 22.7 kB With provenance Details for plaincard-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 44.7 kB

Release files / plaincard-0.2.0.tar.gz

Download URL plaincard-0.2.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
44dfe6def30689aae2a36c4a4a43ebcb402933d43b9306dd10f5ab1227be0385
BLAKE2b-256 checksum
How to use checksums
f4dbe56ae0b32b1232ef3fa666c67686441e8659188c8135395c5f844b4d7916
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Release files / plaincard-0.2.0-py3-none-any.whl

Download URL plaincard-0.2.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abbc65e3ba9db478d88766b7c198be23d07cf7d12b2fd402d4c2c5be8ee1d067
BLAKE2b-256 checksum
How to use checksums
38fd5e4808bf3b90f22e9704fdb439869e9d122e34bd83e44254d991bccd268f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for plaincard 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plaincard-0.2.0.tar.gz

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 Nov 5, 2026.

Transparency log

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.2.0 This release

2 release files Full 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