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

angular-crudder

v0.0.11

Published

A schematic project which generates angular CRUD code based on the valid JSON file provided.

Downloads

18

Readme

angular-crudder

A schematic project which generates CRUD operation boiler plate code based on the JSON file(schema).

Install Schematics

npm install angular-crudder

Once you install the package angular-crudder, that will be available through the Angular CLI.

Angular Crudder

ng generate angular-crudder:angular-crudder --name=<component-name> --schemaPath=<path-of-your-json-file>

Running the angular-crudder schematic generates a new Angular component files consisting of:

  • Details Component
  • Edit Component
  • List Component
  • Model file
  • API service file

Navigation in component's routerLink are written based on the below routes:-

  {
    path: '<name>', component: <list-component>
  }
  {
    path: '<name>/create', component: <edit-component>
  }
  {
    path: '<name>/:id', component: <details-component>
  }
  {
    path: '<name>/edit/:id', component: <edit-component>
  }

You have to change the api-url in the service file then your CRUD will work.

You can use the module property to add the imports in your module file, it uses the regex pattern behind the scene to find the file.

NOTE:- Routing file you have to import it components manually and declare your routes.

angular-crudder Properties

| Property | Description | |----------------|--------------------------------------------------------------------------------------------------------| | name | The name of the instance which represent your object. E.g.:- customer, employee | | schemaPath | Specifies the path of schema of which form and template is to be generated. | | path | Specifies the path to create the files under. | | changeDetection | Specifies if a change detection property is to be added in component metadata. Default is false. | | module | Specifies the module name in which imports are to be added.| | skipModuleImport | Specifies if the module import is to skipped or not.|

JSON File properties

Each properties of the JSON file should be the FieldName which you want to be displayed in the form. The FieldName values should contain the metadata about that field. Below are the accepted the value metadata:-

| Name | Description | |----------------|--------------------------------------------------------------------------------------------------------| | isId | Field is a primary key/id field, which will be used in component's. Possible values: true/false. Default: false | | type | Type will be used to generate HTML inputs and if is it group will be used to generate nested forms. Possible values: text, number, radio, select, group | | maxlength | If type is text, you use this property to limit the no. of characters. | | required | If field is required or not. | | enum | If type is radio, you can use this property to display the possible values of the radio |

In case you want to see example of the Sample JSON file.