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

@anypay/walletbot

v1.10.1

Published

Your Money-Sending Robot Friend

Downloads

25

Readme

Deploy GitHub Release Docker Image Pulls GitHub Downloads (all assets, all releases) NPM Downloads

Self-custody, headless wallet service that runs as a daemon process within your data center. It manages your software operation's private keys so that your apps can securely send payments on any peer to peer payments network.

Installation and Setup

The application runs as a long-running process which should be managed by k8s, docker, or your system service manager such as systemd or similar. It may be run in a node.js environment or as an isolated docker container. The single process requires no additional services such as database servers to be run.

Installation with Homebrew for Mac (AMD64 and x86_64)

> brew tap anypay/walletbot
> brew install walletbot
Usage: walletbot [options] [command]

Options:
  -V, --version                                 output the version number
  -s --seed-phrase <seed_phrase>                12-work seed phrase for wallet bot
  -t --auth-token <auth_token>                  anypay api auth token for wallet bot
  -a --api-base <api_base>                      anypay walletbot backend api base url
  -p --prometheus-enabled <prometheus_enabled>  enable prometheus metrics
  -w --websocket-url <websocket_url>            url for websockets connection to server
  -e --websocket-enabled <websocket_enabled>    true or false, connect to websocket server
  -h, --help                                    display help for command

Commands:
  start
  seed-phrase
  list-balances
  help [command]                                display help for command

Generating a 12-Word Seed Phrase

> walletbot seed-phrase

Starting Wallet Bot

> walletbot start \
  --seed-phrase="replace this with your twelve word seed phrase to start sending payments" \
  --auth-token=replacewith-your-anypay-apiauthtoken

Configuring with Environment Variables

In the same terminal shell tab or shell script first export the required environment variables, then you can run walletbot without providing the equivalent command line arguments.

export WALLETBOT_SEED_PHRASE="replace this with your twelve word seed phrase to start sending payments"
export WALLETBOT_AUTH_TOKEN=replacewith-your-anypay-apiauthtoken

walletbot start

Sending a Basic Payment from CLI

> walletbot new-payment \
  --address=12syqu1XwFzGVqTTK5U6EkJaqq2FPeLmRH \
  --quote=USD \
  --value=1.99 \
  --currency=BSV

result:

{
  id: 166150,
  app_id: 160,
  template: [ { currency: 'BSV', to: [Array] } ],
  status: 'unpaid',
  updatedAt: '2024-04-04T12:28:11.273Z',
  createdAt: '2024-04-04T12:28:11.251Z',
  invoice_uid: 'F28WujS5X',
  webpage_url: 'https://anypayx.com/i/F28WujS5X',
  uri: 'pay:?r=https://anypayx.com/r/F28WujS5X',
  uid: 'F28WujS5X'
}

Running in Nodejs (Typescript)

import { WalletBot } from '@anypay/walletbot'

const walletBot = new WalletBot({
  seed_phrase: "replace this with your twelve word seed phrase to start sending payments",
  auth_token: "replacewith-your-anypay-apiauthtoken"
})

walletBot.start()

Running with Docker

docker run anypay/walletbot

Testing

To run tests run npm run test

Development

To commit new code run npm run commit