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

crudius

v1.0.2

Published

A scaffolding API tool to generate CRUD applications quickly and easily.

Readme

CRUDius CLI

CRUDius is a Node.js + TypeScript CLI tool that automatically generates CRUD boilerplate code based on interactive prompts or a JSON configuration.

⚠️ Currently under development. Features are evolving and more integrations are planned.


Features

  • Interactive setup wizard (crudius init)
  • JSON-based configuration generation (crudius init-json)
  • Configuration validation (crudius validate)
  • Clean command to remove temporary files (crudius clean)
  • Generates a ready-to-use .zip with full source code
  • Supports Express.js with Knex.js
  • Modular project structure (controllers, routes, services, entities)
  • Documented code generation for easy understanding
  • Written entirely in TypeScript for flexibility and extensibility

Planned: Support for other languages (Python, PHP) and databases (Knex, Prisma, MongoDB).


Recent Updates

  • Added support for relations in entities
  • Improved migration generator to avoid duplicated foreign key fields
  • Enhanced validation step for entity relations
  • Added prettier formatting to generated code
  • Fixed bugs in interactive prompt flow
  • Internal refactor of template rendering logic for better stability

Installation

You can install CRUDius globally to use it anywhere:

npm install -g crudius

Quick Start

After cloning the repository:

# 1. Install dependencies
npm install

# 2. Build the project
npm run build

# 3. (Optional) Link globally to test locally
npm link

Now you can run crudius from anywhere.


Usage

1. Initialize a new project interactively

crudius init
  • Walks you through prompts for entities and fields.
  • Generates a crudius.config.json file.

Example session:

Entity name: Product
Field name: name
Field type: string
Is this field optional? No
Is this field searchable? Yes
Add another field? Yes
Field name: price
Field type: number
Add another field? No

2. Generate from an existing JSON config

crudius init-json
  • Uses a JSON configuration file to generate the project automatically.

Example crudius.config.json:

{
  "generationConfigs": [
    {
      "entityName": "User",
      "properties": [
        { "field": "id", "type": "number", "primary": true },
        { "field": "name", "type": "string" },
        { "field": "email", "type": "string" }
      ]
    }
  ]
}

3. Validate configuration

crudius validate
  • Checks if your crudius.config.json follows the correct structure before generating code.

4. Clean generated files

crudius clean
  • Removes generated files (crudius.config.json, crudius-output.zip, etc.)

Generated Project Structure

When generation completes, the .zip file contains:

/src
  ├── controllers/
  ├── routes/
  ├── entities/
  ├── services/
  ├── database/
  ├── server.ts
  └── app.ts

README.md

After Unzipping the Generated Project

  1. Install dependencies:
npm install
  1. Run migrations using Knex:
npm run knex:migrate
  1. Start the server:
npm run dev

Your backend is now ready to test with CRUD endpoints.


Command Reference

| Command | Description | | ------------------- | ---------------------------------------- | | crudius init | Start interactive CRUD setup | | crudius init-json | Generate CRUD structure from JSON config | | crudius validate | Validate existing configuration | | crudius clean | Remove generated and temporary files | | crudius generate | Generate CRUD from JSON config |


Roadmap

  • Foreign key / relations support
  • Additional languages (PHP, Python)
  • More database integrations (Prisma, MongoDB)

Why CRUDius?

  • Rapid backend prototyping
  • Consistent project structure
  • Fully local, no server or internet required
  • Perfect for MVP development

License

MIT © Pedro Jesus