---
paginate: true
header: silverpoint · a tour
footer: silverpoint 0.11.2 · silverpointweb.vercel.app
---

<!-- _class: lead -->
<!-- _paginate: false -->

# silverpoint

Charts drawn like a Renaissance silverpoint

<!-- Welcome. This deck is itself a silverpoint deck: Marp Markdown drawn by SpDeck, with live charts in its fences. Press n to toggle these notes, o for the overview, f for full screen. -->

---

## The tour

1) What silverpoint is: grounds, ink and precision
2) The packages, and one chart in React, Vue and Angular
3) Reflex: the same library in Python
4) The 60 charts and the 38 UI components
5) Slide decks, from Marp Markdown
6) The MCP server and the skills
7) The embed engine and the hosts

<!-- Seven stops. Each list item is a fragment: the arrows reveal them one at a time. -->

---

## What silverpoint is

* A charting library whose visual language is historical drawing technique
* A middle-tone paper, a fine silver line, tone built from hatching, white for the live value
* Exact data, drawn ornament: the hand lives only in strokes that carry no data

```silverpoint
{"chart": "line-chart", "props": {"title": "Hits per hour"}, "height": 220}
```

<!-- Every encoded vertex is exact. Only frames, hatching and rules are inked by hand. -->

---

## Principles

* **Precision mode**: `mode="precision"` switches the inking off; it switches by itself under `prefers-contrast` and `forced-colors`
* **Deterministic**: no `Math.random` on the render path; the seed derives from the id
* **Accessible**: an accessible name, a hidden data table, keyboard exploration, announced readouts
* **Server-rendered**: React Server Components, `@vue/server-renderer`, `@angular/ssr`, no hydration mismatch
* **Pay for what you use**: one subpath per chart, a framework-free core under 45 kB

---

<!-- _ground: cyanotype -->

## The second ground: cyanotype

A contact print: a white, exact line on Prussian blue.

```silverpoint
{"chart": "area-chart", "props": {"title": "Visits over the year"}, "height": 340}
```

<!-- One directive moves this slide to cyanotype; its chart follows. Tone is hatch density on silverpoint, line weight on cyanotype. -->

---

<!-- _mode: precision -->

## Ink and precision

```silverpoint
{"chart": "radar-chart", "props": {"title": "The same chart, with exact strokes"}, "height": 400}
```

<!-- This slide sets the precision mode. No chart code changes between ink and precision. -->

---

## The packages: engine and adapters

| Package | Role |
|---|---|
| `@silverpoint/core` | The engine: geometry, scales, interaction; no DOM |
| `@silverpoint/grounds` | The grounds, their inkers and the stylesheets |
| `@silverpoint/react` | React 18.2+ and 19 |
| `@silverpoint/vue` | Vue 3.5 |
| `@silverpoint/angular` | Angular 21 and 22 |

<!-- Ten npm packages share one version. The adapters only translate the core's geometry, so the three render the same SVG, compared as trees in CI. -->

---

## The packages: optional

| Package | Role |
|---|---|
| `@silverpoint/marp` | Slide decks |
| `@silverpoint/embed` | Any chart, in any page or host |
| `@silverpoint/mcp` | The MCP server for agents |
| `@silverpoint/fonts` | EB Garamond, self-hosted |
| `@silverpoint/tailwind` | A Tailwind preset |

<!-- Install only what a page uses: one subpath per chart, tree-shakeable. -->

---

## React

```tsx
import '@silverpoint/fonts/fonts.css';
import '@silverpoint/grounds/styles.css';
import { LineChart } from '@silverpoint/react/line-chart';

export function Hits({ data }) {
  return <LineChart data={data} xKey="hour" valueKey="hits" title="Hits per hour" />;
}
```

* React 18.2+ and 19, React Server Components entry points
* The UI components on `/ui`, `SpTimeline` on `/timeline`, `SpDeck` on `/deck`

---

## Vue

```html
<script setup lang="ts">
import '@silverpoint/fonts/fonts.css';
import '@silverpoint/grounds/styles.css';
import { SpLineChart } from '@silverpoint/vue/line-chart';
</script>

<template>
  <SpLineChart :data="data" x-key="hour" value-key="hits" title="Hits per hour" />
</template>
```

* Vue 3.5, typed props and emits, `v-model` on every value
* Server rendering with `@vue/server-renderer`

---

## Angular

```ts
import { Component } from '@angular/core';
import { SpLineChart } from '@silverpoint/angular/line-chart';

@Component({
  selector: 'app-hits',
  imports: [SpLineChart],
  template: `<sp-line-chart [data]="data" xKey="hour" valueKey="hits" title="Hits per hour" />`,
})
export class Hits { data = HITS; }
```

* Angular 21 and 22: standalone, signal inputs, OnPush
* ControlValueAccessors on the form components, `@angular/ssr`

---

## Reflex: silverpoint in Python

* `reflex-silverpoint-react` wraps `@silverpoint/react` as a Reflex custom component
* The 60 charts, the Dashboard, the 38 UI components, the provider and the palettes
* The timeline and the slide decks (`sp_deck`), as Python builders with snake_case props
* Version 0.11.0 wraps `@silverpoint/react` 0.11.0

```bash
pip install reflex-silverpoint-react
```

<!-- The site you are on is built with it: a static Reflex export, no backend. -->

---

## Reflex: usage

```python
import reflex as rx
from reflex_silverpoint_react import donut_chart, line_chart

def index() -> rx.Component:
    return rx.hstack(
        line_chart(data=HITS, x_key="hour", value_key="hits", title="Hits"),
        donut_chart(data=BUDGET, name_key="name", value_key="value", title="Budget"),
    )
```

---

## Reflex: state and events

```python
class Sales(rx.State):
    ground: str = "silverpoint"

    @rx.event
    def toggle(self):
        self.ground = "cyanotype" if self.ground == "silverpoint" else "silverpoint"

line_chart(data=HITS, x_key="hour", value_key="hits", ground=Sales.ground)
sp_button("Switch ground", on_click=Sales.toggle, variant="primary")
```

---

## 60 charts in 9 families

| Family | Charts |
|---|---|
| Lines | line, step, sparkline rows, KPI card |
| Bars | bar, stacked, composed, waterfall, funnel, bullet… |
| Areas | area, range band, stream |
| Points & grids | scatter, bubble, heatmap, treemap, activity grid |
| Flows | sankey, chord ring |

---

## 60 charts in 9 families: the rest

| Family | Charts |
|---|---|
| Radial | donut, radar, gauge, meter, coxcomb, wind rose… |
| Distributions | histogram, ECDF, box plot, violin, ridgeline… |
| Hierarchies | waffle, marimekko, treemap, sunburst, tree… |
| Fields & networks | density bins, contour, Delaunay, network… |

---

<style scoped>
figure.sp-deck-chart { display: inline-block; vertical-align: top; margin: 0 16px 0 0; }
</style>

## The first catalog

```silverpoint
{"chart": "stacked-bar-chart", "props": {"title": "Visits by channel"}, "width": 600, "height": 420}
```

```silverpoint
{"chart": "donut-chart", "props": {"title": "Budget"}, "width": 480, "height": 420}
```

<!-- Bars, lines, areas, radial charts: the catalog of silverpoint 0.1 to 0.5. -->

---

<!-- _substrate: green -->

<style scoped>
figure.sp-deck-chart { display: inline-block; vertical-align: top; margin: 0 16px 0 0; }
</style>

## Distributions, whose statistics the core derives

```silverpoint
{"chart": "box-plot-chart", "props": {"title": "Response times"}, "width": 540, "height": 420}
```

```silverpoint
{"chart": "ridgeline-chart", "props": {"title": "By weekday"}, "width": 540, "height": 420}
```

<!-- The second catalog, silverpoint 0.6: histograms, box plots, violins, ridgelines and beeswarms. -->

---

<style scoped>
figure.sp-deck-chart { display: inline-block; vertical-align: top; margin: 0 16px 0 0; }
</style>

## Hierarchies and networks

```silverpoint
{"chart": "sunburst-chart", "props": {"title": "Budget, drilled down"}, "width": 500, "height": 420}
```

```silverpoint
{"chart": "network-chart", "props": {"title": "A seeded force layout"}, "width": 580, "height": 420}
```

<!-- Sunbursts and treemaps drill down under your control; the network is force-laid from a seed, so it is the same on server and client. -->

---

<!-- _ground: cyanotype -->

<style scoped>
figure.sp-deck-chart { display: inline-block; vertical-align: top; margin: 0 16px 0 0; }
</style>

## Fields and the radial family

```silverpoint
{"chart": "contour-chart", "props": {"title": "Contours"}, "width": 560, "height": 420}
```

```silverpoint
{"chart": "wind-rose", "props": {"title": "Wind"}, "width": 520, "height": 420}
```

---

## Components for the web: 38 UI components

* **17 form and display components**: button, input, checkbox, switch, slider, tabs, steps, card, tag, alert…
* **14 composed components**: table, pagination, statistic, descriptions, timeline list, collapse, result…
* **7 overlays** on the platform's own `<dialog>` and Popover API: modal, drawer, popover, tooltip, select, menu, toast
* A native control underneath every one: forms submit, the keyboard follows WAI-ARIA
* **6 palettes** named after drawing media: silverpoint, sanguine, sepia, iron gall, verdigris, indigo

<!-- Frames hand-drawn by each ground's own inker; precision mode switches the inking off for them too. Every control on this site is one of them. -->

---

<!-- _class: plate -->
<!-- _substrate: ochre -->

## Slide decks, from Marp Markdown

* `SpDeck` (`sp_deck` in Reflex) draws a Marp/Marpit deck in silverpoint
* Directives move a slide to another ground, substrate or mode
* List items are fragments; any other comment is a presenter note
* A `silverpoint` fence becomes a live chart inside a slide
* Server-rendered, keyboard and swipe, overview, full screen, print

<!-- This deck is one: the engine is @silverpoint/marp. The same Markdown runs in Marp CLI with silverpoint's theme or engine. -->

---

## Writing a deck

````markdown
---
paginate: true
---

<!-- _ground: cyanotype -->

## A chart on cyanotype

```silverpoint
{"chart": "bar-chart", "props": {"title": "Visits"}, "height": 400}
```
````

`npm install @silverpoint/marp` · `pip install reflex-silverpoint-react`

---

## Slide decks in code

```tsx
import { SpDeck } from '@silverpoint/react/deck';
import markdown from './talk.md?raw';

<SpDeck markdown={markdown} defaultPage={1} showNotes />
```

```python
from reflex_silverpoint_react import sp_deck

sp_deck(TALK, default_page=1, show_notes=True, palette="iron_gall", id="talk")
```

Vue: `<SpDeck :markdown="markdown" v-model:page="page" />` · Angular: `<sp-deck [markdown]="markdown" />`

---

## The MCP server

* A Model Context Protocol server that answers from the agent catalog
* Hosted at `silverpointweb.vercel.app/mcp`, or local with `npx @silverpoint/mcp`
* Read-only, no account: Claude, Claude Code, Cursor, VS Code

```bash
claude mcp add --transport http silverpoint https://silverpointweb.vercel.app/mcp
```

---

## The MCP server's 13 tools

| Tools | |
|---|---|
| `get_version` · `search_catalog` | The release and a search over everything |
| `list_charts` · `get_chart` · `recommend_chart` | Choosing a chart |
| `list_components` · `get_component` | The UI components |
| `generate_code` · `validate_props` · `check_palette` | Code for the four frameworks, checked |
| `render_chart` · `validate_deck` · `render_deck` | Canonical SVG renders and decks |

---

## Skills and plugins

* A **skill** is a folder of Markdown an agent loads on demand: a short `SKILL.md` and its references
* **silverpoint**: React, Vue and Angular; choosing a chart, components, grounds, palettes, dashboards, decks
* **reflex-silverpoint**: the Python builders, State patterns and events, the provider, decks in Reflex
* Each Claude Code plugin installs its skill and connects the hosted server in one step

```text
/plugin marketplace add ecrespo/silverpoint
/plugin install silverpoint@silverpoint
```

<!-- The site also publishes /llms.txt, /llms-full.txt and /agent-catalog.json, generated from the same catalog the MCP server reads. -->

---

<!-- _class: hatched -->

## The embed engine: `@silverpoint/embed`

* Any of the 60 charts from **one JSON spec**, outside React, Vue and Angular
* `renderToSVG` and `renderToHTML` with no DOM: on a server, in a workflow
* A framework-free client and the `<silverpoint-chart>` web component
* Four standalone files with `integrity.json`, served by you
* The host catalog with `specFromTable`, and a conformance kit

<!-- The same engine, the same picture: what a host draws is what the adapters draw. -->

---

## Embed in any page

```html
<script src="/vendor/silverpoint-embed.full.js" crossorigin="anonymous"></script>

<silverpoint-chart>
  <script type="application/json">
    { "chart": "donut-chart", "props": { "title": "Budget" } }
  </script>
</silverpoint-chart>
```

```ts
import { renderToSVG, renderToHTML } from '@silverpoint/embed';

const svg = renderToSVG({ chart: 'line-chart', props: { title: 'Hits' } });
const page = renderToHTML({ chart: 'line-chart' }, { as: 'document' });
```

---

## The hosts

| Kind | Host | How |
|---|---|---|
| BI | Power BI · Tableau · Apache Superset | a custom visual · viz extensions · plugins on the React adapter |
| Workflows | n8n · KNIME | a community node · view nodes through the Python package |
| CMS | Plone Volto · Plone Classic UI | a block · a Chart content type |
| Python | Python · Flask · Django | `pip install silverpoint`, `[flask]`, `[django]` |
| Notebooks | Jupyter · Databricks notebooks | a chart as a cell output, `displayHTML` |

<!-- Twelve hosts, every one released. Each has a guide on /docs/hosts. -->

---

## From Python, without a framework

```python
import silverpoint  # df: a pandas DataFrame with team and wins

chart = silverpoint.bar_chart(df, x="team", value="wins", orientation="rows", title="Wins")

chart.to_html()   # a complete, self-contained page
chart.to_svg()    # the library's renderToSVG bytes
```

```silverpoint
{"chart": "bar-chart", "props": {"title": "Wins", "orientation": "rows"}, "height": 150}
```

---

<!-- _class: lead invert -->

# Thank you

silverpointweb.vercel.app · github.com/ecrespo/silverpoint

`npm install @silverpoint/react` · `pip install silverpoint`

<!-- Made by Ernesto Crespo, under the MIT license. -->
