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

@secondts/barkd

v0.1.2

Published

OpenAPI client for @secondts/barkd

Readme

barkd

@secondts/barkd

Auto-generated TypeScript/JavaScript client for the barkd REST API, built from its OpenAPI specification.

Installation

npm install @secondts/barkd

Usage

import { Configuration, WalletApi } from "@secondts/barkd";

const config = new Configuration({
  basePath: "http://localhost:3535",
});

const wallet = new WalletApi(config);
const balance = await wallet.balance();

API Endpoints

All URIs are relative to http://localhost

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- BitcoinApi | tip | GET /api/v1/bitcoin/tip | Get bitcoin tip height BoardsApi | boardAll | POST /api/v1/boards/board-all | Board all on-chain bitcoin BoardsApi | boardAmount | POST /api/v1/boards/board-amount | Board a specific amount BoardsApi | getPendingBoards | GET /api/v1/boards/pending | List pending boards DefaultApi | ping | GET /ping | Ping ExitsApi | exitClaimAll | POST /api/v1/exits/claim/all | Claim all exited VTXOs ExitsApi | exitClaimVtxos | POST /api/v1/exits/claim/vtxos | Claim specific exited VTXOs ExitsApi | exitProgress | POST /api/v1/exits/progress | Progress exits ExitsApi | exitStartAll | POST /api/v1/exits/start/all | Start exit for all VTXOs ExitsApi | exitStartVtxos | POST /api/v1/exits/start/vtxos | Start exit for specific VTXOs ExitsApi | getAllExitStatus | GET /api/v1/exits/status | List all exit statuses ExitsApi | getExitStatusByVtxoId | GET /api/v1/exits/status/{vtxo_id} | Get exit status FeesApi | boardFee | GET /api/v1/fees/board | Estimate board fee FeesApi | lightningReceiveFee | GET /api/v1/fees/lightning/receive | Estimate Lightning receive fee FeesApi | lightningSendFee | GET /api/v1/fees/lightning/pay | Estimate Lightning send fee FeesApi | offboardAllFee | GET /api/v1/fees/offboard-all | Estimate offboard-all fee FeesApi | onchainFeeRates | GET /api/v1/fees/onchain | Get on-chain fee rates FeesApi | sendOnchainFee | GET /api/v1/fees/send-onchain | Estimate send-onchain fee LightningApi | generateInvoice | POST /api/v1/lightning/receives/invoice | Create a BOLT11 invoice LightningApi | getReceiveStatus | GET /api/v1/lightning/receives/{identifier} | Get receive status LightningApi | listReceiveStatuses | GET /api/v1/lightning/receives | List all pending receive statuses LightningApi | pay | POST /api/v1/lightning/pay | Send a Lightning payment OnchainApi | onchainAddress | POST /api/v1/onchain/addresses/next | Generate on-chain address OnchainApi | onchainBalance | GET /api/v1/onchain/balance | Get on-chain balance OnchainApi | onchainDrain | POST /api/v1/onchain/drain | Drain on-chain wallet OnchainApi | onchainSend | POST /api/v1/onchain/send | Send on-chain payment OnchainApi | onchainSendMany | POST /api/v1/onchain/send-many | Send to multiple addresses OnchainApi | onchainSync | POST /api/v1/onchain/sync | Sync on-chain wallet OnchainApi | onchainTransactions | GET /api/v1/onchain/transactions | List on-chain transactions OnchainApi | onchainUtxos | GET /api/v1/onchain/utxos | List on-chain UTXOs WalletApi | address | POST /api/v1/wallet/addresses/next | Generate Ark address WalletApi | arkInfo | GET /api/v1/wallet/ark-info | Get Ark server info WalletApi | balance | GET /api/v1/wallet/balance | Get wallet balance WalletApi | connected | GET /api/v1/wallet/connected | Check server connection WalletApi | createWallet | POST /api/v1/wallet/create | Create a wallet WalletApi | getVtxo | GET /api/v1/wallet/vtxos/{id} | Get VTXO detail WalletApi | getVtxoEncoded | GET /api/v1/wallet/vtxos/{id}/encoded | Get encoded VTXO WalletApi | history | GET /api/v1/wallet/history | Get wallet history WalletApi | importVtxo | POST /api/v1/wallet/import-vtxo | Import a VTXO WalletApi | movements | GET /api/v1/wallet/movements | List movements (deprecated) WalletApi | nextRound | GET /api/v1/wallet/next-round | Get next round time WalletApi | offboardAll | POST /api/v1/wallet/offboard/all | Offboard all VTXOs WalletApi | offboardVtxos | POST /api/v1/wallet/offboard/vtxos | Offboard specific VTXOs WalletApi | peekAddress | GET /api/v1/wallet/addresses/index/{index} | Get Ark address by index WalletApi | pendingRounds | GET /api/v1/wallet/rounds | List round participations WalletApi | refreshAll | POST /api/v1/wallet/refresh/all | Refresh all VTXOs WalletApi | refreshCounterparty | POST /api/v1/wallet/refresh/counterparty | Refresh received VTXOs WalletApi | refreshVtxos | POST /api/v1/wallet/refresh/vtxos | Refresh specific VTXOs WalletApi | send | POST /api/v1/wallet/send | Send a payment WalletApi | sendOnchain | POST /api/v1/wallet/send-onchain | Send on-chain from Ark balance WalletApi | sync | POST /api/v1/wallet/sync | Sync wallet WalletApi | vtxos | GET /api/v1/wallet/vtxos | List VTXOs WalletApi | walletDelete | DELETE /api/v1/wallet | WalletApi | walletExists | GET /api/v1/wallet |

License

Released under the MIT license.