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

@incodelang/accounts

v1.0.21

Published

An API for simple Account Management

Downloads

32

Readme

@incodelang/accounts

A simple account management server for your node.js application.

Installation

Install @incodelang/accounts with npm

  npm install @incodelang/accounts

Install @incodelang/accounts with yarn

  yarn add @incodelang/accounts

Usage/Examples

Integrate in your own express.js application

const { accountServer } = require('@incodelang/accounts')
const express = require('express')

const app = express();

app.listen(3000, "0.0.0.0");

accountServer({
    app: app
})

Standalone express.js application

const { accountServer, sampleApp } = require('@incodelang/accounts')

accountServer({
    app: sampleApp(
        3000, // port [default] = 3000
        "0.0.0.0" // host [default] = "0.0.0.0"
    )
})

API Reference

The parameters must be send in the request body as JSON format.

User API

| Response | Description | | :-------- | :------------------------- | | {"error": false, "message": "response message, e.g. data"} | The request was successful | | {"error": true, "message": "errror message"} | The request failed |

Create a user

  POST /api/v1/user/users/create

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | username | string | The name of the user | | password | string | The password of the user |

Delete a user

  POST /api/v1/user/users/delete

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user |

Login

  POST /api/v1/user/users/login

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user (or a token)|

Check if a User exists

  POST /api/v1/user/users/exists

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | username | string | The name of the user |

Update Username

  POST /api/v1/user/users/update/username

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | old | string | The current name of the user | | username | string | The new name of the user | | password | string | The password of the user |

Update Password

  POST /api/v1/user/users/update/password

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The new password of the user | | old | string | The current password of the user |

User Data API

Store Data

  POST /api/v1/user/users/data/store

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | data | string | The actual data | | dataName | string | The name of the data |

Delete Data

  POST /api/v1/user/users/data/delete

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | dataName | string | The name of the data |

Get Data

  POST /api/v1/user/users/data

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | dataName | string | The name of the data |

Get All Data

  POST /api/v1/user/users/data/delete

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user |

Global Data API

Set Data

  POST /api/v1/user/data/set

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | value | string | The actual data | | key | string | The name of the data |

Delete Data

  POST /api/v1/user/data/delete

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | key | string | The name of the data |

Grant Access

  POST /api/v1/user/data/allow

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | key | string | The name of the data | | newUser | string | The name of the new user |

Revoke Access

  POST /api/v1/user/data/disallow

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | key | string | The name of the data | | newUser | string | The name of the new user |

Get Public Data

  POST /api/v1/user/data/get

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | key | string | The name of the data |

Postboxes API

Create a Postbox

  POST /api/v1/user/postboxes/create

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | name | string | The name of the postbox |

Delete a Postbox

  POST /api/v1/user/postboxes/delete

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | name | string | The name of the postbox |

Add Data to a Postbox

  POST /api/v1/user/postboxes/add

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | name | string | The name of the postbox | | owner | string | The owner of the postbox | | entry | string or object | The data you want to add |

Clear a Postbox

  POST /api/v1/user/postboxes/clear

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | name | string | The name of the postbox |

Read a Postbox

  POST /api/v1/user/postboxes/read

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user | | name | string | The name of the postbox |

Check if a Postbox exists

  POST /api/v1/user/postboxes/exists

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | owner | string | The owner of the postbox | | name | string | The name of the postbox |

Tokens

Create a Token

  POST /api/v1/user/tokens/create

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | username | string | The name of the user | | password | string | The password of the user |

Authors

License

GPL-3.0