npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ice-render-dsl

v0.4.0

Published

A JSON-first DSL layer for AI agents to drive ice-render.

Readme

ice-render-dsl

JSON-first core DSL for AI agents to drive ice-render primitives without learning the imperative canvas API.

The package contains:

  • generic node/edge DSL types and schema
  • structural validator
  • compiler from DSL to core component props
  • browser runtime that renders DSL through ice-render
  • browser example with a JSON editor

Install

npm install
npm run build

Browser usage

<canvas id="canvas" width="1200" height="800"></canvas>

<script src="node_modules/ice-render/dist/index.umd.js"></script>
<script src="dist/index.umd.js"></script>
<script>
  const dsl = {
    schemaVersion: 1,
    nodes: [
      { id: 'box1', type: 'rect', left: 120, top: 120 },
      { id: 'box2', type: 'circle', left: 480, top: 100 },
    ],
    edges: [{ source: 'box1', target: 'box2', routeType: 'orthogonal' }],
  };

  const { ice } = ICEDSL.renderDsl('canvas', dsl);
</script>

Node/ESM usage

import { validateDsl, compileDsl, renderDsl } from 'ice-render-dsl';

API

  • validateDsl(dsl)
  • compileDsl(dsl) / buildOrchestrationPlan(dsl)
  • renderDsl(canvasOrId, dsl)
  • DSL_SCHEMA_VERSION
  • DSL_DIAGNOSTIC_CODES / ORCHESTRATION_CODES

Example

Build first, then open in a browser:

  • examples/core-dsl.html —— 最小节点/连线示例;
  • examples/orchestration.html —— 编排:用 JSON 声明错峰入场,并带播放 / 暂停 / 继续 / 重播按钮。

Agent discovery

Agents can use this project through:

  1. npm package exports
  2. AGENTS.md
  3. skills/ice-render-dsl/SKILL.md
  4. prompts/agent-prompt.md —— 短版系统提示词(输出契约 + 自检清单)
  5. optional MCP wrapper in a separate package

The core runtime does not require MCP.

文档里的 JSON 例子由 tests/skill-examples.test.ts 自动校验:示例一旦不合法(字段写错、节点 id 悬空、 编排 targets 指错),测试就会红 —— 保证 Agent 照抄的是"能跑的文档"。