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

goatnet

v0.0.2

Published

# What Goat does

Downloads

1

Readme

Goat

What Goat does

Goat is a simple library for fetching Bitcoin inscribed data from transaction IDs (currently supporting Ordinals).

How it works

All you need is give goat a Bitcoin transaction ID, and it will give you the inscribed data. The data can be anything. JSON, YAML, image, etc.

  1. Bitcoin mode: When you run a goat command, by default it tries to fetch from a local Bitcoin node through RPC (if it's running)
  2. HTTP mode: If there is no Bitcoin node running, it tries to fetch the raw transaction using a blockchain API.

This ensures that:

  1. Even in the worst case you can always synchronize data through Bitcoin
  2. But in most other cases you can use the convenient HTTP API (since most people don't run their own Bitcoin node)

What Goat can be used for

  1. Decentralized script: Decentralized Dockerfile, docker-compose, and various simple scripts.
  2. Decentralized pointer: You can include anything in your files, such as links to other decentralized storage systems (magnet URIs, IPFS CIDs, and so on). This way you don't have to bloat up the blockchain yet still enjoy the secure and decentralized storage.

What this library does NOT do

  1. URIs not included: It does NOT include any instructions, addresses, or transaction IDs for downloading files. It's simply a library that fetches data from Bitcoin, given a transaction ID.
  2. No upload (at the moment): It's "download only". If you have already posted something on Bitcoin using the Ordinals protocol, you can download using the simple goat command.

Quickstart

Let's try something for fun!

First install GOAT:

npm install -g goatnet

Now let's try fetching some random data from Bitcoin:

goat cat 3aa27d82d84caede8e885f39eb1fc92d01a080e14f5b1a36b28d4764d4f594fd

This will display:

{
  "name": "psbt.ord"
}

Now let's try saving it to a file:

goat get 3aa27d82d84caede8e885f39eb1fc92d01a080e14f5b1a36b28d4764d4f594fd psbt.json

When you run the command, you'll see that the content will be stored at psbt.json

Install

npm install -g goatnet

Quickstart

1. Publish on Bitcoin

Currently Goat does not include a way to inscribe data on Bitcoin. You can do it yourself by using the official Ordinals wallet or 3rd party services like Ordinalsbot

Usage

1. cat

Fetch the data embedded in the Bitcoin transaction at txid and print to screen

goat cat [txid]

2. get

Download the data embedded in the Bitcoin transaction at txid into a file at file path:

goat get [txid] [file path]