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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nitojs

v20.5.7

Published

Nito JavaScript Library and Software Development Kit (SDK).

Downloads

1

Readme

Nito JS Library

Cloud Server Room

Process Overview

  1. Publish a list of available pools to Orbit DB.
  2. Users submit their requests.
  3. Requests are processed then added to the Key-Value (pool) Dbs.
  4. Approved users can then submit Tx Details to the Event Log.
  5. Participant keys can then be used to check (receipt) db.

Published pools

Uses a key-value db to store the available exchange pools.

NitoExchangeCloud.getPools()

orbitdb.get("pools")

Returns

[
    {
        "id": "ef7e04e2-0265-4c7c-98b1-904d1cdae584",
        "amount": 10000,
        "members": 7,
        "createdAt": 1587140400000
    },
    ...
    {
        "id": "cf6ad147-a4d4-47b4-b131-e344bd533c76",
        "amount": 1000000000,
        "members": 3,
        "createdAt": 1587140400000
    }
]

NOTE: ids are ephemeral and will change after each subsequent round.

User requests

Users submit their request to the Event Log.

Pool details

Retrieve the details for the respective pool.

NitoExchangeCloud.getPool("13522d9b-2189-437c-b47e-5b3d277a6127")

orbitdb.get("pool.13522d9b-2189-437c-b47e-5b3d277a6127")

Returns

{
    "id": "13522d9b-2189-437c-b47e-5b3d277a6127",
    "amount": 100000,
    "members": [
        "0330eae4-9344-4e43-803b-3d9eceeff48f",
        ...
        "40d8ce87-e99a-4c82-9200-6eea5e1af105"
    ],
    "output": 148200
    "failures": 0,
    "status": 0,
    "createdAt": 1587140400000,
    "completedAt": 0
}

Receipts

Players can check their receipt status in real-time by providing their receipt id (ie. their pool player id).

NOTE: Receipt ids are encrypted and saved on-chain by the respective player, using the Bitcoin File Storage (BFS) protocol.

NitoExchangeCloud.getReceipt("d440438e-21b0-40ea-a1fe-eebc2f80c744")

orbitdb.get("receipt.d440438e-21b0-40ea-a1fe-eebc2f80c744")

Returns

{
    "id": "d440438e-21b0-40ea-a1fe-eebc2f80c744",
    "status": 0,
    "createdAt": 1587140400000,
    "completedAt": 1587183600000
}