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

yxl-packages

v0.0.0

Published

# Installation

Readme

@yxl/form-builder

Installation

To install @yxl/form-builder, run the following command:

npm install yxl/form-builder

Make sure you have the following requirements installed:

  • Node.js 16
  • Angular 15

How to Use

  1. Import the required modules in app.module.ts:
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormBuilderModule } from '@yxl/form-builder';
  1. Include the FormBuilderModule.forRoot() configuration in imports:
FormBuilderModule.forRoot({
  URLS: {
    baseUrl: 'https://API_URL/',
    listOfValues: ':LIST_VALUES_URL',
    upload: 'STORAGE_URL',
    listOfServices: 'LIST_ENDPOINT',
    getFormById: 'GET_ENDPOINT',
    submit: 'SUBMIT_ENDPOINT',
    getInbox: 'GET_ALL_ENDPOINT',
    getRequestDetails: 'GET_REQUEST_ENDPOINT',
  },
  STORAGE: {
    isLocalStorage: true,
    token: 'token',
    LanguageCode: 'lang',
    headers: {},
    httpOptions: {},
  },
}),

Notes: - You must have a token stored in the local storage with the key "token" or any string key passed to the STORAGE.token. - The language stored in the local storage with the key "lang" or any string key passed to the STORAGE.LanguageCode.

  1. In your main.ts file, import 'reflect-metadata':
import 'reflect-metadata';
  1. Use the <dfb-dynamic-form-builder> component in your Angular template:
<dfb-dynamic-form-builder
  [serviceCode]="serviceCode"
  (formSubmitted)="(null)"
  (formCanceled)="(null)"
></dfb-dynamic-form-builder>

Make sure you have the FormBuilderModule existing in the lazy loading module.

Styles

In this project, we follow a 4px grid system using the rem unit for spacing. To maintain consistent global styles, please visit the styles.scss file in the demo-app project.

Dynamic Forms Grid System using CSS Variables

We define spacing units and their corresponding values using CSS variables:

--spacing-unit: 1rem; // 16px
--0-25sn: calc(0.25 * var(--spacing-unit)); // 4px
--0-5sn: calc(0.5 * var(--spacing-unit)); // 8px
--0-75sn: calc(0.75 * var(--spacing-unit)); // 12px
--1sn: calc(1 * var(--spacing-unit)); // 16px
--1-25sn: calc(1.25 * var(--spacing-unit)); // 20px
--1-5sn: calc(1.5 * var(--spacing-unit)); // 24px
--1-75sn: calc(1.75 * var(--spacing-unit)); // 28px
--2sn: calc(2 * var(--spacing-unit)); // 32px

This README.md file provides instructions for installing and using the @yxl/form-builder package in an Angular project. It includes information on installation, requirements, configuration, and usage examples.