Headless visual output layer for AI agents. One API call → self-contained SVG.
Project description
Headless visual output layer for AI agents.
One API call → self-contained SVG. No JavaScript. No dependencies. No runtime.
Works everywhere an <img> tag works.
The Problem
When an AI agent needs visual output, it generates React code or HTML that breaks across platforms, carries no brand identity, and is illegible to the next agent in the chain. There's no portable, reliable visual primitive for agents.
HyperWeave is that primitive. Semantic SVGs with embedded CSS state machines, accessibility markup, and machine-readable metadata. The artifact stays live, stays on-brand, and stays legible — whether it's rendered in a GitHub README, Slack, Notion, documentation site, email, VS Code, or terminal. Every surface that renders an <img> tag is a HyperWeave surface.
Genomes — Aesthetic DNA
A genome is a portable, machine-readable aesthetic specification. It encodes the complete visual identity — chromatic system, surface material, motion vocabulary, geometric form language — as a set of CSS custom properties that any agent can consume and apply consistently across every artifact type.
Three production genomes ship today. Custom genome generation via AI skill files coming soon.
chrome-horizon · brutalist-emerald · automata
chrome-horizon
chrome paradigm · metallic env-mapping · smooth corner radii| Signals state machine |
/v1/badge/{title}/{value}/chrome-horizon.static?state={state} — or /v1/badge/{title}/chrome-horizon.static?data=gh:owner/repo.metric for live values
|
|---|---|
| Dashboard strip |
/v1/strip/readme-ai/chrome-horizon.static?subtitle=eli64s/readme-ai — or ?data=gh:owner/repo.stars,... for live metrics
|
| Profile stats card |
/v1/stats/eli64s/chrome-horizon.static
|
| Star Chart star history |
/v1/chart/stars/eli64s/readme-ai/chrome-horizon.static
|
| Marquee horizontal ticker |
?data=gh:eli64s/readme-ai.stars,gh:eli64s/readme-ai.forks,pypi:readmeai.version,pypi:readmeai.downloads,docker:zeroxeli/readme-ai.pull_count — five tokens, three providers, one URL
|
| Icons circle + square |
/v1/icon/{glyph}/chrome-horizon.static?shape={circle|square}
|
brutalist-emerald
brutalist paradigm · sharp zero-radius · 5 border SMIL motions| Signals state machine |
/v1/badge/{title}/{value}/brutalist-emerald.static?state={state} — or /v1/badge/{title}/brutalist-emerald.static?data=gh:owner/repo.metric for live values
|
|---|---|
| Dashboard strip |
/v1/strip/readme-ai/brutalist-emerald.static?subtitle=eli64s/readme-ai — or ?data=gh:owner/repo.stars,... for live metrics
|
| Profile stats card |
/v1/stats/eli64s/brutalist-emerald.static
|
| Star Chart star history |
/v1/chart/stars/eli64s/readme-ai/brutalist-emerald.static
|
| Marquee horizontal ticker |
?data=gh:eli64s/readme-ai.stars,gh:eli64s/readme-ai.forks,pypi:readmeai.version,pypi:readmeai.downloads,docker:zeroxeli/readme-ai.pull_count — five tokens, three providers, one URL
|
| Icons circle + square |
/v1/icon/{glyph}/brutalist-emerald.static?shape={circle|square}
|
automata
cellular paradigm · bifamily teal × amethyst · abyssal-cyber chromatics| Signals chromatic variant |
/v1/badge/{title}/{value}/automata.static?glyph=python&family={blue|purple} — or /v1/badge/{title}/automata.static?data=pypi:hyperweave.version&family={blue|purple} for live values
|
|---|---|
| Dashboard strip · bifamily |
/v1/strip/readme-ai/automata.static?subtitle=eli64s/readme-ai&family=bifamily — or ?data=gh:owner/repo.stars,... for live metrics
|
| Profile stats card |
/v1/stats/eli64s/automata.static
|
| Star Chart star history |
/v1/chart/stars/eli64s/readme-ai/automata.static
|
| Marquee horizontal ticker · bifamily |
?data=gh:eli64s/readme-ai.stars,gh:eli64s/readme-ai.forks,pypi:readmeai.version,pypi:readmeai.downloads,docker:zeroxeli/readme-ai.pull_count&family=bifamily — five tokens, three providers, bifamily palette
|
| Icons circle + square |
/v1/icon/{glyph}/automata.static?shape={circle|square}&family={blue|purple}
|
| Divider cellular-dissolve |
/v1/divider/cellular-dissolve/automata.static?family=bifamily
|
| chrome-horizon | brutalist-emerald | automata | |
|---|---|---|---|
| Surface | #000a14 deep void |
#14532D dark field |
#04060A void |
| Signal | #5ba3d4 metallic blue |
#10B981 emerald |
#1E849A teal · #6B3B8A amethyst |
| Profile | chrome (smooth, env-mapped) | brutalist (sharp, zero-radius) | brutalist (cellular paradigm) |
| Chromatic variant | — | — | blue / purple / bifamily |
| Motions | 5 border SMIL | 5 border SMIL | static, chromatic-pulse, rimrun, corner-trace |
The two automata signal badges share a URL and differ only in the chromatic variant: ?family=blue renders the teal palette, ?family=purple the amethyst, ?family=bifamily both. The parameter name is provisional and likely to be renamed to ?variant= once brutalist skin variants land — treat the surface as unstable.
Error fallback — SMPTE NO SIGNAL
Every broken <img> URL renders the SMPTE RP 219 test pattern with ERR_NNN matching the HTTP status, instead of a browser broken-image icon.
/v1/badge/TEST/value/unknown-genome.static — unknown genome → HTTP 404, value slab reads ERR_404.
Install
uv add hyperweave
# or
pip install hyperweave
Requires Python 3.12+.
Entry Points
Four interfaces, one pipeline. Every path produces the same artifact through the same compositor.
MCP
{
"mcpServers": {
"hyperweave": {
"command": "hyperweave",
"args": ["mcp"]
}
}
}
# Static badge
hw_compose(type="badge", title="BUILD", value="passing", genome="brutalist-emerald")
# Data-driven badge — unified token grammar (gh:owner/repo.metric, pypi:pkg.metric, ...)
hw_compose(type="badge", title="STARS", data="gh:anthropics/claude-code.stars", genome="brutalist-emerald")
# Strip with multiple live metrics
hw_compose(type="strip", title="readme-ai",
data="gh:eli64s/readme-ai.stars,gh:eli64s/readme-ai.forks,pypi:readmeai.version",
genome="chrome-horizon")
# Marquee with mixed text + live tokens
hw_compose(type="marquee-horizontal",
data="text:NEW RELEASE,gh:anthropics/claude-code.stars,text:DOWNLOAD",
genome="brutalist-emerald")
# Discoverable shortcut for single-metric live badges
hw_live(provider="github", identifier="anthropics/claude-code", metric="stars")
hw_kit(type="readme", genome="brutalist-emerald", badges="build:passing")
hw_discover(what="all")
CLI
# Badge
hyperweave compose badge "build" "passing" --genome brutalist-emerald
# Strip with metrics
hyperweave compose strip "readme-ai" "STARS:2.9k,FORKS:278" -g brutalist-emerald
# Live data through the unified --data token grammar
hyperweave compose badge "STARS" --data 'gh:anthropics/claude-code.stars' -g brutalist-emerald
# Marquee with mixed text + live tokens
hyperweave compose marquee-horizontal --data 'text:NEW RELEASE,gh:owner/repo.stars,text:DOWNLOAD' -g brutalist-emerald
# Artifact kit
hyperweave kit readme -g brutalist-emerald --badges "build:passing,version:v0.2.0" --social "github,discord"
# Profile card (live GitHub data, path-segment identity)
hyperweave compose stats eli64s -g chrome-horizon -o stats.svg
# Star history chart
hyperweave compose chart stars eli64s/readme-ai -g brutalist-emerald -o chart.svg
# Custom genome from a local JSON file (validated against the profile contract)
hyperweave compose badge "DEPLOY" "live" --genome-file ./my-genome.json
hyperweave validate-genome ./my-genome.json
HTTP API
# URL grammar: /v1/{type}/{title}/{value}/{genome}.{motion}
curl 'https://hyperweave.app/v1/strip/readme-ai/brutalist-emerald.static?value=STARS:2.9k,FORKS:278'
# Live data via the unified ?data= grammar (works on badge / strip / marquee)
curl 'https://hyperweave.app/v1/badge/STARS/chrome-horizon.static?data=gh:anthropics/claude-code.stars'
curl 'https://hyperweave.app/v1/strip/readme-ai/brutalist-emerald.static?data=gh:eli64s/readme-ai.stars,gh:eli64s/readme-ai.forks'
curl 'https://hyperweave.app/v1/marquee/SCROLL/brutalist-emerald.static?data=text:NEW%20RELEASE,gh:anthropics/claude-code.stars'
# POST compose
curl -X POST https://hyperweave.app/v1/compose \
-H "Content-Type: application/json" \
-d '{"type":"strip","title":"hyperweave","genome":"brutalist-emerald","value":"STARS:2.9k"}'
# Local server
hyperweave serve --port 8000
Session Telemetry
HyperWeave parses Claude Code transcripts into visual receipts — cost, tokens, tool distribution, cognitive phases. The artifact isn't a visualization of data. It is the record.
# Manual
hyperweave session receipt .claude/session.jsonl -o receipt.svg
# Autonomous — install once, every session gets a receipt
hyperweave install-hook
After install-hook, every Claude Code session automatically drops a receipt SVG into .hyperweave/receipts/. No config, no server, no manual step.
How It Works
Every artifact is the output of a single composition formula:
ARTIFACT = FRAME × PROFILE × GENOME × SLOTS × MOTION × ENVIRONMENT
Python builds context dicts. Jinja2 builds SVG. YAML defines config. Three layers, no mixing. Zero f-string SVG in Python.
ComposeSpec → engine.py → assembler.py (CSS) → lanes.py (validate) → templates.py (Jinja2) → SVG
Every artifact ships with:
- Semantic metadata — provenance, reasoning, spatial trace, aesthetic DNA. Machine-readable context so the next agent in the chain knows what it's looking at and why.
- CSS state machines —
data-hw-status,data-hw-state,data-hw-regimedrive visual transitions through the Custom Property Bridge. No JavaScript. - Pure CSS/SMIL animation — all motion uses compositor-safe properties (
transform,opacity,filter). No script tags. Works inside GitHub's Camo proxy, email clients, Notion embeds — anywhere SVGs render. - Accessibility — WCAG AA,
prefers-reduced-motion,prefers-color-scheme,forced-colors, ARIA markup. Structural, not decorative.
| Dimension | Count |
|---|---|
| Frame types | 9 (badge, strip, icon, divider, marquee-horizontal, stats, chart, receipt, rhythm-strip) |
| Genomes | 3 (automata, brutalist-emerald, chrome-horizon) |
| Motion configs | 6 (1 static + 5 border SMIL) |
| Glyphs | 99 (93 Simple Icons + 6 geometric) |
| Divider variants | 6 (block, cellular-dissolve, current, takeoff, void, zeropoint) |
| Metadata tiers | 5 (Tier 0 silent → Tier 4 reasoning) |
| Paradigms | 4 per frame (default, brutalist, chrome, cellular) — per-frame dispatch from genome |
| Bundled fonts | 3 (JetBrains Mono, Orbitron, Chakra Petch — base64-embedded) |
Stack: Pydantic, FastAPI, FastMCP v3, Jinja2, Typer.
Contributing
HyperWeave is early. If you're interested in building genomes, extending frame types, or just seeing what this looks like in your own README — join the Discord.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperweave-0.2.17.tar.gz.
File metadata
- Download URL: hyperweave-0.2.17.tar.gz
- Upload date:
- Size: 916.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bdb82ca092a5665826646d0b6ba88ca3fc5dc04c00f0932c6698c84ba5e96d8
|
|
| MD5 |
f35728d38853ef46c9021508ce0538a8
|
|
| BLAKE2b-256 |
c267e00be4b5f3bc8a56ab1b15a34f70c3777bb1fc6051e1768c2f25aeb306bd
|
Provenance
The following attestation bundles were made for hyperweave-0.2.17.tar.gz:
Publisher:
publish.yml on InnerAura/hyperweave
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperweave-0.2.17.tar.gz -
Subject digest:
6bdb82ca092a5665826646d0b6ba88ca3fc5dc04c00f0932c6698c84ba5e96d8 - Sigstore transparency entry: 1424344175
- Sigstore integration time:
-
Permalink:
InnerAura/hyperweave@e9c5d5247a02b99cdd2502a8c05275376fac80d1 -
Branch / Tag:
refs/tags/v0.2.17 - Owner: https://github.com/InnerAura
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e9c5d5247a02b99cdd2502a8c05275376fac80d1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hyperweave-0.2.17-py3-none-any.whl.
File metadata
- Download URL: hyperweave-0.2.17-py3-none-any.whl
- Upload date:
- Size: 421.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88ca84bef69329b1a1ca16b9ea9f7010bf2d63da98edb1aa292b6f900badb603
|
|
| MD5 |
3bed29e7273a92b28a5781f397dce1b5
|
|
| BLAKE2b-256 |
d05e022846dac11233c238823a79b2dca25495f6c106bd83758a1151ca210e37
|
Provenance
The following attestation bundles were made for hyperweave-0.2.17-py3-none-any.whl:
Publisher:
publish.yml on InnerAura/hyperweave
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperweave-0.2.17-py3-none-any.whl -
Subject digest:
88ca84bef69329b1a1ca16b9ea9f7010bf2d63da98edb1aa292b6f900badb603 - Sigstore transparency entry: 1424344240
- Sigstore integration time:
-
Permalink:
InnerAura/hyperweave@e9c5d5247a02b99cdd2502a8c05275376fac80d1 -
Branch / Tag:
refs/tags/v0.2.17 - Owner: https://github.com/InnerAura
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e9c5d5247a02b99cdd2502a8c05275376fac80d1 -
Trigger Event:
push
-
Statement type: