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

@dinesh-kumar-sridharan/ui-renderer-react

v1.0.0

Published

React adapter for the Universal UI Renderer — pass one schema, get complete React UI.

Readme

@dinesh-kumar-sridharan/ui-renderer-react

React adapter for the schema-driven Universal UI Renderer.
Pass ONE JSON schema — get a complete, production-ready React component.

MIT License npm TypeScript

Install

npm install @dinesh-kumar-sridharan/ui-renderer-react
# peer deps
npm install react react-dom

Usage

import { UIRenderer } from '@dinesh-kumar-sridharan/ui-renderer-react'

<UIRenderer
  schema={schema}
  onSubmit={(values) => console.log(values)}
/>

Props

| Prop | Type | Description | |------|------|-------------| | schema | UISchema | Parsed schema object (use parseSchema() for raw JSON) | | data | Record<string, unknown>[] | Row data for table/list schemas | | initialValues | Record<string, unknown> | Pre-fill form / detail values | | onSubmit | (values) => void \| Promise<void> | Form/wizard submit handler | | onChange | (values) => void | Called on every field change | | onSelectionChange | (keys: string[]) => void | Table row selection |

Schema types

// Form
<UIRenderer schema={{ type: 'form', fields: [...] }} onSubmit={fn} />

// Table
<UIRenderer schema={{ type: 'table', columns: [...] }} data={rows} />

// Dashboard
<UIRenderer schema={{ type: 'dashboard', widgets: [...] }} />

// Wizard
<UIRenderer schema={{ type: 'wizard', steps: [...] }} onSubmit={fn} />

// Detail (read-only)
<UIRenderer schema={{ type: 'detail', sections: [...] }} initialValues={record} />

// List
<UIRenderer schema={{ type: 'list', filters: [...] }} data={items} />

Parse raw JSON

import { parseSchema } from '@dinesh-kumar-sridharan/ui-renderer-react'

const schema = parseSchema(JSON.parse(jsonString))

Plugin registration

import { UIRenderer } from '@dinesh-kumar-sridharan/ui-renderer-react'

// Register once at app startup
UIRenderer.register('signature-pad', SignaturePadComponent)
UIRenderer.register('rich-text-editor', TiptapEditor)

// Use in schema
// { "id": "sig", "type": "custom", "plugin": "signature-pad" }

Custom components receive these props:

interface PluginFieldProps {
  field:    FieldSchema
  value:    unknown
  onChange: (value: unknown) => void
  onBlur:   () => void
  hasError: boolean
}

AI integration

import {
  AISchemaRenderer,
  AISchemaPlayground,
  useAISchema,
} from '@dinesh-kumar-sridharan/ui-renderer-react'

// Safe renderer for raw LLM output
<AISchemaRenderer json={rawJsonFromLLM} onSubmit={fn} />

// Interactive playground — JSON editor + live preview
<AISchemaPlayground />

// Hook — validate + parse pipeline
const { schema, errors, warnings, status } = useAISchema(rawJson)

Validate AI-generated schemas

import { validateAIGeneratedSchema } from '@dinesh-kumar-sridharan/ui-renderer-react'

const result = validateAIGeneratedSchema(rawJson)
// result.valid    → boolean
// result.errors   → { path, code, message }[]
// result.warnings → { path, code, message }[]

Links

License

MIT © Dinesh Kumar Sridharan