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

create-trac-app

v0.1.1

Published

The command will scaffold a trac app and run you through the initial wizard.

Readme

Usage

The command will scaffold a trac app and run you through the initial wizard.

npx create-trac-app

Purpose

The purpose of this setup is to provide a quick dev-only scaffold to build and test your trac app.

Basic Concepts

It is required to have a working MSB and a funded wallet. The funding doesn't happen in the subnetwork (in this context the peer "server") but on the MSB layer. It is possible to think of the subnetwork (trac-peer) as a beam for the application logic, i.e., contract and protocol, while MSB is the beam for traffic (transaction handling and fees). The currency that governs over MSB is $TNK.

A contract is the logical entity that the local network can interact with (through transactions). A protocol is a processing entity that happens regardless. Since the transaction life-cycle is network bound, any heavier processing should be done at the protocol level. To use Ethereum as an analogy, a contract would be indeed closer to an Ethereum contract, while the protocol would be closer to an oracle. Furthermore, protocols are included in the context so they can extend functionality.

Premises

  • The current configuration assumes a dev environment.
  • MSB is running, can fund addresses, and run transactions.
  • A tap wallet extension is installed to interact with the dapp (frontend).
  • The wallet selected in the TAP wallet also has funds to run transactions.

Subnetwork contract and protocol

npm install
npm run dev

After executing both, the peer will run in a command-line context and, among other things, it should display the relationship between Peer and MSB.

==================== TRAC-PEER RUNNER ====================
MSB network bootstrap: cf6851dc8159e94d5223e810bf519cf89370268f1c8ac656d8e8abf0743ff19b
MSB channel: 21313123322131312332213131233221
MSB wallet address: trac1krjpplf7cxkc06rakxegwpa8ffv20u9hgrga90np0r4cpvs8a7rsakcysk
----------------------------------------------------------

MSB channel and bootstrap should reflect the configuration in config. They should match that of your local instance of MSB. Two actions are required at this time (on the peer): /add_admin and /deploy_subnet. Both actions will require $TNK funded to the displayed MSB wallet address. Leaving the subnet address null on the peer node in the config will assume the current instance as the bootstrap. That value should be changed in case you want to participate on someone else's network (subnet).

Running the following command will expose the current contract and protocol in the current subnet instance.

npm run dev-rpc

There is no live reload, and state is consolidated in the local storage as well as other entities participating in the subnet. Therefore it is recommended to finish up the contract and protocol development before you get to testing it.

As far as development is concerned, the expected files to change are: the ./src/contract.js, ./src/protocol.js and ./config.js.

The dapp

The dapp lives in a separate folder (called app) and, in this example, is a NestJS application. It's currently tightly coupled with the example contract. It interacts with the network through RPC.