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

n8n-nodes-openui

v0.2.1

Published

n8n nodes for OpenUI generative UI integration

Downloads

474

Readme

n8n-nodes-openui

n8n community nodes for OpenUI generative UI integration. Enables AI agents to output structured UI using OpenUI Lang instead of fragile JSON.

Installation

  1. Open n8n
  2. Go to Settings > Community Nodes
  3. Enter n8n-nodes-openui
  4. Click Install

Nodes

OpenUI Prompt Generator

Generates system prompts with OpenUI Lang component library for AI agents.

Inputs:

  • componentLibrary (JSON, optional) - Custom component definitions. Uses built-in defaults if empty.
  • additionalInstructions (string, optional) - Extra instructions to include.
  • outputFormat (options) - systemPrompt or json.

Output:

{
  "systemPrompt": "You are a helpful assistant...",
  "componentLibrary": [...]
}

OpenUI Parser

Parses OpenUI Lang output from AI into structured data for rendering.

Inputs:

  • inputField (string) - Field containing AI output (default: text).
  • outputFormat (options) - openui, legacy, or both.
  • fallbackToLegacy (boolean) - Try parsing as JSON if not OpenUI Lang.

Output:

{
  "openui": { "type": "Root", "props": {...}, "children": [...] },
  "legacy": { "products": [...], "booking": {...} },
  "format": "openui",
  "error": null
}

Example Workflow

Webhook
  ↓
OpenUI Prompt Generator (generates system prompt)
  ↓
AI Agent (uses system prompt, outputs OpenUI Lang)
  ↓
OpenUI Parser (converts to structured data)
  ↓
Respond to Webhook

Component Library

Built-in components:

| Component | Description | Required Props | |-----------|-------------|----------------| | ProductCard | Product display | title, image, price, handle | | BookingCard | Calendar booking | summary, start, end, status | | EventCard | Calendar event | summary, start, end, status | | TaskCard | Task item | title | | OrderCard | Order summary | id, name, total_price, created_at, status | | Stack | Layout container | children | | Text | Text content | content | | Card | Generic card | children |

Custom Components

Pass custom component definitions to the Prompt Generator:

[
  {
    "name": "InvoiceCard",
    "description": "Displays an invoice",
    "props": [
      { "name": "id", "type": "string", "required": true },
      { "name": "total", "type": "string", "required": true }
    ],
    "example": "invoice = InvoiceCard(\"INV-001\", \"$500\")"
  }
]

Why OpenUI Lang?

| Feature | JSON | OpenUI Lang | |---------|------|-------------| | Token usage | 100% | ~50% | | Streaming | Wait for complete | Progressive | | Malformed output | Breaks everything | Drops invalid lines | | Model adherence | Inconsistent | Better (simpler syntax) |

Development

npm install
npm run build
npm run dev  # watch mode

License

MIT