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

ssb-invites-db

v0.0.5

Published

A flumeview-reduce using [ssb-invites-schema](https://github.com/kgibb8/ssb-invites-schema) for [scuttle-invite](https://github.com/kgibb8/scuttle-invite) ssb plugin. Allows for a polymorphic invitation/reply system to be used on-top of a `root ` record,

Downloads

7

Readme

ssb-invites-db

A flumeview-reduce using ssb-invites-schema for scuttle-invite ssb plugin. Allows for a polymorphic invitation/reply system to be used on-top of a root record, such as a Gathering.

// Plug into a Scuttlebot server
Server.use(require('ssb-invites-db'))

// Initialise a server
var server = Server()

// Now call the API
server.invites

Opens up a set of lenses on the reduced data structure:

API

{
  getInvite: 'async',
  getReply: 'async',
  invitesByRoot: 'async',
  replysByRoot: 'async'
  invitedByRoot: 'async'
}

Data Template

{
  '%fAVwnIMv2ikGDNRxT8lNpzZSXHyrLJ5l38kl8ZJVBww=.sha256': {
    invites: {
      '%OuJYS+oDoyLwuMdTWPk9A39JRu1D//PfD5jzzMkgX6Y=.sha256': {
        key:'%OuJYS+oDoyLwuMdTWPk9A39JRu1D//PfD5jzzMkgX6Y=.sha256',
        value: {
          author: '@cl1oUz84kJiHKttQiS87cHPEaiGv5I2lJPCfE9fy0fs=.ed25519',
          content: {
            type: 'invite',
            version: 'v1',
            root: '%fAVwnIMv2ikGDNRxT8lNpzZSXHyrLJ5l38kl8ZJVBww=.sha256'
            body: "Yo @Derek, want to come over for some snackage?"
            mentions: [Array],
            recps: [Array],
            accepted: true
          }
        }
        timestamp: 1528703315721,
        replys: {
          // Here's Derek's first reply
          '%Y4dJrHsmySSawl8WPk9A39JRiG4dK5LfDTT5jjMkgX6Y=.sha256': {
            key: '%Y4dJrHsmySSawl8WPk9A39JRiG4dK5LfDTT5jjMkgX6Y=.sha256',
            value: {
              author: '@FMM+LUXFosOUtWm2cGHu5ptzgsxEtV6l9NImuL8ggYQ=.ed25519',
              content: {
                type: 'invite-reply',
                version: 'v1',
                body: "Thanks @Holga but I can't make it",
                accepted: false,
                mentions: [Array],
                recps: [Array]
              }
            }
            timestamp: 1528703315721,
            invite: [Circular]
          },
          // Derek changes his mind...
          '%SBwACwsjh9QY4/jsClOI0dSiQSAUrWiiDoTW7CEggSE=.sha256': {
            key: '%SBwACwsjh9QY4/jsClOI0dSiQSAUrWiiDoTW7CEggSE=.sha256',
            value: {
            author: '@FMM+LUXFosOUtWm2cGHu5ptzgsxEtV6l9NImuL8ggYQ=.ed25519',
              content: {
                type: 'invite-reply',
                version: 'v1',
                body: "Scratch that, lets jam"
                accepted: true,
                recps: [Array]
              }
            }
            timestamp: 1528703315744,
            invite: [Circular]
          }
        },
      },
      '%to8Sb7bS2icz34sOuvkLmvuKcE/j5kGS7HrO+/c/pp0=.sha256': {
        key: '%to8Sb7bS2icz34sOuvkLmvuKcE/j5kGS7HrO+/c/pp0=.sha256',
        value: {
          author: '@cl1oUz84kJiHKttQiS87cHPEaiGv5I2lJPCfE9fy0fs=.ed25519',
          content: {
            body: "Grace, come eat some tasty grub at yard"
            recps: [Array]
          }
        }
        // Grace hasn't responded yet...
      }
    }
  },
  replys: {
    '%Y4dJrHsmySSawl8WPk9A39JRiG4dK5LfDTT5jjMkgX6Y=.sha256': {
      key: '%Y4dJrHsmySSawl8WPk9A39JRiG4dK5LfDTT5jjMkgX6Y=.sha256',
      value: {
        author: '@FMM+LUXFosOUtWm2cGHu5ptzgsxEtV6l9NImuL8ggYQ=.ed25519',
        content: {
          type: 'invite-reply',
          version: 'v1',
          body: "Thanks @Holga but I can't make it",
          accepted: false,
          mentions: [Array],
          recps: [Array]
        }
      }
      timestamp: 1528703315721,
    },
    '%Y4dJrHsmySSawl8WPk9A39JRiG4dK5LfDTT5jjMkgX6Y=.sha256': {
      key: '%Y4dJrHsmySSawl8WPk9A39JRiG4dK5LfDTT5jjMkgX6Y=.sha256',
      value: {
        author: '@FMM+LUXFosOUtWm2cGHu5ptzgsxEtV6l9NImuL8ggYQ=.ed25519',
        content: {
          type: 'invite-reply',
          version: 'v1',
          body: "Thanks @Holga but I can't make it",
          accepted: false,
          mentions: [Array],
          recps: [Array]
        }
      }
      timestamp: 1528703315721,
      invite: {
        key:'%OuJYS+oDoyLwuMdTWPk9A39JRu1D//PfD5jzzMkgX6Y=.sha256',
        value: {
          author: '@cl1oUz84kJiHKttQiS87cHPEaiGv5I2lJPCfE9fy0fs=.ed25519',
          content: {
            type: 'invite',
            version: 'v1',
            root: '%fAVwnIMv2ikGDNRxT8lNpzZSXHyrLJ5l38kl8ZJVBww=.sha256'
            body: "Yo @Derek, want to come over for some snackage?"
            mentions: [Array],
            recps: [Array],
            accepted: true
          }
        }
        timestamp: 1528703315721,
        replys: [Circular]
      }
    },
    '%SBwACwsjh9QY4/jsClOI0dSiQSAUrWiiDoTW7CEggSE=.sha256': {
      key: '%SBwACwsjh9QY4/jsClOI0dSiQSAUrWiiDoTW7CEggSE=.sha256',
      value: {
      author: '@FMM+LUXFosOUtWm2cGHu5ptzgsxEtV6l9NImuL8ggYQ=.ed25519',
        content: {
          type: 'invite-reply',
          version: 'v1',
          body: "Scratch that, lets jam"
          accepted: true,
          recps: [Array]
        }
      }
      timestamp: 1528703315744,
      invite: {
        key:'%OuJYS+oDoyLwuMdTWPk9A39JRu1D//PfD5jzzMkgX6Y=.sha256',
        value: {
          author: '@cl1oUz84kJiHKttQiS87cHPEaiGv5I2lJPCfE9fy0fs=.ed25519',
          content: {
            type: 'invite',
            version: 'v1',
            root: '%fAVwnIMv2ikGDNRxT8lNpzZSXHyrLJ5l38kl8ZJVBww=.sha256'
            body: "Yo @Derek, want to come over for some snackage?"
            mentions: [Array],
            recps: [Array],
            accepted: true
          }
        }
        timestamp: 1528703315721,
        replys: [Circular]
      }
    }
  }
}

This data structure allows the developer to access a set of invites based on its root record, be that an event, a group, a cabal... and render them and their invites / replys appropriately.

TODO / THINK

  • What source should look like for using pull-stream, or should we use ssb-backlinks?