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

@puq/rest

v0.6.20

Published

A powerful library designed to streamline the creation of RESTful APIs in NestJS by reducing boilerplate code and minimizing the risk of bugs. This library introduces custom decorators for Controllers and methods, automatically generating plural and singu

Readme

@puq/rest

Install

  pnpm add @puq/rest

Summary

A powerful library designed to streamline the creation of RESTful APIs in NestJS by reducing boilerplate code and minimizing the risk of bugs. This library introduces custom decorators for Controllers and methods, automatically generating plural and singular resource paths, as well as handling complex relational routes. It is perfect for developers looking to speed up their development process, eliminate redundancy, and ensure consistency across API endpoints.

Key Features

  • Automatic Path Generation: Say goodbye to manually defining each API route. The library automatically creates both plural and singular resource paths, such as /resources and /resource/:id, with zero configuration required.

  • Relational Route Support: Effortlessly define relational paths like /resource/:id/:relatedName/:relatedId, ensuring seamless handling of nested routes and related resources.

  • Custom Decorators: Use intuitive and reusable decorators for both controllers and methods, significantly reducing the amount of code and improving readability and maintainability.

  • Standardized REST API Endpoints: Get all the common REST API routes you need out-of-the-box, including GET, POST, PUT, DELETE, and more. This ensures consistency in API structure and reduces the chances of human error.

  • Bug Reduction: By automating the routing logic and using predefined patterns, this library eliminates the potential for typos or incorrect path formats, making your API routes more reliable and easier to manage.

  • Scalable and Extensible: Easily integrate this library into any existing NestJS project with minimal setup. Its flexible structure allows for future customization to meet specific use cases.

Benefits

  • Faster Development: With automatic path creation and simplified decorators, you can rapidly build and maintain APIs with less effort and fewer lines of code.

  • Improved Consistency: Standardizing routes across your project helps ensure a consistent API structure, reducing confusion and increasing developer productivity.

  • Reduced Bugs: Automated path generation and relational route handling drastically reduce human error, leading to more robust and maintainable APIs.

  • Cleaner Code: Custom decorators reduce boilerplate code and allow developers to focus on the actual logic of the application rather than spending time on repetitive tasks.

Try it Now!

Start leveraging the power of NestJS Auto-Routes Decorators and simplify your REST API development while improving maintainability and minimizing errors. Installation is quick, and integration into your existing NestJS project is straightforward.

Funding

Thank you for using @puq/rest It's an open-source project, and maintaining it takes time and effort. If you find this library useful, please consider supporting its ongoing development. Your contributions help ensure that the project stays up-to-date, secure, and well-maintained.

Instant Funding

Your funding will go toward

  • Bug fixes and updates to ensure compatibility with the latest versions of dependencies.
  • New features that will make the library even more powerful.
  • Documentation improvements to help users get the most out of [Your Library Name].
  • General maintenance to keep the library running smoothly and securely.

Contact to the developer: [[email protected]]

Support the developer