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

createstackrexplorer-cli

v1.0.2

Published

A CLI tool to create an Out of the box Explorer for Stackr Micro Rollups.

Downloads

3

Readme

Stackr Explorer CLI

A Simple and Modern CLI that create an Out of the box Explorer for Stackr Micro Rollups.

MIT License

Demo

A Full Demo Video can be looked up here :

https://www.loom.com/share/cfc13c1d6acc4ba4b0617794fbf97f0f?sid=3fe41756-949c-49cd-b098-22ce9bfbe0a8

The following GIT-REPO is also the Demo repo with this Stack Mirco rollup : Git-Repo

Introduction

Micro rollups also needs Explorer that providers user with a transparent and user-friendly interface to explore transactions, blocks & other data to gain valuable insights about the application and it’s activities.

It is Ready to use out of the Box , for all Rollups, with just simple configurations steps, can be followed in the tutorial below.

Features & Benefits

  • Enhanced visibility into Micro Rollup transactions and specific states
  • Increased Transparency for the Users about the Rollup activities
  • Application specific insights in a user friendly interface
  • Interaction with the rollup for the developers

Installation

Install createstackrexplorer-cli from CLI , in your project's root directory.

  npm install createstackrexplorer-cli

  or

  bun add createstackrexplorer-cli

  or

  yarn add createstackrexplorer-cli

Usage

1. Intialise the explorer app from your Rollup's directory

npx createstackrexplorer-cli

This should add the explorer folder inside your rollup and install the dependencies

2. Set Inputs in Config

Under explorer/config/index.ts

config

Update the action Schema Type as set in the src/index.ts & Action Input interface as set in the src/state.ts

export const actionSchemaType = {
  type: "String",
};

export interface ActionInput {
  type: "increment" | "decrement";
}

Here is another example of the config file

export const actionSchemaType = {
  type: "String",
  stealthAddress: "Address",
  ephemeralPublicKey: "Bytes",
  viewTag: "Uint",
  publicAddress: "Address",
  stelathMetaAddress: "Bytes",
  schemeId: "Uint",
};

export interface ActionInput {
  type: "announce" | "register";
  stealthAddress: string;
  ephemeralPublicKey: string;
  viewTag: number;
  publicAddress: string;
  stelathMetaAddress: string;
  schemeId: number;
}

| Parameter | Type | Description | | :----------------- | :----------------- | :--------------------------------- | | actionSchemaType | actionSchemaType | Required actionSchemaType Data | | ActionInput | ActionInput | Required ActionInput Data |

Andd !! BOOM ✨ , You just Token Gated your website

Run

NOTE : Start the Rollup first and ensure the db.sqlite is present in the rollup repo

To run the explorer , run local dev command

  npm run dev

  or

  bun dev

To Start the Rollup , run it with this command

   bun run src/index.ts

Screenshots

Appendix

The package is just live with an initial version , there might be some upcoming changes .

Contact: [email protected]

Tech Stack

Explorer: React, Next, ShadCN UI, sqlite3

CLI: bun , git

How we built it ??

Looking forward for more such experience

Authors