· 1 observation
Technical updates · 1
Package or technical metadata updated
View technical comparison →Compendium Labs v2.0.0
Diagrams, plots, and slides
From the developer
Not specified in the available declarations: limitations, pricing & account requirements.
Use Gum to plot the US unemployment rate over time.
Developer declarations; not independently tested. Listing last checked Dec 3, 2026. Package observed Dec 2, 2026.
From the marketplace listing
Create and revise diagrams, data plots, mathematical figures, geographic maps, and slide decks with Gum. Get editable JSX source and export SVG, PNG, or PDF files. This plugin does not include the Gum renderer but will help you get it installed and working.
Language: English · Automatically detected from descriptions.
Exact text from the indicated source. A mention alone does not establish support for your task.
Create and revise diagrams, data plots, mathematical figures, geographic maps, and slide decks with Gum. Get editable JSX source and export SVG, PNG, or PDF files. This plugin does not include the Gum renderer but will help you get it installed and working.
· 1 observation
Package or technical metadata updated
View technical comparison →Finding similar plugins… Results will appear here automatically.
Browse plugins →---
name: gum-jsx
description: Create and revise SVG diagrams, plots, mathematical figures, and slides using Gum's JSX language. Use for authoring or debugging Gum figures, not general React or HTML development.
---
# Gum
Gum describes figures with JavaScript and JSX, then measures and renders them as
SVG. It is not React, HTML, or a browser DOM. For environment setup, follow
the instructions on CLI setup below before searching for or installing Gum.
Use the references for supported components and properties. Preserve the
user's chosen data, visual intent, and output format. Ordinary functions returning
elements are the simplest way to make reusable components.
## Source format
A single bare JSX element is returned automatically. With declarations or other
statements, finish with an explicit `return`. Return one element for a figure;
rendering hosts wrap a bare root in `Svg`. Put design dimensions and base
font props on that root. Use an explicit `Svg` when you need viewport control;
its width and height accept pixels only (`px(640)` or `"640px"`), or can be omitted
to hug content. The evaluator supplies elements, `px`, `em`, palette constants,
and numeric helpers. Math bindings are supplied by the rendering host as well.
Gum source runs as a function body, not an imported module. Do not put static
imports in an evaluated `.jsx` file. JSX attribute dashes become underscores:
`font-size` reaches a component as `font_size`. Use underscore keys in JavaScript
objects and spread props; camelCase is not normalized. Unknown SVG/CSS attributes
are not automatically forwarded.
For example, a rounded frame around a circle needs no fixed outer viewport:
```jsx
<Frame font-size={px(20)} padding={em(0.75)} border-radius={em(0.4)}>
<Circle width={em(5)} fill={blue} stroke={none} />
</Frame>
```
For repeated elements, use ordinary components and array helpers. Put layout
props on the component's outer element so its parent can allocate it:
```jsx
const Card = ({ label, color, ...props }) => (
<TextFrame padding={em(0.75)} border-color={color} {...props}>
<Text color={color}>{label}</Text>
</TextFrame>
)
return (
<TextBox width={px(440)} font-size={px(20)} padding={em(0.75)}>
<HStack gap={em(0.75)}>
<Card label="Input" color={blue} grow={1} />
<Card label="Output" color={red} grow={1} />
</HStack>
</TextBox>
)
```
Keep nested JSX and compound math operands on separate, indented lines. `range`,
`linspace`, `zip`, and array `.map()` are useful for repeated geometry. `linspace`
includes the endpoint by default; pass `false` as its fourth argument for periodic samples.
Use `setSeed` when a generative figure should be repeatable.
Use `Latex` for display math and `Tex` inside `Text` for inline formulas. In a
JavaScript string expression, use `String.raw` for TeX backslashes, for example
``<Tex>{String.raw`\frac{a}{b}`}</Tex>``, without surrounding `$` delimiters.
## Design philosophy
Gum code should express the structure of a figure and let the layout system do
the measuring and positioning. Strive for the simplest, most elegant composition
that preserves the visual intent and is easy to reuse. Hard-coded dimensions and
positions are a last resort, not the starting point.
- Use layout classes whenever feasible. Compose `HStack`, `VStack`, `TextCol`,
`Box`, and `Frame` for rows, columns, spacing, and decoration. Use higher-level
elements such as `Slide`, `TextFigure`, and `Plot` for the structures they
already understand. Read their documented examples before inventing a layout.
- Express relationships instead of coordinates. Let content determine natural
sizes; use `grow`, `gap`, alignment, and fill sizing to distribute available
space. For a note at the bottom of a panel, put flexible content above it in a
column rather than assigning the note a y coordinate. Let titles and captions
be measured instead of subtracting guessed heights from a canvas.
- Establish the outer design size and Preview of the first 4,000 characters. Read full instructions →
Referenced files: 43 — file references are metadata, not package contents.
Publisher declarations from the archived package. These are separate from our research and the live service's terms.
Package observed Dec 2, 2026.
plugins_6abeb946def48191a2de61759cfd0d45
Download plugin data (JSON)Plugin details: freshly prepared. Prepared . Refreshed when plugin data changes or after 6 hours. Your account and Follow status are live.