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

cruddy-cat

v2.0.1

Published

A dynamic, plug-and-play Express + Mongoose API generator for fast CRUD development.

Downloads

12

Readme

🚀 CruddyCat

CruddyCat is a lightweight and powerful Express + Mongoose API generator that dynamically creates full CRUD routes based on your Mongoose schema. Designed for rapid development, it lets you build scalable RESTful APIs in seconds with zero boilerplate—just plug in your models, connect to MongoDB, and go live. Perfect for prototyping, admin panels, or production-ready backends.

📦 Installation

npm install cruddy-cat

🔧 Features

  • 🧠 Dynamic routing via /:model
  • 🔁 Full CRUD support (Create, Read, ReadOne, Update, Delete)
  • 🚀 One-line MongoDB connection
  • 🧱 Schema-first API structure
  • ⚡ Lightweight and Express-compatible

🧪 Quick Example

import express from "express";
import { GenerateRouter, Connect } from "cruddy-cat";
import * as schema from "./schema.js"; // Your mongoose models

// 1. Connect to MongoDB
Connect("your-mongodb-uri");

// 2. Initialize Express
const app = express();
app.use(express.json());

// 3. Plug in the auto-generated router
const routes = GenerateRouter(schema);
app.use("/api", routes.router());

// 4. Run your app
app.listen(3000, () => {
  console.log("🚀 Running your app at port 3000");
});

🧱 Route Structure

Assuming a User model exists in your schema:

| Method | Route | Description | |--------|-------------------|-------------------| | POST | /api/User | Create a new user | | GET | /api/User | Get all users | | GET | /api/User/:id | Get one user | | PUT | /api/User/:id | Update user | | DELETE | /api/User/:id | Delete user |

All routes use req.params.model to dynamically handle requests based on your schema keys.


📁 Project Structure Example

📦 your-project/
├── schema.js          # export all your mongoose models
├── server.js          # your entry file
└── ...
// schema.js
import mongoose from "mongoose";

const UserSchema = new mongoose.Schema({ name: String });
export const User = mongoose.model("User", UserSchema);

const CourseSchema = new mongoose.Schema({ title: String });
export const Course = mongoose.model("Course", CourseSchema);

❗Tips

  • Make sure your schema.js exports all models using the same naming key as used in routes.
  • Use middleware, validation, and authorization by wrapping route handlers (coming soon!).

📌 Coming Soon

  • ✅ Custom route guards / middleware
  • ✅ Swagger/OpenAPI generator
  • ✅ Query filtering, sorting, and pagination
  • ✅ Role-based access control (RBAC)

🧑‍💻 Author

Nkiko Hertier
Web/Mobile Dev • Building tools with love, magic & code.
📺 YouTube: Pocda Dev Stories
🧑‍💼 LinkedIn | 📧 Email | GitHub | Website


📜 License

MIT License – Use it. Hack it. Improve it.