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

bkper

v4.13.1

Published

Command line client for Bkper

Readme

A unified interface for Bkper. Use bkper in two complementary modes:

  • Interactive mode — run bkper agent to open the Bkper Agent TUI
  • Command mode — run bkper <command> for explicit CLI workflows, scripts, and automation

With one tool, you can build and deploy Bkper apps, and manage financial data -- books, accounts, transactions, and balances.

npm

Quick Start

Prerequisites

Install (choose one)

bun add -g bkper
npm i -g bkper
pnpm add -g bkper
yarn global add bkper

Authenticate

bkper auth login

This is the only command that opens the browser OAuth flow.

Other commands:

  • use stored credentials when available
  • otherwise return an authentication error instead of starting login automatically
  • can also work behind an external proxy that injects auth headers

When you are done working in a sandbox, run bkper auth logout to revoke the stored refresh token and clear local credentials.

Start using bkper

# Show CLI help
bkper
# Interactive mode (agent TUI)
bkper agent
# Command mode (explicit command)
bkper book list

Pick a book and create your first transaction:

bkper transaction create -b <bookId> --description "Office supplies 123.78"

Run bkper --help or bkper <command> --help for built-in documentation on any command.

Access Token

Use the access token for direct API calls from any tool. This requires a prior bkper auth login, and bkper auth token does not start a browser login flow:

# Print the current access token
TOKEN=$(bkper auth token)

# Use it with curl, httpie, or any HTTP client
curl -s -H "Authorization: Bearer $TOKEN" \
  https://api.bkper.app/v5/books | jq '.items[].name'

Interactive Mode (powered by Pi)

Run bkper agent to start the embedded Bkper Agent TUI. Running bkper with no arguments shows CLI help.

Bkper's agent mode is intentionally a thin wrapper around Pi:

  • Pi provides the core agent runtime and TUI
  • bkper adds Bkper-specific domain context and startup maintenance behavior

Startup maintenance (non-blocking)

On each agent startup, bkper performs a background CLI auto-update check (same behavior as command mode).

Pi passthrough

Use Pi CLI features directly through bkper:

bkper agent <pi-args>

If no Pi arguments are provided, bkper agent starts the interactive Bkper Agent experience. If Pi arguments are provided, everything after bkper agent is passed through to Pi.

Examples:

bkper agent -p "Summarize this repository"
bkper agent --model openai/gpt-4o -c
bkper agent install <pi-package-source>
bkper agent --help

bkper agent keeps Bkper defaults (including the Bkper system prompt) unless you explicitly pass --system-prompt. Use bkper help agent for the Bkper CLI command help, and bkper agent --help for Pi help.

For all available passthrough flags and commands, see the Pi CLI reference: https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent#cli-reference

Pi-specific extensions are loaded from Pi extension folders (for example .pi/extensions and ~/.pi/agent/extensions).


Data Management

Manage books, files, accounts, transactions, and balances.

bkper book list
bkper file upload ./receipt.pdf -b <bookId>
bkper file get <fileId> -b <bookId>
bkper transaction create -b <bookId> --description "Team lunch" --file ./receipt.pdf
bkper account list -b <bookId>
bkper transaction list -b <bookId> -q 'on:2025' --format csv
bkper balance list -b <bookId> -q 'on:2025-12-31' --format csv

Full Data Management reference


App Management

Build, deploy, and manage Bkper apps.

bkper app init my-app
bkper app dev
bkper app sync && bkper app deploy
bkper app logs --last 50
bkper app logs --since 5m --preview --events
bkper app logs --json

bkper app logs reads recent app logs kept for 15 days. The default output is human-readable, and JSON is available with --json or --format json.

Log request URLs and sensitive headers follow Cloudflare's default redaction rules, and this first release supports recent retrieval only (last N plus optional time filters), not full-text search.

Full App Management reference


Library

The getOAuthToken function returns a Promise that resolves to a valid OAuth token, for use with the bkper-js library:

import { Bkper } from 'bkper-js';
import { getOAuthToken } from 'bkper';

Bkper.setConfig({
    oauthTokenProvider: async () => getOAuthToken(),
});