Scan your whole stack
From OX Research Newsroom
Are you using @dashspec/renderer?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.69
@dashspec/renderer was last scanned on 29 Nov 2026 at version 0.1.69. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.69 LATEST | 29 Nov 2026 | No rules fired |
| 0.1.68 | 27 Nov 2026 | No rules fired |
| 0.1.67 | 27 Nov 2026 | No rules fired |
| 0.1.66 | 27 Nov 2026 | Not shown |
| 0.1.65 | 27 Nov 2026 | Not shown |
Findings for v0.1.69. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.69; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Render complete, interactive dashboards from JSON, in any React app, with any design system.
You describe a dashboard once as a JSON document (layout, filters, data sources, widgets,
what happens on click), and <DashboardRenderer> draws it. A new dashboard, or a new
version of one, is a new document — not new frontend code and not a redeploy.
FlowMap), layout
containers and small building blocks, nestable at any depth.DashSpecProvider.Works with React 18 and 19, server rendering and the Next.js App Router.
DashSpecProvidernpm install @dashspec/renderer react react-dom zod
# or: pnpm add / yarn add
react and react-dom (18 or 19) and zod (3.25+, or 4) are peer dependencies: you already
have React, and you use zod to describe your own widgets' props. The package reads zod's v3 API through
zod/v3, which zod 3.25+ and zod 4 both ship, so write widget schemas with import { z } from "zod/v3".
A dashboard document:
{
"apiVersion": "dashspec.dev/v2",
"kind": "Dashboard",
"metadata": { "key": "sales", "name": "Sales" },
"spec": {
"variables": [{ "name": "region", "kind": "Select", "label": "Region", "options": ["North", "South"] }],
"datasources": {
"orders": {
"type": "static",
"data": [
{ "region": "North", "month": "Jan", "revenue": 120 },
{ "region": "North", "month": "Feb", "revenue": 150 },
{ "region": "South", "month": "Jan", "revenue": 90 },
{ "region": "South", "month": "Feb", "revenue": 110 }
]
},
"inRegion": { "from": "orders", "transform": [{ "filter": "!filters.region || region == filters.region" }] },
"total": { "from": "inRegion", "transform": [{ "sum": "revenue" }] }
},
"panels": {
"revenue": { "kind": "Kpi", "spec": { "title": "Revenue", "data": { "source": "total", "path": "revenue" }, "unit": "k$" } },
"byMonth": { "kind": "BarChart", "spec": { "title": "By month", "data": { "source": "inRegion" }, "x": "month", "y": "revenue" } }
},
"layouts": [
{ "breakpoint": "desktop", "items": [
{ "panel": "revenue", "x": 0, "y": 0, "w": 4, "h": 5 },
{ "panel": "byMonth", "x": 4, "y": 0, "w": 8, "h": 8 }
] },
{ "breakpoint": "mobile", "auto": "flow" }
]
}
}
Render it:
import { DashboardRenderer } from "@dashspec/renderer";
import sales from "./sales.json";
export function SalesPage() {
return <DashboardRenderer document={sales} />;
}
That's a working dashboard: a region filter, a KPI and a chart that follow the filter, and
a phone layout. The document prop takes the dashboard JSON as an object or JSON string — from a file,
your API or a database. Older (v1) documents are upgraded automatically.
Next: the getting-started guide and the complete JSON format.
DashSpecProviderRegister what your dashboards may use once, at the top of your app. Every
DashboardRenderer inside uses it, and documents refer to it by name:
import { DashSpecProvider, createTheme } from "@dashspec/renderer";
const themes = {
"acme-light": createTheme({ name: "acme-light", mode: "light", colors: { primary: "#0b5fff" } }),
"acme-dark": createTheme({ name: "acme-dark", mode: "dark", colors: { primary: "#4d8dff" } }),
};
export function Root({ designSystem }: { designSystem: "default" | "neutral" | "forge" }) {
return (
<DashSpecProvider
designSystem={designSystem} // built in; change at runtime, no JSON change
designSystems={[acme]} // components "acme.*", filter controls, theme
widgets={[furnaceGauge]} // more components: "kind": "acme.FurnaceGauge"
themes={themes} // "display": { "theme": "acme-dark" }
actions={{ "acme.notify": (a) => notify(a) }} // "do": "acme.notify"
getToken={() => auth.currentToken()} // connections with "token": { "from": "host" }
trustedOrigins={["https://api.example.com"]}
onError={(e) => log.warn(e.code, e.message)}
>
<App />
</DashSpecProvider>
);
}
A renderer's own props win over the provider's. Providers nest: lists (designSystems,
widgets, datasourceTypes, trustedOrigins) are combined, maps (ui, aliases,
actions, functions, themes, context, data, connections) are merged, and any other
setting comes from the innermost place that sets it. Every setting is listed in the
API reference.
designSystem selects the built-in "default", "neutral", or "forge" look for every built-in widget. It is
reactive, so a customer-facing switch only needs to update that prop. An explicit theme, or the theme of a custom
entry in designSystems, overrides the built-in preset; ui, widgets, and aliases remain available for deeper
host customization.
Every document is migrated and validated before it renders. Unknown fields and values are
warnings with "did you mean" hints, so a document from a newer version still opens;
real errors show an "invalid dashboard" message instead of a broken page. JSON syntax errors include the line and column when available. Use onProblems to receive errors and warnings, showWarnings to display warnings with their paths, and onError to receive the invalid code for an invalid document.
Validate wherever you save documents (an API, CI, an AI tool) — @dashspec/renderer/core
has no React and runs anywhere:
import { loadDocument } from "@dashspec/renderer/core";
const result = loadDocument(json);
if (result.status === "invalid") {
for (const p of result.problems) console.log(p.severity, p.path, p.code, p.message);
}
To check widget props too, pass your widgets:
loadDocument(json, { widgets: widgetChecks(createWidgetRegistry(builtInWidgets, myWidgets)) }).
For editors, @dashspec/renderer/schema.json is the JSON Schema ("$schema" gives
autocompletion).
For AI tools and the planned MCP integration, the same package's /generation entry exports
builtInDashboardCatalog, createDashboardCatalog() and buildDashboardGenerationPrompt() as a model-neutral
capability contract without adding AI code to the browser renderer. See AI generation.
Documents declare connections and datasources; your app supplies credentials:
"connections": {
"api": { "baseUrl": { "app.example.com": "https://api.example.com/v1/", "*": "/api/v1/" },
"auth": { "type": "bearer", "token": { "from": "host" } } }
},
"datasources": {
"orders": { "type": "http", "connection": "api", "path": "/orders",
"query": { "region": "${filters.region}" }, "refresh": { "every": "60s" } }
}
getToken(connectionName) returns the current token; it is read on every request and
refreshed on a 401 (refreshToken). Tokens never go in the document. ${…} templates fill
values from filters, state and data, and a datasource reloads when what it reads changes.
SSE and WebSocket sources reconnect automatically. See docs/data.md.
Use any React component as a widget:
import { wrapComponent, defineDesignSystem } from "@dashspec/renderer";
import { z } from "zod/v3";
const DataGrid = wrapComponent(AcmeDataGrid, {
kind: "acme.DataGrid", // "kind" in the JSON
meta: { label: "Data grid" },
schema: z.object({ dense: z.boolean().optional() }),
events: { onRowActivate: "rowClick" }, // component callback → DashSpec event
});
export const acme = defineDesignSystem({
name: "Acme",
widgets: [DataGrid],
ui: { Select: AcmeSelect, DateRange: AcmeDateRange }, // DashSpec's filter bar uses your controls
theme: acmeTheme,
});
Widgets written with defineWidget get the data, the dashboard state (store), events
(emit) and nested children (renderSlot). aliases swaps a built-in for yours in every
document ({ "Table": "acme.DataGrid" }). See docs/widgets.md and
docs/design-systems.md.
The default theme is the NowPurchase / MetalCloud dashboard look (load the Urbanist and Oxanium fonts in your app); neutralTheme is a neutral alternative.
Everything is styled from design tokens exposed as --ds-* CSS variables. Build a theme
with createTheme (a short form of brand colours, font, radius and density, or full
overrides per light and dark mode), and let documents pick a registered theme by name with
"display": { "theme": "acme-dark" }. Every theme has light and dark colours; the host picks with colorMode.
The parts every widget shares (titles, labels, values, tiles, tables, legends…) are restyled with typed values in
scale.parts, without CSS or class names, and token.color("text.secondary") refers to the active theme's values.
See docs/theming.md.
Bring your own pieces through ui: icons (ui.icons), a whole filter bar (ui.FilterBar) or your app's drawer
(ui.Drawer). See docs/design-systems.md.
Each dashboard has one state tree (filters, widget selections and pages, view, data…). Documents react to events with actions:
"on": { "rowClick": [{ "do": "setVariable", "name": "order", "value": "${event.datum.id}" },
{ "do": "openModal", "modal": "orderDetails" }] }
Your app can follow and drive the same state:
<DashboardRenderer
id="sales"
ref={handleRef} // getState, setVariable, refresh, run, exportData…
document={doc}
variables={{ region: selectedRegion }} // controlled filters
onVariableChange={(name, value) => save(name, value)}
/>
// anywhere else in the app:
const region = useDashboardState("sales", (t) => t.filters.region);
const { setVariable } = useDashboardActions("sales");
All 28 actions, watch, host actions and scripts: docs/state-and-events.md.
The React entry is marked "use client", so it works in the Next.js App Router as is.
Load and validate documents on the server with @dashspec/renderer/core, render them in a
client component. Theme and URL state hydrate without mismatches. See
docs/server-rendering.md.
Dashboard documents are often written by people other than the app's developers (other teams, end users through a builder, AI tools), so the renderer treats them as untrusted:
http(s), mailto and same-site paths — checked after templates are filled;getToken); tokens kept in browser storage are sent only to
origins you trust (trustedOrigins);scripts="sandbox");Details, and what your app should do (Content Security Policy for the sandbox, etc.): docs/security.md. To report a vulnerability, see SECURITY.md.
| Import | Contains | React |
|---|---|---|
@dashspec/renderer |
DashboardRenderer, DashSpecProvider, widgets, theming, design systems, state hooks — and everything in /core |
yes ("use client") |
@dashspec/renderer/core |
loadDocument, validateDocument, schemas, migration, expressions, HTTP client, transforms, safeLink, RENDERER_VERSION, satisfies |
no |
@dashspec/renderer/sandbox |
createSandboxRunner (loaded automatically when a document has code) |
no |
@dashspec/renderer/schema.json |
JSON Schema of the document | — |
Two names differ between the main entry and /core: in the main entry Grid is the React
grid and StatusTone the theme type; in /core they are the document schemas.
The guides also ship inside the package (node_modules/@dashspec/renderer/docs).
/core.dashspec.dev/v2 only gains optional additions, so saved documents keep working; a
document can state the renderer it needs with "spec": { "requires": { "renderer": ">=0.2.0" } }.Issues and pull requests are welcome — see CONTRIBUTING.md. Please follow the code of conduct.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.