Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@dashspec/renderer

Latest version: v0.1.69

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: vaskar-nowpurchase
68 Versions
11.3K Downloads

Scan summary

@dashspec/renderer was last scanned on 29 Nov 2026 at version 0.1.69. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 68 versions; the latest 5 were published within 3 days (27–29 Nov 2026).
  • Findings: No rules fired in version 0.1.69.
  • Downloads: 11,346 downloads.

Versions

68 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.1.69

Findings

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.

README

The publisher’s own README, as collected from the registry.

@dashspec/renderer

npm CI license

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.

  • 43 built-in widgets: KPIs, charts, tables, tiles, forms, status, a process-flow map (FlowMap), layout containers and small building blocks, nestable at any depth.
  • Data built in: REST, GraphQL, SSE and WebSocket sources, auth and token refresh, caching, polling, transforms.
  • Interactive: global filters, cross-filtering, drill-down, pop-ups, 28 actions, shared state, URL sync configured in the document (guide).
  • Yours to style and extend: plug in your design system's components, controls and themes; register your own widgets and actions once with DashSpecProvider.
  • Safe with untrusted documents: links, requests, credentials and custom code are checked and sandboxed.
  • Stable format: documents written today keep rendering the same way; newer documents degrade gracefully on older renderers.

Works with React 18 and 19, server rendering and the Next.js App Router.

Contents

  • Install
  • Quick start
  • Set things up once: DashSpecProvider
  • Loading and validating documents
  • Data and authentication
  • Your own widgets and design system
  • Theming
  • State, events and actions
  • Server rendering and Next.js
  • Security
  • Entry points
  • Documentation and examples
  • Compatibility and versioning

Install

npm 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".

Quick start

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.

Set things up once: DashSpecProvider

Register 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.

Loading and validating documents

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.

Data and authentication

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.

Your own widgets and design system

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.

Theming

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.

State, events and actions

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.

Server rendering and Next.js

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.

Security

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:

  • links open only http(s), mailto and same-site paths — checked after templates are filled;
  • tokens come from your app (getToken); tokens kept in browser storage are sent only to origins you trust (trustedOrigins);
  • values placed in request paths are URL-encoded;
  • custom code in documents runs in a QuickJS sandbox with time and memory limits (the default scripts="sandbox");
  • names from a document never reach object prototypes; values inserted into Markdown are escaped.

Details, and what your app should do (Content Security Policy for the sandbox, etc.): docs/security.md. To report a vulnerability, see SECURITY.md.

Entry points

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.

Documentation and examples

  • Getting started
  • JSON format — every part of a document
  • Widgets — built-ins, nesting, writing your own
  • Design systems · Theming
  • Data and connections · State, events and actions
  • Server rendering · Security
  • API reference
  • Examples: ready-to-use dashboard JSON, code snippets, a Vite app and a Next.js setup

The guides also ship inside the package (node_modules/@dashspec/renderer/docs).

Compatibility and versioning

  • React 18 and 19 (both tested in CI); modern browsers; Node 18+ for /core.
  • The package follows semantic versioning. The dashboard format 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" } }.
  • What changed in each version: CHANGELOG.md.

Contributing

Issues and pull requests are welcome — see CONTRIBUTING.md. Please follow the code of conduct.

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @dashspec/renderer

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229