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

sump

v0.1.0

Published

sump - simple user management platform

Downloads

6

Readme

sump - simple user management platform

[!CAUTION] This is still very WIP

A definition from dictonary.com:

"sump: a pit, well, or the like in which water or other liquid is collected."

But this collects user accounts to recirculate (auth).

Dependencies

  • nodejs (>= v20)
  • postgres (>=v13)
  • docker (>= 28.5) [optional]

Installation

npm install -g sump

# or clone the repo and install the dependencies
git clone https://github.com/thassiov/sump.git
cd sump
npm install

# or pulling it as a docker container from docker hub
docker pull thassiov/sump:1.0

Start a standalone server (RESTful)

# after installing globally
sump -c config.json

# or after cloning the repo
npm start -- -c config.json

# or after pulling the container image
docker run \
 --name sump-service \
 -p 8080:8080 \
 --read-only -v /<path_to_your_config_file>/config.json:/app/config.json
 -d thassiov/sump:1.0

How to use it

First you have to create a tenant. It will hold all the users you create. To create your tenant you'll need to send 3 things

  • the tenant's details: name (required) and custom properties (optional);
  • the tenant's owner account (you);
  • the tenant's first environment (optional - if you don't send this info, a 'default' environment will be created).
curl --location 'http://localhost:8080/api/v1/tenants' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenant": {
        "name": "my first tenant",
        "customProperties": {
            "app": "my-app"
        }
    },
    "account": {
        "name": "My Name",
        "email": "[email protected]",
        "phone": "+0000000000000",
        "username": "myusername",
        "roles": [
            "owner"
        ],
        "avatarUrl": "https://placehold.co/600x400"
    },
    "environment": {
        "name": "dev",
        "customProperties": {
            "app": "my-app"
        }
    }
}'

It responds with the following payload when the request is successfull (HTTP 201)

{
   "tenantId": "UUID",
   "accountId": "UUID",
   "environmentId": "UUID",
}

Now you can add/signup your app users in the new environment (using the environment's UUID as endpoint parameter)

curl --location 'http://localhost:8080/api/v1/environments/<UUID>/accounts' \
--header 'Content-Type: application/json' \
--data-raw '{
        "name": "Tqassio Victor",
        "email": "[email protected]",
        "phone": "+5555991287726",
        "username": "thasasidv",
        "roles": ["owner"],
        "avatarUrl": "https://placehold.co/600x400"
}'

Reference

OpenAPI Reference

Details about the entities

License

MIT, of course.