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

@attestprotocol/cli

v2.0.2

Published

Unified CLI for Attest Protocol across all supported blockchains

Readme

@attestprotocol/cli

Unified CLI for Attest Protocol across all supported blockchains (Stellar, Solana, Starknet).

Installation

npm install -g @attestprotocol/cli

Usage

The CLI provides a unified interface for interacting with the Attest Protocol across different blockchains. All commands require a --chain parameter to specify which blockchain to use.

Basic Syntax

attest <command> --chain=<stellar|solana|starknet> [options]

Commands

Schema Management

Create a schema:

attest schema --chain=stellar --action=create --json-file=schema.json --key-file=stellar-key.json

Fetch a schema:

attest schema --chain=stellar --action=fetch --uid=<schema-uid> --key-file=stellar-key.json

Authority Management

Register as an authority:

attest authority --chain=stellar --action=register --key-file=stellar-key.json

Fetch authority information:

attest authority --chain=stellar --action=fetch --uid=<authority-id> --key-file=stellar-key.json

Attestation Management

Create an attestation:

attest attestation --chain=stellar --action=create --json-file=attestation.json --key-file=stellar-key.json

Fetch an attestation:

attest attestation --chain=stellar --action=fetch --uid=<attestation-uid> --key-file=stellar-key.json

Revoke an attestation:

attest attestation --chain=stellar --action=revoke --uid=<attestation-uid> --key-file=stellar-key.json

Chain-Specific Key Formats

Stellar

Key file should contain the secret key:

{
  "secret": "SXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

Solana

Key file should contain the keypair as an array:

[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]

Starknet

Key file should contain account address and private key:

{
  "accountAddress": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
  "privateKey": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
}

Sample Files

The CLI package includes sample files to help you get started:

  • sample-schema.json - Example schema definition
  • sample-attestation.json - Example attestation data
  • sample-stellar-key.json - Example Stellar key format
  • sample-solana-key.json - Example Solana keypair format
  • sample-starknet-key.json - Example Starknet key format

Custom RPC URLs

You can specify a custom RPC URL using the --url parameter:

attest schema --chain=stellar --action=create --json-file=schema.json --key-file=stellar-key.json --url=https://custom-rpc-url.com

Environment Variables

You can set the following environment variables:

  • SOLANA_PROGRAM_ID - Custom Solana program ID
  • STARKNET_CONTRACT_ADDRESS - Custom Starknet contract address

Examples

Complete Workflow

  1. Register as an authority:
attest authority --chain=stellar --action=register --key-file=my-stellar-key.json
  1. Create a schema:
attest schema --chain=stellar --action=create --json-file=identity-schema.json --key-file=my-stellar-key.json
  1. Create an attestation:
attest attestation --chain=stellar --action=create --json-file=identity-attestation.json --key-file=my-stellar-key.json

Cross-Chain Usage

The same commands work across all supported chains by changing the --chain parameter:

# Stellar
attest-protocol schema --chain=stellar --action=create --json-file=schema.json --key-file=stellar-key.json

# Solana  
attest-protocol schema --chain=solana --action=create --json-file=schema.json --key-file=solana-key.json

# Starknet
attest-protocol schema --chain=starknet --action=create --json-file=schema.json --key-file=starknet-key.json

Development

# Install dependencies
npm install

# Build the CLI
npm run build

# Run in development mode
npm run start

# Run tests
npm test

Support