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

@zilqora/forms-engine

v2.0.1

Published

Signal-driven zoneless form engine for Angular Material (Angular 21+)

Readme

Forms Engine

A dynamic, zoneless Angular forms engine built with Angular 21+, Angular Material, and Signals.

Features

  • 🚀 Zoneless: Built entirely with Angular Signals.
  • 🎨 Material Design: Uses Angular Material components.
  • 🛠️ Dynamic Validation: Reactive validation updates via signals.
  • 📦 Rich Controls: Supports Text, Date, Select (with search), Password (strength & toggle), Checkbox, Radio.
  • Rule Engine: Dynamic visibility and requirement logic based on form state.

Installation

npm i @zilqora/forms-engine

Setup

1. Import Global Styles

Add the library's styles to your application's global styles (e.g., styles.scss):

/* Import Angular Material Prebuilt Theme (Required) */
@import '@angular/material/prebuilt-themes/azure-blue.css';

/* Import Forms Engine Styles */
@import '@zilqora/forms-engine/src/lib/styles/form-theme.scss';
@import '@zilqora/forms-engine/src/lib/styles/forms.scss';

2. Add Ionicons

The library uses Ionicons for specific UI elements. Add the following scripts to your index.html head section:

<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>

Usage

1. Register Providers

Ensure you provide zoneless change detection in your app.config.ts:

import { provideZonelessChangeDetection } from '@angular/core';

export const appConfig: ApplicationConfig = {
  providers: [
    provideZonelessChangeDetection(),
    // ...
  ]
};

2. Import Components

Import InputControl, CheckboxComponent, or RadioComponent into your standalone component.

import { InputControl, CheckboxComponent, RadioComponent } from '@zilqora/forms-engine';
import { ReactiveFormsModule, FormControl, FormGroup } from '@angular/forms';

@Component({
  standalone: true,
  imports: [
    ReactiveFormsModule,
    InputControl,
    CheckboxComponent,
    RadioComponent
  ],
  // ...
})
export class MyComponent {
  form = new FormGroup({
    name: new FormControl(''),
    agree: new FormControl(false),
    gender: new FormControl('')
  });

  // Access controls helper
  get controls() { return this.form.controls; }
}

3. Template Usage

Generic Input Control (zx-input-control)

Compatible with text, password, date, select.

Text Input

<zx-input-control 
    label="Full Name" 
    [control]="controls.name" 
    placeholder="Enter your name"
    [required]="true">
</zx-input-control>

Date Picker

<zx-input-control 
    type="date"
    label="Date of Birth" 
    [control]="controls.dob" 
    [minDate]="minDate()">
</zx-input-control>

Select with Search

<zx-input-control 
    type="select"
    label="Country" 
    [control]="controls.country" 
    [items]="countries()"
    key="code"
    keyName="name"
    [enableSelectSearch]="true">
</zx-input-control>

Checkbox (lib-checkbox)

<lib-checkbox 
    label="I agree to terms" 
    [control]="controls.agree">
</lib-checkbox>

Radio Group (lib-radio)

<lib-radio
    label="Gender"
    [control]="controls.gender"
    [options]="[{label: 'Male', value: 'M'}, {label: 'Female', value: 'F'}]">
</lib-radio>

[!IMPORTANT] The [control] input is required for all components. Failing to provide it will result in an error.

Rule Engine Service

The RuleEngineService allows you to define dynamic rules for visibility and required state based on form values.

import { RuleEngineService, VisibilityStore, RuleMap } from '@zilqora/forms-engine';

export class MyFormComponent {
  private ruleEngine = inject(RuleEngineService);
  public v = inject(VisibilityStore); // Inject store to use in template

  constructor() {
    const rules: RuleMap<any> = [
      {
        action: 'visible',
        fields: ['otherDetails'],
        condition: (val) => val.hasDetails === true
      }
    ];

    // Initialize engine
    this.ruleEngine.init(this.injector, this.form, this.formValueSignal, rules);
  }
}

In template:

@if (v.visible('otherDetails')()) {
  <zx-input-control label="Details" [control]="controls.otherDetails"></zx-input-control>
}