memorax-ai/dsh-render-engine--packages-structured-render ↗★ 1
@ch4acko3/dsh-structured-render
Safe expandable structured data rendering service for DeepSeek Harness Web plugins 适合需要在Web界面中展示复杂、可展开折叠的JSON或对象数据的开发者。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:memorax-ai/dsh-render-engine#9582bf138d3a6d7381a84359a4a0b878a1ea8952&path:packages/structured-renderREADME
Read the full 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 `` elements for keyboard-accessible disclosure. expandedDepth controls how many levels begin open and defaults to 1.