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

@signal-form-kit/core

v0.1.3

Published

Schema-driven forms for Angular 21 Signal Forms — nested groups, arrays, conditional validation, custom fields, and a visual builder.

Downloads

382

Readme

@signal-form-kit/core

npm version license

Schema-driven forms for Angular 21 Signal Forms — nested groups, dynamic arrays, 24 field types, conditional validation, custom field registry, and a visual builder.

Requirements: Angular 21+, standalone components, Signal Forms (@angular/forms ^21).
Status: Early release (0.1.x) — APIs may change. Feedback welcome via issues.

Why use this

  • Schema in, form out — JSON or TypeScript, no repetitive FormGroup boilerplate
  • Nested groups & arrays — address blocks, repeatable contacts, minItems / maxItems
  • 24 built-in field types — text, email, select, checkbox, date, file, and more
  • Conditional fieldshideWhen / hideIf with validators that only apply when visible
  • Custom field registry — plug in your own renderers (e.g. star rating)
  • Visual builder<sf-form-builder> palette, inspector, live preview, JSON export

Install

npm install @signal-form-kit/core

Peer dependencies

Your app must already include Angular 21:

npm install @angular/core@^21 @angular/common@^21 @angular/forms@^21

| Peer | Version | |------|---------| | @angular/core | ^21.0.0 | | @angular/common | ^21.0.0 | | @angular/forms | ^21.0.0 |

Quick start

1. Register providers in app.config.ts:

import { ApplicationConfig } from '@angular/core';
import { provideSignalFormKit } from '@signal-form-kit/core';

export const appConfig: ApplicationConfig = {
  providers: [provideSignalFormKit()],
};

2. Define a schema and render the form:

import { Component } from '@angular/core';
import { defineFormSchema, JsonFormComponent } from '@signal-form-kit/core';

interface ContactForm {
  name: string;
  email: string;
  message: string;
}

const schema = defineFormSchema<ContactForm>({
  title: 'Contact Us',
  submitLabel: 'Send',
  fields: [
    { key: 'name', label: 'Name', type: 'text', validation: { required: true } },
    { key: 'email', label: 'Email', type: 'email', validation: { required: true, email: true } },
    { key: 'message', label: 'Message', type: 'textarea', validation: { required: true } },
  ],
});

@Component({
  selector: 'app-contact',
  standalone: true,
  imports: [JsonFormComponent],
  template: `<sf-json-form [schema]="schema" (formSubmit)="onSubmit($event)" />`,
})
export class ContactComponent {
  schema = schema;

  onSubmit(value: ContactForm) {
    console.log(value);
  }
}

Nested groups & conditional fields

interface AccountForm {
  accountType: 'personal' | 'corporate';
  taxId: string;
  name: string;
}

const schema = defineFormSchema<AccountForm>({
  fields: [
    {
      key: 'accountType',
      label: 'Account Type',
      type: 'select',
      defaultValue: 'personal',
      options: [
        { label: 'Personal', value: 'personal' },
        { label: 'Corporate', value: 'corporate' },
      ],
    },
    {
      key: 'taxId',
      label: 'Tax ID',
      type: 'text',
      hideWhen: { field: 'accountType', notEquals: 'corporate' },
      validation: { required: true },
    },
    { key: 'name', label: 'Name', type: 'text', validation: { required: true } },
  ],
});
// Nested group
{
  key: 'address',
  type: 'group',
  fields: [
    { key: 'street', label: 'Street', type: 'text', validation: { required: true } },
    { key: 'city', label: 'City', type: 'text', validation: { required: true } },
  ],
}

Links

License

MIT