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

@bcts/envelope-cli

v1.0.0-alpha.16

Published

Gordian Envelope command line tool

Readme

Blockchain Commons Envelope CLI (TypeScript)

Disclaimer: This package is under active development and APIs may change.

Introduction

@bcts/envelope-cli is a command line tool for manipulating Gordian Envelope data structures. Gordian Envelope is a smart document format that supports encryption, elision, and cryptographic assertions.

Features:

  • Create and manipulate Gordian Envelopes
  • Add assertions (subject-predicate-object triples)
  • Encrypt and decrypt envelope contents
  • Sign and verify envelopes
  • Elide (redact) portions of envelopes while maintaining verifiability
  • Work with XID (Extensible Identifier) documents
  • Pattern matching for querying envelope structures

Rust Reference Implementation

This TypeScript implementation is based on bc-envelope-cli-rust v0.31.0 (commit).

Installation

# Install globally
bun add -g @bcts/envelope-cli

# Or run directly with bunx
bunx @bcts/envelope-cli --help

Usage

Creating Envelopes

# Create a simple envelope with a string subject
envelope subject string "Hello, World!"

# Create an envelope with assertions
envelope subject string "Alice" | envelope assertion add pred string "knows" obj string "Bob"

# Wrap an envelope
envelope subject string "Secret" | envelope wrap

Working with Assertions

# Add a predicate-object assertion
envelope assertion add pred string "name" obj string "Alice"

# Find assertions matching a pattern
envelope assertion find pred string "name"

# Remove an assertion
envelope assertion remove pred string "name"

Encryption and Signing

# Generate a private key
envelope generate prvkeys

# Sign an envelope
envelope sign --prvkeys $PRIVATE_KEY

# Verify a signature
envelope verify --pubkeys $PUBLIC_KEY

# Encrypt an envelope
envelope encrypt --key $SYMMETRIC_KEY

# Decrypt an envelope
envelope decrypt --key $SYMMETRIC_KEY

XID Documents

# Create a new XID document
envelope xid new $PRVKEYS

# Add a service to XID
envelope xid service add --name "website" --uri "https://example.com"

# Work with provenance marks
envelope xid provenance get
envelope xid provenance next

Elision

# Elide a portion of an envelope
envelope elide removing $DIGEST

# Reveal elided content
envelope elide revealing $DIGEST

Command Line Reference

Usage: envelope [options] [command]

Commands:
  subject      Create or extract envelope subject
  assertion    Work with assertions
  wrap         Wrap an envelope
  unwrap       Unwrap an envelope
  sign         Sign an envelope
  verify       Verify envelope signatures
  encrypt      Encrypt envelope content
  decrypt      Decrypt envelope content
  elide        Elide envelope content
  compress     Compress an envelope
  decompress   Decompress an envelope
  extract      Extract data from envelope
  format       Format envelope for display
  generate     Generate keys and other values
  xid          Work with XID documents
  sskr         Split/join using SSKR
  walk         Navigate envelope structure

Options:
  -h, --help      Display help
  -V, --version   Display version