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

@claw-link/clom-renderer

v1.0.5

Published

React component library for rendering CLOM protocol interactions

Readme

clom-renderer

React component library for rendering CLOM protocol interactions. Pass any JSON output from a CLOM agent directly to <ClomRenderer> and it renders the appropriate interactive UI.

npm version license

Overview

CLOM (ClawLink Local Orchestration Module) is an AI agent protocol that returns structured JSON describing interactive UI — forms, date pickers, OTP inputs, product grids, appointment slots, and more. clom-renderer sits on the client side: it receives that JSON and renders the right React component. No API calls, no configuration — just JSON in, UI out.

CLOM agent (server) → JSON output → [request/response layer] → <ClomRenderer data={...} />

Install

npm install clom-renderer

Usage

import { ClomRenderer } from 'clom-renderer';
import 'clom-renderer/style.css';

<ClomRenderer
  data={clomOutput}           // raw JSON from CLOM
  onSubmit={(text) => send(text)}  // called with user's response as plain text
  locked={false}              // true = already submitted, renders nothing
/>

Props

| Prop | Type | Description | |------|------|-------------| | data | ClomOutput | Raw CLOM JSON output, discriminated by interaction field | | onSubmit | (text: string) => void | Called when user submits — receives a formatted plain-text summary | | locked | boolean | When true, component renders nothing (prevents re-submission) |

Supported interaction types

| interaction | UI rendered | Submits | |---|---|---| | form | Multi-field form | Line-separated label: value | | address | Address form with prefill support | Line-separated label: value | | select | Single-choice button group | Selected option text | | multiselect | Checkbox list | Comma-separated selections | | date_picker | Date input with min/max | label: YYYY-MM-DD | | otp | Auto-advancing digit inputs with paste | label: 123456 | | rating | Star rating with hover labels | label: 4/5 (Great) | | file_upload | Drag-and-drop file zone with size validation | label: filename.pdf | | card_grid | Responsive product/service card grid | Selected: card title | | confirmation_card | Key-value summary + action buttons | Action label | | timeline | Read-only status timeline | (display only) | | slot_picker | Appointment slot grid | Selected slot: label (datetime) | | data_table | Read-only scrollable table | (display only) | | stepper | Multi-step form wizard with progress dots | All step fields combined |

Theming

The component uses CSS custom properties. When used inside a ClawLink app the host app's existing variables are picked up automatically. For standalone use, a dark theme is applied by default. Override any --clom-* variable on :root or a parent element:

:root {
  --clom-bg:         #ffffff;
  --clom-surface:    #f5f5f5;
  --clom-border:     #e0e0e0;
  --clom-text:       #111111;
  --clom-text-muted: #666666;
  --clom-accent:     #6366f1;
  --clom-accent2:    #8b5cf6;
}

TypeScript

Full types are exported:

import type {
  ClomOutput,
  InteractionSpec,
  FormField,
  InteractionCard,
  TimelineStep,
  StepperStep,
} from 'clom-renderer';

ClomOutput is InteractionSpec & Record<string, unknown> — CLOM can attach any custom metadata fields alongside the standard ones; they are ignored by the renderer.

Custom metadata

Since CLOM (generator) and clom-renderer (consumer) are designed together, you can freely add custom fields to the JSON for tracking or context purposes:

{
  "interaction": "form",
  "fields": [...],
  "_session_ref": "abc123",
  "_tenant_id": "xyz"
}

The renderer ignores unknown fields and only uses what it knows.

License

MIT — see LICENSE