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

bitsh

v0.1.26

Published

Bitcom Shell

Downloads

6

Readme

bitsh

Bitcom Shell

What is Bitcom?

bitsh

1. What?

bitsh is a shell interface that lets you "sign into" Bitcom, a virtual unix computer on Bitcoin.

The main use case for Bitcom currently is to manage and publish OP_RETURN based application protocols through the Bitcom decentralized directory.

Each account effectively represents an application protocol, and you can customize the home folder of your application protocol to globally publish the protocol to the decentralized Bitcom directory.

Learn more here.

2. Install

Install bitsh globally.

npm install -g bitsh

2. Usage

Run bitsh

bitsh

3. How is Bitsh related to Bitcom?

There is already an NPM package named bitcom, which is a precursor of the bitsh module.

Both packages let you access Bitcom, but bitsh is much more powerful as it's not just a one-off command line application, but an entire shell interface you log into.

Think of the bitcom package as a one-off command line app like git, whereas bitsh is like Bash, but for Bitcom.

4. Key management

Bitsh is also a full fledged HD wallet. Bitsh creates a hidden folder named .bitcom under your home directory. This folder is used to maintain the generated extended private/public keys you can use to log into Bitcom and publish your application protocols.

The folder structure looks like this:

~/.bitcom
  .seed
  /hd
    /0
      .bit
    /1
      .bit
    ..
  /wif
    /[Addr1]
      .bit
    /[Addr2]
      .bit
  ..
  1. The .bitcom folder is automatically created in your home directory when you first launch bitsh
  2. The .bitcom folder contains a single .seed file which contains the seed HD keys from which you will derive your real keys from.
  3. The .bitcom/hd folder maintains the generated keys, incrementing the index every time you create a new key.
  4. The .bitcom/wif folder maintains NON-HD keys you import. You can import external keys simply by running bitsh with bitsh [WIF to import].

5. Commands

You can list the supported commands by typing in

help

Here are the currently supported commands:

a. cat

You can either use > or to to import bit://, b://, c:// URIs to a Bitcom local file

cat X > Y

is equivalent to

cat X to Y

b. echo

You can assign string content to a Bitcom local file

echo "hello world" > description

is equivalent to

echo "hello world" to description

c. history

The history command lists all the Bitcom activities for the account.

history

Or you can run the command for another account:

history ~19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut

d. ls

Display all Bitcom local file names

ls

or display all files for another account:

ls ~9HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut

e. route

Enable or Add bit:// routes to application protocols.

Learn more at bit:// specification.

f. useradd

Register your account on Bitcom. This signals that your account is taken.

useradd

g. whoami

Display current account information

whoami