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

pupsi

v0.0.3

Published

Provide the ultimative single api point for the frontend. Designed to be used with SQL. Get nested data and benefit from automatic sql table joining.

Readme

#PUPSI

Still aplha and in active development. It should not used in production!

#What is pupsi?

Pupsi provides single API points for fetching and setting data. It is designed to be used for SQL.

#What is the problem pupsi solves?

Let's take this typical backend-frontend talk between developers.

Frontend: Hey bro, could you provide some data?

Backend: Yes, sure.

...

Backend: Finished.

...

Frontend: Okay nice, could youe please add some fields. I need it here. Ah and please add the related object xy. Please nest it.

Backend: Uhm.. okay.

Now, the backend gives full control of what the frontend can fetch.

Let's take a typical user table. A user can have images and every image could have comments.

With a normal API you could fetch the user. Then the images and of course the comments of the images. BUT, if you use SQL, thats not efficient. So the backend would provide a specific API point to fetch all data together. That costs time and every time the frontend needs a change, the backend has to adapt.

NOW, imagine the frontend could just send this:

{
  "user": {
    "fields": ["username"],
    "condition": { "id": 1 },
    "join": {
        "images": {
        "fields": ["url", "views"],
        "type": "left",
        "join": {
          "images_comments": {
            "type": "left"
          }
        }
      }
    }
  }
}

Pupsi takes this object, creates a SQL query and returns nested data to the frontend. Efficiently.

The frontend can easily define, which fields should be fetched AND which related data should be fetched.

#But what has the backend to do then?

The backend, of course, takes care of database design and providing a schema to pupsi. This schema defines which tables can be joined. Database design and the Pupsi Schema are not related. You do this seperately, so you have the freedom on both sides.

AND, important: The backend has to take care about security.