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

@noetic-tools/openui

v2.1.0

Published

Generative UI for Noetic agents via the OpenUI standard: the openUi() output codec (streaming OpenUI Lang parser), the openUiSurface() context layer (server-authoritative UI state), the typed fragment() builder for tool-authored UI, and an OpenUI-speaking

Downloads

847

Readme

@noetic-tools/openui

Generative UI for Noetic agents via the OpenUI standard.

Instead of answering with a text blob, an agent answers with a user interface built from components you registered. This package provides:

  • The openUi() output codec — plug a component library into step.llm as a streaming output dialect; the model emits OpenUI Lang and the step returns a materialized UiDocument.
  • The openUiSurface() context layer — the server-authoritative owner of UI state: durable, resumable, visible to the model via recall, and conditionable by the step graph. The client renderer is a projection of this layer, never the other way around.
  • The typed fragment() builder — tool-authored UI, so a tool's calls and results carry their own render fragments.
  • ui.* until-predicates (ui.submitted, ui.interacted, ui.toAssistant) for interaction loops built from plain composition.
  • The transport at the ./server subpath — serveOpenUi(), a web-standard fetch handler that speaks the OpenUI protocol over an AgentHarness.

It depends only on @noetic-tools/context and @noetic-tools/types — never on @noetic-tools/core. Core sees two dialect-agnostic contracts (OutputCodec and UiFragment) and resolves the OpenUI implementation from this package.

Install

npm install @noetic-tools/openui

Quick example

import { AgentHarness, type ContextData, step } from '@noetic-tools/core';
import { createLibrary, defineComponent, openUi } from '@noetic-tools/openui';
import { z } from 'zod';

const library = createLibrary([
  defineComponent({ name: 'Card', props: z.object({ title: z.string(), children: z.array(z.unknown()) }) }),
  defineComponent({ name: 'Text', props: z.object({ value: z.string() }) }),
]);

const dashboard = step.llm<ContextData, string, unknown>({
  id: 'dashboard',
  model: 'claude-sonnet-5',
  output: openUi(library), // the model authors your UI instead of prose
});

const harness = new AgentHarness({ name: 'ui-agent', initialStep: dashboard, params: {} });
const ctx = harness.createContext();
const doc = await harness.run(dashboard, 'Show a welcome card', ctx);

See the Generative UI docs for the surface layer, tool-authored fragments, and the transport.

License

Apache-2.0