MicroGfx is a tiny, dependency-free library that generates hand-drawn 'technical instrument' graphics (fake telemetry cards, spec labels, and contact-sheet posters) as pure SVG.

Stars

18

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-05

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It combines a playful, hand-drawn aesthetic with a composable architecture of elements, layouts, and templates, all without any build step or server—just open an HTML file and start creating.

Who it is for

  • Front-end developers prototyping mock UIs or data visualizations
  • Designers needing placeholder technical graphics for presentations or concepts
  • Creative coders exploring generative art with SVG
  • Hobbyists making whimsical 'scientific' posters or fake dashboards

Use cases

  • Generate random telemetry card mockups for dashboard prototypes
  • Create contact-sheet posters with varied mini-compositions for wall art
  • Produce speculative product labels or spec sheets with a hand-drawn feel
  • Quickly export SVG or PNG assets for design experiments or social media posts

Strengths

  • Fully self-contained – no dependencies, no build step, works from a single HTML file
  • Pure SVG output – scalable, lightweight, and editable in any vector tool
  • Extensible via runtime registries – add elements, templates, or themes without modifying core code
  • Composable three-layer architecture (elements → layout → compose) makes it easy to create new layouts

Considerations

  • QR and data-matrix codes are decorative – do not encode real data
  • Font rendering depends on system fonts – exported SVGs may look different across machines
  • Not intended for production use with real data; designed for mockups and creative exploration

README quick start

MicroGfx

A tiny, dependency-free library for generating hand-drawn "technical instrument" graphics — fake telemetry cards, spec labels, and contact-sheet posters — as pure SVG. Hit Lucky and it composes a new one; export to PNG or SVG.

Run it

No build step, no server. Just open the studio:

open index.html      # macOS  (or double-click the file)
  • Space — new draw (Lucky)
  • 1 / 2 / 3 — Card / Banner / Poster modes
  • P / S — export PNG / SVG
  • Theme dropdown — pick a palette or Auto
  • Click the seed to copy it (same seed always reproduces the same piece)

What it makes

ModeDescription
CardA single label whose height adapts to its content — a barcode card is short, a chart card is tall. Footer-anchored.
BannerWide corner-bracketed hero with big display type.
PosterA masonry contact sheet of 12–16 mini-compositions sharing one theme.

Eight themes ship in the registry — gray, orange, cream, acid-on-black, lavender, olive, steel, sand:

How it works

Everything is built from three composable layers, which is what lets one small codebase span cards, banners, and posters:

1. ELEMENTS   ~25 self-measuring components:  (ctx) => { svg, h }
              brandLine · eyebrow · bigDisplay · dataTable · barcode · qrcode
              · dataMatrix · lineChart · waveform · dimension · pillRow · iconRow
              · titleBar · bracketRule · coordReadout · hatch · spring · dividers · footer
2. LAYOUT     recursive containers  stack() / row()  — themselves elements,
              so a row can hold a stack that holds a row (the "QR + readouts" splits)
3. COMPOSE    a grammar of templates that assembles elements into whole cards

Because every element reports its own height, containers flow them automatically — no manual coordinate math, and layout nests arbitrarily.

The hand-drawn look is two SVG filters:

  • #warpfeTurbulencefeDisplacementMap distorts every stroke and glyph uniformly, so the whole thing reads as sketched by one hand.
  • #erode — a turbulence alpha-mask composited into heavy fills only (barcodes, QR, inverted bars) for the screen-printed grain.

API

const gen = MicroGfx.generate({ mode: "poster", theme: "orange", seed: 42 });
// -> { inner, w, h, seed, theme }     inner = the SVG body markup

d

Description

Create a SciFi SVG graphic interface

Related repositories

Similar projects matched by category, topics, and programming language.

TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191