Skip to content

dsh-structured-render

Verified

@ch4acko3/dsh-structured-render · v0.1.2 · MIT · Web UI

Safe expandable structured data rendering service for DeepSeek Harness Web plugins

Install

dsh plugin add @ch4acko3/dsh-structured-render

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Tags

Readme

@ch4acko3/dsh-structured-render

Safe, theme-aware structured data rendering for DeepSeek Harness Web plugins.

export const inject = ['structuredRenderer']

export function apply(ctx) {
  const result = ctx.structuredRenderer.render({
    label: 'response',
    value: { ready: true, items: [{ id: 1 }, { id: 2 }] },
    expandedDepth: 2,
  })

  console.log(result.html)
  console.log(result.nodeCount)
}

The service accepts JSON-compatible values, escapes labels and strings, and uses native <details> elements for keyboard-accessible disclosure. expandedDepth controls how many levels begin open and defaults to 1.