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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tsdiapi/crud

v0.4.1

Published

A TSDIAPI plugin that provides automatic CRUD (Create, Read, Update, Delete) API generation for your database entities. It generates TypeScript modules and services with full type safety, validation, and best practices.

Readme

crud Plugin for TSDIAPI

A TSDIAPI plugin that automatically generates CRUD (Create, Read, Update, Delete) REST API endpoints for your Prisma entities.

📌 About

This is a TSDIAPI plugin that serves as a code generator. It automatically creates fully functional CRUD REST API endpoints for your Prisma database entities. The generated code includes:

  • Service layer with CRUD operations
  • REST controllers with endpoints
  • Type validation schemas
  • Error handling
  • JWT authentication integration

🔗 TSDIAPI CLI: @tsdiapi/cli


📦 Installation

You can install this plugin using npm:

tsdiapi add crud

🚀 Features

  • 🛠 Automatic CRUD Generation - Generates complete CRUD API for any Prisma entity
  • REST Endpoints - Creates standard REST endpoints (GET, POST, PUT, DELETE)
  • 🔒 Built-in Security - Includes JWT authentication
  • 📝 Type Safety - Full TypeScript support with validation schemas
  • 🔄 Pagination - Built-in support for list operations with pagination
  • 🛡️ Error Handling - Comprehensive error handling and validation

🔧 Usage

To generate CRUD API for a Prisma entity, simply run:

tsdiapi generate crud <entityName>

Where <entityName> is your Prisma model name (e.g., User, Product, Order).

The generator will create:

  • Service layer with CRUD operations
  • REST controllers with endpoints
  • Type validation schemas

Generated Endpoints

For each entity, the following REST endpoints are created:

  • GET / - List entities with pagination
  • GET /:id - Get entity by ID
  • POST / - Create new entity
  • PUT /:id - Update entity
  • DELETE /:id - Delete entity

🔗 Related Plugins

You can find more TSDIAPI plugins here:
🔗 Available Plugins


👨‍💻 Contributing

Contributions are always welcome! If you have ideas for improving this plugin, feel free to open a pull request.

Author: unbywyd
GitHub Repository: https://github.com/unbywyd/tsdiapi-crud

📧 Contact: [email protected]

🚀 Happy coding with TSDIAPI! 🎉