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

ebag

v0.1.5

Published

Unofficial CLI for interacting with ebag.bg using cookie-based auth.

Readme

ebag

CLI for interacting with ebag.bg (unofficial).

Installation

npm install -g ebag

Or run without installing:

npx ebag --help

Login

Get the cookie header from your browser and store it:

ebag login --cookie "<cookie>"

Data and storage

  • Config is stored in ~/.config/ebag (override with EBAG_CONFIG_DIR).
  • Session data is stored in plain text at ~/.config/ebag/session.json with owner-only permissions (0600).
  • List-based search caches product details in ~/.config/ebag/cache.json for up to 6 hours.
  • Completed orders may be cached locally for faster access, and the order cache is retained indefinitely.

Products

ebag product search "lindt"
ebag product search "lindt" --json
ebag product show 5128

Delivery slots

ebag slots

Orders

ebag order list
ebag order list --from 2024-02-01 --to 2024-03-31
ebag order show DE9CD146FECD05BF

Cart

ebag cart add 5128 --qty 1
ebag cart update 5128 --qty 2
ebag cart show

Lists

ebag list show
ebag list add 753250 5128 --qty 1
ebag list show 753250

Contributing

Build

npm run build

Unit tests

npm run test:unit

End-to-end tests

Requires a valid session in tests/.config/ebag/session.json (gitignored):

npm run test:e2e

All tests

npm test

Changelog

0.1.5

  • Fix order totals to use paid amounts across primary and additional orders without double-counting tip
  • Stabilize e2e cart/list mutation flow by retrying with other search candidates when the first product is unavailable

0.1.4

  • Show out-of-stock status and expected restock date in cart output

0.1.3

  • Require --qty for cart update command

0.1.2

  • Log unknown order statuses in the lib layer and warn in the CLI
  • Add tests for order status logging and CLI warnings

0.1.1

  • Add logging in the config directory

0.1.0

  • Initial release