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

@usher.so/datamodels

v0.0.10

Published

- Generated DID Key - `openssl rand -hex 32` - **Glaze CLI** -- [https://developers.ceramic.network/tools/glaze/example/](https://developers.ceramic.network/tools/glaze/example/)

Downloads

15

Readme

@usher.so/datamodels - Ceramic Data Models for Usher

Getting Started

  1. Install the Glaze CLI - yarn global add @glazed/cli
  2. Fetch the DID Key from your Team Lead

Models

magic-wallets

  • Schema:
  • Definition: k3y52l7qbv1fry9ckuzglu1tqo69m7or7qwayc09i8njfrddsit05acie3ys02zgg
    {
    	"name": "A magic wallet",
    	"description": "A magic wallet associated to a DID",
    	"schema": "ceramic://k3y52l7qbv1fry3dgjlthkoygw6a8p50cjth9texpv1looy8umrbbkrpnrbjj80sg"
    }

Deploying Models

glaze model:deploy magic-wallets ./models/MagicWallet.json

Updating Models

As per this Discord Message, Schema Documents are Streams, so it's just be a matter of applying a new commit using the TileDocument.update(). Glaze does not currently support this natively. The commit updates to a schema should have backward compatibility -- based on logic.

glaze stream:state kjzl6cwe1jw14a4khio3qvh7jen9decdi4xgvg3xivzo5ms2cig6h7l7rx2tfct                                                                                                         03:03:19 pm
✔ Successfully queried stream kjzl6cwe1jw14a4khio3qvh7jen9decdi4xgvg3xivzo5ms2cig6h7l7rx2tfct
{
  type: 0,
  content: {
    type: 'object',
    title: 'MagicWallets',
    '$schema': 'http://json-schema.org/draft-07/schema#',
    properties: {
      arweave: {
        type: 'object',
        title: 'arweave',
        properties: {
          data: { type: 'string', title: 'data' },
          address: { type: 'string', title: 'address' }
        }
      }
    }
  },
  metadata: {
    unique: 'YuG5O0/EWtisz+no',
    controllers: [ 'did:key:z6MkwVNrdkjiAzEFoWVq9J1R28gyUpA3Md7Bdx8DaABhQzVX' ]
  },
  signature: 2,
  anchorStatus: 0,
  log: [
    {
      cid: CID(bagcqceraykyfiubvaascq26dtg4rfdukuh3h6imoku6p2vuebeckdmsszd6q),
      type: 0
    }
  ]
}

Executing Commands

Running commands directly requires the following:

node --experimental-specifier-resolution=node --loader ts-node/esm ./cmd/arcampaigns.ts ls

The reason is because the core depedencies are ESM-only.