---
type: "post"
id: "decoder-explain-how-things-work-in-3d-declarative-a8a43e"
slug: "decoder-explain-how-things-work-in-3d-declarative-a8a43e"
title: "decoder: Explain how things work in 3D: declarative system exhibits, technical plates and offline HTML"
description: "Pull a system apart subsystem by subsystem, follow how its parts interact, then hand someone an interactive 3D exhibit: that is the workflow Primitive Labs says Decoder is built for."
retrieval_nugget: "Pull a system apart subsystem by subsystem, follow how its parts interact, then hand someone an interactive 3D exhibit: that is the workflow Primitive Labs says Decoder is built for. It turns plain-data descriptions of machines, devices or organs into explorable models. (github.com)"
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["tools","interfaces"]
entities: ["Primitive Labs","Decoder","primitive-decoder"]
related_patterns: ["skills-become-portable-capability-layer"]
novelty_label: "new_fact"
what_changed: "Decoder introduces a tool for explaining technical systems through declarative 3D exhibits, technical plates and offline HTML."
prior_refs: ["https://newruntime.com/posts/archify-turn-any-idea-plan-or-codebase-into-d9c5c5/","https://newruntime.com/posts/codechart-agent-skill-cli-maps-and-flowcharts-of-0aa8e7/"]
source_url: "https://github.com/Primitivelabai/decoder"
source_urls: ["https://github.com/Primitivelabai/decoder"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:decoder-explain-how-things-work-in-3d-declarative-a8a43e"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/decoder-explain-how-things-work-in-3d-declarative-a8a43e/","markdown":"https://newruntime.com/posts/decoder-explain-how-things-work-in-3d-declarative-a8a43e.md","json":"https://newruntime.com/posts/decoder-explain-how-things-work-in-3d-declarative-a8a43e.json"}
markdown_url: "https://newruntime.com/posts/decoder-explain-how-things-work-in-3d-declarative-a8a43e.md"
---

# decoder: Explain how things work in 3D: declarative system exhibits, technical plates and offline HTML

## Retrieval answer

Pull a system apart subsystem by subsystem, follow how its parts interact, then hand someone an interactive 3D exhibit: that is the workflow Primitive Labs says Decoder is built for. It turns plain-data descriptions of machines, devices or organs into explorable models. (github.com)

## Summary

Pull a system apart subsystem by subsystem, follow how its parts interact, then hand someone an interactive 3D exhibit: that is the workflow Primitive Labs says Decoder is built for. It turns plain-data descriptions of machines, devices or organs into explorable models. ([github.com](https://github.com/Primitivelabai/decoder))

## What happened

Authors can define disassembly paths and drive moving parts with a declarative simulation using mechanisms such as slider-cranks, ODEs, lookup tables and state machines; the repository says the simulation evaluates no code. Decoder traces upstream and downstream links between parts and detects feedback loops.

There are two authoring routes: edit a `.decoder.json` file in Studio and see changes immediately in 3D, or use the agent skill to author, validate and package exhibits. The skill runs commands through `npx primitive-decoder` and does not require a repository checkout. The repository also supports checkout-based installation for Claude, Codex, Gemini, Copilot, Cursor and a shared agents folder.

Exports include standalone HTML, GLB, glTF, OBJ, STL, faceted STEP, SVG, PNG and the source project file. The package command bundles the renderer, simulation, project data and a vector fallback plate into one HTML file; the repository says it makes no network requests. Developers can also use the same engine as `DecoderSDK` from `primitive-decoder`. Decoder is distributed under Apache License 2.0.

Decoder offers twelve viewing modes, including cutaway, section, X-ray and thermal views, and generates vector technical illustrations in six styles. The repository includes seven sample exhibits, from an espresso machine and mechanical watch to a human heart, processor and mechanical pencil.

## Trend signal

The skill makes Decoder an example of the portable-capability pattern: agents can learn a bounded workflow and invoke its tools without needing a project checkout. That connection is useful, but portability alone says nothing about the skill’s quality or how reliably agents use it.

## Why it matters

For builders, standalone HTML makes an exhibit easy to hand off for offline use without asking viewers to install Decoder or depend on a live service.

## Limits and uncertainty

Decoder’s exhibits are educational models, not certified engineering analyses, and local use requires Node.js 22.12 or newer plus a WebGL2 browser. Each part and relationship carries an evidence label—observed, documented, inferred, illustrative or unknown—and observed or documented claims must cite a source. Effects such as flow particles and heat glow are explicitly illustrative. The repository says its export verification opens packaged exhibits offline in headless Chromium with networking disabled and checks interactions and the no-WebGL fallback; that is a stated packaging check, not evidence of engineering validation.

## Skill to build now

Install the skill with `npx skills add Primitivelabai/decoder --skill decoder`. To try the CLI without a global install, validate a project with `npx primitive-decoder validate example.decoder.json`. The global CLI option is `npm install -g primitive-decoder`. After installing the skill from a checkout, restart the agent; for an agent without skill support, provide it with `skills/decoder/SKILL.md` as instructions.

## Reader takeaway

Decoder is aimed at communicating how a machine, device or organ works—not certifying its engineering behavior. Builders can author through an agent skill or Studio, then package an exhibit as self-contained HTML for offline viewing. The project also makes evidence labels part of the model, helping readers distinguish sourced claims from inference and illustration.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Tools](https://newruntime.com/topics/tools.md): Explore the tools topic hub.
- topic hub: [Interfaces](https://newruntime.com/topics/interfaces.md): Explore the interfaces topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
