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

ngx-form-lib

v0.3.0

Published

Dynamic form library for Angular 18 with Material 3 support. Create complex reactive forms easily using JSON configuration with modern Angular 18 control flow syntax.

Readme

alt text

Create dynamic forms in Angular quickly and effortlessly

Quality Gate Status

This package simplifies Angular form creation with full Angular reactive capabilities by offering a straightforward class configuration. It leverages Angular Material, utilizing material themes for enhanced functionality.

Homepage

Configure your form directly on NgxFormLib or play with forms on Stackblitz

Installation

  1. In your angular project run command npm install --save ngx-form-lib and install the package.
  2. This library use Angular material for themes. So, if you have already setup Angular material skip step 4.
  3. You also need to install peer dependencies. Installing npm peer dependencies.
  4. Setup angular material in your project. Getting started guide.
  5. Import BrowserAnimationModule in app.module.ts.
// ... Other imports
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

@NgModule({
  imports: [
    ...,
    BrowserAnimationsModule
  ],
  ...,
})
export class AppModule { }
  1. Import FormLibModule from ngx-form-lib and add it into the imports array of your module.
import { NgModule } from '@angular/core';
import { FormLibModule } from 'ngx-form-lib';

import { CommonModule } from '@angular/common';

@NgModule({
  declarations: [HomeComponent],
  imports: [
    CommonModule,
    FormLibModule,
  ],
})
export class HomeModule {}
  1. Create a constant file with form configuration. You can directly create form configuration on NgxFormLib webpage and use it in your projects. IDE support will provide with autofill for various properties.
import { ParentConfig, Input, Field, Config } from "ngx-form-lib";

export const CONFIG: Config = {
    header: 'Form Header',
    parentConfig: new ParentConfig({
      appearance: 'fill',
      color: 'primary',
    }),
    sections: [
      {
        sectionHeader: 'Section Header',
        fields: [
          new Input({
            subType: 'text',
            field: new Field({
              type: 'input',
              name: 'money',
              label: 'Enter your name',
              order: 1,
              classes: ['ngf-col-12'],
            }),
          }),
        ],
      },
    ],
  };
  1. Bind the configuration with config property of ngx-for-lib component.
<ngx-form-lib [config]="CONFIG"></ngx-form-lib>

Style error fix

If you find breaking style with material form just install peer dependencies manually and rerun the project.

List of supported component

  1. Input
  2. Textarea
  3. Checkbox
  4. Radio
  5. Button
  6. Dropdown

Features and releases

Current features

  1. Dynamic components
  2. Field Dependencies
  3. Facets implementations (hidden, disable, set value)

Next release version features

  1. Form dependencies

Further help

To get more help, issues or any suggestions for the ngx-form-lib mail to [email protected] with subject ngx-form-lib.