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

bartleby-cli

v1.0.0

Published

A professional CLI invoice generator

Readme


     ...     ..                                    s          ..                  ..
  .=*8888x <"?88h.                                :8    x .d88"             . uW8"        ..
 X>  '8888H> '8888                  .u    .      .88     5888R              `t888        @L
'88h. `8888   8888         u      .d88B :@8c    :888ooo  '888R        .u     8888   .   9888i   .dL
'8888 '8888    "88>     us888u.  ="8888f8888r -*8888888   888R     ud8888.   9888.z88N  `Y888k:*888.
 `888 '8888.xH888x.  .@88 "8888"   4888>'88"    8888      888R   :888'8888.  9888  888E   888E  888I
   X" :88*~  `*8888> 9888  9888    4888> '      8888      888R   d888 '88%"  9888  888E   888E  888I
 ~"   !"`      "888> 9888  9888    4888>        8888      888R   8888.+"     9888  888E   888E  888I
  .H8888h.      ?88  9888  9888   .d888L .+    .8888Lu=   888R   8888L       9888  888E   888E  888I
 :"^"88888h.    '!   9888  9888   ^"8888*"     ^%888*    .888B . '8888c. .+ .8888  888"  x888N><888'
 ^    "88888hx.+"    "888*""888"     "Y"         'Y"     ^*888%   "88888%    `%888*%"     "88"  888
        ^"**""        ^Y"   ^Y'                            "%       "YP'        "`              88F
                                                                                               98"
                                                                                             ./"
                                                                                            ~`

Bartleby Invoice Generator

A professional CLI tool for generating PDF invoices, completely offline, even when you'd prefer not to.

Features

  • Interactive CLI interface
  • Generate professional PDF invoices
  • Manage clients and payment methods
  • Configure business details
  • Auto-increment invoice numbers per client
  • Customizable tax rates
  • All data stored locally as JSON files
  • Completely customisable

Installation

Global Installation

npm install -g .
bartleby

Local Usage

npm install
npx bartleby

Usage

Main Menu

Run bartleby or npx bartleby to open the interactive menu:

bartleby

Options:

  • Generate invoice
  • Add client
  • Add payment method
  • Configure business details
  • View recent invoices
  • View all clients
  • View payment methods

CLI Commands

List Recent Invoices

bartleby list

View/Update Configuration

bartleby config

Generate Invoice Directly

bartleby generate

Data Storage

All data is stored in ~/.bartleby/:

  • clients.json - Client information
  • invoices.json - Invoice records
  • paymentMethods.json - Payment method templates
  • config.json - Business configuration

PDF Output

Generated invoices are saved to ~/Documents/invoices/ by default (configurable).

Filename format: INV-0001_ClientName.pdf

Configuration

On first run, you'll be prompted to configure:

  • Business name
  • Business address
  • Business email
  • Business phone
  • Tax rate (%)
  • Invoice number prefix
  • Output directory path

Invoice Generation Flow

  1. Select or create a client
  2. Enter invoice date (defaults to today)
  3. Review auto-suggested invoice number
  4. Add line items (description, quantity, rate)
  5. Review subtotal, tax, and total
  6. Select payment method
  7. Generate PDF

Requirements

  • Node.js 14.0.0 or higher

License

MIT