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

clamslam

v1.0.1

Published

XML-first language for complex agentic Web Component UI development

Readme

Clam Slam v0.5

Clam Slam is an XML-first language prototype for complex agentic UI development with modern Web Components.

This package is now arranged as a browser-first npm module instead of a one-file demo. The root index.html imports the demo application from src/, and the clamslam-node-editor implementation is split into reusable source modules.

Run

No npm dependencies are required.

npm run demo

Then open either:

http://localhost:8080/
http://localhost:8080/demos/node-graph/

Serving the directory is preferred because XML snippets are loaded from src/language/examples/ with fetch().

Module Entry Points

import { defineNodeEditorElements } from './src/libraries/clamslam-node-editor/index.js';

// or, as a package export after npm linking/publishing:
import { defineNodeEditorElements } from 'clamslam/clamslam-node-editor';

Primary exports:

src/index.js                         package root
src/core/index.js                    utility/core helpers
src/runtime/index.js                 diagnostics and frame scheduling helpers
src/libraries/clamslam-node-editor/index.js   clamslam-node-editor Web Components and luxury-tag boundary

v0.5 Highlight: Development Probes

v0.5 adds development probes:

<dev>
  <probes>
    <probe/>
    <layout-probe/>
  </probes>
</dev>

A probe is an application-layer diagnostic. It measures DOM reality and reports semantic UI failures, such as stale ghost edges or cables not starting at the measured center of a port dot.

Directory Layout

src/
  index.js
  core/
    dom.js
    index.js
  runtime/
    diagnostics.js
    frames.js
    index.js
  libraries/
    clamslam-node-editor/
      constants.js
      index.js
      node-card.js
      node-graph.js
  demo/
    demo-data.js
    demo-snippets.js
    node-graph-app.js
    node-graph.css
  language/
    examples/
      node-drag.interaction.xml
      port-connect.interaction.xml
      node-graph.view.xml
      node-graph.clamslam.xml
      node-graph.dev.probes.xml

demos/node-graph/
  index.html

docs/spec/
  CLAM_SLAM_XML_V0_5.md

docs/agent/
  SKILL.md

test/fixtures/
  basic-node-graph.fixture.xml

Current Demo Features

  • Interactive node graph
  • Node drag
  • Port connection with ghost edge
  • Pan and zoom
  • Snap-to-grid
  • Readonly toggle
  • Live development probes
  • Probe bug injection
  • Tiny behavior test runner
  • XML snippets loaded from real files, not inline script blocks

Check

npm run check