Multiple visual formats from token-efficient source.
Artifacture gives coding agents a shared library for pages, slide decks, magazines, posters, and interactive explanations. Write the content in MDX, use TSX for custom behavior, or describe a chart in JSON. Components supply the layout, styling, and interaction; exporters produce standalone HTML.
The agent spends tokens on your explanation and data. Repeated HTML, CSS, chart geometry, and presentation controls live in the library.
Compose charts, diagrams, code, and text inside the format your reader needs. The same component library serves a reading page, a slide sequence, or a poster; each has its own layout and reading order.
| Reading page | Slide deck |
|---|---|
![]() |
![]() |
| Horizontal magazine | Presentation with drill-down details |
|---|---|
![]() |
![]() |
| Poster | Interactive explanation |
|---|---|
![]() |
![]() |
npx skills add theclaymethod/artifactureAsk your coding agent for an artifact:
Make a data story from these repair records, with charts for outcomes and faults.
Explain this repository's request path as a step-by-step diagram.
Turn this migration plan into a slide deck with supporting detail on demand.
The skill loads the task-specific guidance it needs. It authors editable source, exports the result, and checks it in a browser.
For local development, use Node 22 or newer and run these commands from the checkout:
npm install
npm run ve:export -- examples/visual-explainer-mdx/data-charts.mdx --out dist/charts.htmlA chart is a title and a data specification:
{
"title": "Lamps were most common",
"source": { "label": "Illustrative workshop records" },
"spec": {
"kind": "rung-bars",
"unit": 1,
"unitLabel": "device",
"data": [
{ "label": "Lamps", "value": 24 },
{ "label": "Headphones", "value": 18 },
{ "label": "Kettles", "value": 16 },
{ "label": "Radios", "value": 14 }
]
}
}The renderer supplies the marks, labels, responsive layout, and exact-data table. Export the example JSON:
npm run ve:chart -- examples/visual-explainer-mdx/lieflat-chart.json --out dist/chart.htmlMDX combines prose with components such as LieflatChart, DiagramCanvas, and DiffBlock. TSX adds state and custom visuals. Revisions change the source and reuse the rendering code, keeping layout and interaction boilerplate out of the agent’s response.
Token efficiency comes from this division of work and task-specific guidance. Exported HTML includes the runtime it needs; its file size is separate from the source the agent writes.
| Show | Tool | Author in |
|---|---|---|
| Counts, dated activity, intersections, individual paths | LieflatChart |
JSON / MDX / TSX |
| A few values to compare | DataChart |
MDX / TSX |
| Flows, trees, swimlanes, timelines | DiagramCanvas |
MDX / TSX |
| A sequence revealed step by step | DiagramWalkthrough |
MDX / TSX |
| Complex architecture, workflows, data flows, lifecycles | Archify | Typed JSON |
| Code changes, structured data, comparisons, questions | DiffBlock, JsonTree, DecisionMatrix, Quiz |
MDX / TSX |
Lieflat is the default chart language. Its five forms—unit-field, rung-bars, barcode, bubble-matrix, and threads—show counts, comparisons, dates, intersections, and individual paths. All five views in the repair story use the same 72 explicitly illustrative records.
Use the chart guide for data contracts and authoring examples.
DiagramCanvas sizes nodes from their labels and routes around unrelated nodes. Flow layouts adapt to available width; dense figures scroll locally, and supported layouts provide mobile alternatives.
DiagramWalkthrough reveals authored steps along the graph’s routes. Playback starts paused, with manual stepping available on mobile and with reduced motion.
Walkthrough source · Walkthrough API
For larger system maps, Artifacture integrates a pinned Archify runtime with typed schemas and validation.
npm run ve:archify -- setup
npm run ve:archify -- guide "API request with cache fallback" --json
npm run ve:archify -- validate architecture examples/visual-explainer-mdx/artifacture.architecture.json --json
npm run ve:archify -- deliver architecture examples/visual-explainer-mdx/artifacture.architecture.json dist/architecture.html --jsonTypography, spacing, and colors come from presets shared across formats. Lieflat defaults to paper gray, charcoal, and direct labels. Algebrica adds serif reading text; Mono Color uses restrained color and asymmetric composition.
| Algebrica | Mono Color |
|---|---|
![]() |
![]() |
Set preset on ExplainerShell, SlideDeck, PresentationDeck, or PosterCanvas. You can also supply a design system.
Keep the MDX, TSX, or JSON as the editable source. Share the exported HTML. Browser checks catch mechanical failures; visual review checks composition, reading order, and labels.
npm run ve:verify -- dist/charts.html --json dist/charts.report.json --screens dist/charts-screensBoth required review stages must pass before an artifact is verified. Make revisions in the source and export again. See Verification for the full process.
Editable examples · Templates · Presentation guide · Contributing
MIT. Artifacture began as a fork of nicobailon/visual-explainer.
Visual references include Lieflat Charts, Algebrica, Mono Color, PR Lens, and Pierrick Calvez’s typography guide. Archify is an integrated external runtime. Reference images and noncommercial source implementations are not bundled. See provenance and licenses.













