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-angular

v1.0.0

Published

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

Downloads

18

Readme

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

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

Author: Dinesh Kumar Sridharan — https://github.com/Dinesh-kumar-sridharan

MIT License npm Angular TypeScript

Install

npm install @dinesh-kumar-sridharan/ui-renderer-angular
# peer deps (already present in any Angular 18 project)
npm install @angular/common @angular/core @angular/forms

Setup

The adapter uses standalone components — no NgModule required. Import UIRendererComponent directly in any standalone component's imports array.

import { UIRendererComponent } from '@dinesh-kumar-sridharan/ui-renderer-angular'

@Component({
  standalone: true,
  imports: [UIRendererComponent],
  template: `<ui-renderer [schema]="schema" (submitted)="onSubmit($event)" />`,
})
export class MyComponent { ... }

Usage

Form

import type { UISchema } from '@dinesh-kumar-sridharan/ui-renderer-angular'

schema: UISchema = {
  id: 'contact',
  version: '1.0.0',
  type: 'form',
  title: 'Contact Us',
  columns: 2,
  fields: [
    { id: 'name',    type: 'text',     label: 'Name',    required: true, colSpan: 1 },
    { id: 'email',   type: 'email',    label: 'Email',   required: true, colSpan: 1 },
    { id: 'message', type: 'textarea', label: 'Message', colSpan: 2 },
  ],
}
<ui-renderer [schema]="schema" (submitted)="onSubmit($event)" />

Table

<ui-renderer [schema]="tableSchema" (rowClick)="onRowClick($event)" />

Wizard (multi-step form)

<ui-renderer [schema]="wizardSchema" (submitted)="onSubmit($event)" />

Detail, Dashboard, List

<ui-renderer [schema]="detailSchema" [data]="record" />
<ui-renderer [schema]="dashboardSchema" />
<ui-renderer [schema]="listSchema" (itemClick)="onItemClick($event)" />

From raw JSON

<ui-renderer [schemaJson]="rawJsonString" (submitted)="onSubmit($event)" />

Inputs & outputs

| Input / Output | Type | Description | |----------------|------|-------------| | [schema] | UISchema \| unknown | Parsed or plain schema object | | [schemaJson] | string | Raw JSON string — parsed at render time | | [data] | Record<string, unknown> | Pre-populate form / detail fields | | [handlers] | Record<string, Function> | Named handler map referenced by schema actions | | (submitted) | Record<string, unknown> | Emitted on form / wizard submit | | (rowClick) | Record<string, unknown> | Emitted on table row click | | (itemClick) | Record<string, unknown> | Emitted on list item click |

Signals-based state

The Angular adapter is built on Angular 18 signals throughout — no RxJS, no BehaviorSubject. Internal state in each renderer uses signal() and computed(), so change detection is fully OnPush-compatible.

// FormStateService — available for injection within the form renderer's providers scope
import { FormStateService } from '@dinesh-kumar-sridharan/ui-renderer-angular'

// state.values()  → Record<string, unknown>  (computed signal)
// state.errors()  → Record<string, string>   (computed signal)
// state.isValid() → boolean                  (computed signal)

Conditional fields

Conditional visibility works the same across all adapters — driven by the schema, evaluated by the shared core engine:

fields: [
  {
    id: 'employmentType',
    type: 'select',
    label: 'Employment Type',
    options: [
      { value: 'employed', label: 'Employed' },
      { value: 'student',  label: 'Student'  },
    ],
  },
  {
    id: 'companyName',
    type: 'text',
    label: 'Company Name',
    showWhen: [{ field: 'employmentType', operator: 'equals', value: 'employed' }],
  },
]

Plugin registration

import { pluginRegistry } from '@dinesh-kumar-sridharan/ui-renderer-angular'
import { SignaturePadComponent } from './signature-pad.component'

// Call once at app startup (e.g. in main.ts or an APP_INITIALIZER)
pluginRegistry.register('signature-pad', SignaturePadComponent)

// In schema:
// { id: 'sig', type: 'custom', plugin: 'signature-pad', label: 'Signature' }

Custom plugin components must accept these Angular @Input parameters:

@Input() field!:  FieldSchema
@Input() value:   unknown = undefined
@Input() error?:  string
@Output() valueChange = new EventEmitter<unknown>()

Parse raw JSON manually

import { parseSchema, validateAIGeneratedSchema } from '@dinesh-kumar-sridharan/ui-renderer-angular'

const result = validateAIGeneratedSchema(rawJson)
if (result.valid) {
  const schema = parseSchema(JSON.parse(rawJson))
  // → bind to [schema] input
}

Links

License

MIT © Dinesh Kumar Sridharan