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

bjs-menu-nutrition

v1.0.0

Published

Offline BJ's Restaurant meal builder: total calories, protein, carbs, fat and sodium for a meal, flag missing values, and filter menu items by calories and allergens. Library + CLI, zero dependencies.

Readme

bjs-menu-nutrition

Total the calories, protein, carbs, fat and sodium of a BJ's Restaurant & Brewhouse meal, offline. Pick a main, sides, drinks and desserts (with quantities) and get meal totals, the allergens in the meal, and a clear flag on every item that has no published value, so a total is never silently low.

The bundled menu has 183 items (132 with published nutrition). Items listed only per slice, and items with no published value, are not added to a total; the total is shown with a + and the items are named. Unknown allergen info never passes an allergen filter.

Install

npm install bjs-menu-nutrition
# or run the CLI without installing
npx bjs-menu-nutrition total "BJ's Wagyu Burger" "2x Avocado Egg Rolls"

CLI

bjs-menu-nutrition total "BJ's Wagyu Burger" "2x Avocado Egg Rolls"
bjs-menu-nutrition search pizookie
bjs-menu-nutrition filter --max-cal 600 --min-protein 30 --without Milk --role main
bjs-menu-nutrition categories
1 x BJ's Wagyu Burger
2 x Avocado Egg Rolls

Calories 3,210 cal
Protein  68 g
Carbs    322 g
Fat      186 g
Sodium   5,669 mg
Allergens: Eggs, Fish, Milk, Other Gluten, Soy, Sulfites, Tree Nuts, Wheat

Add --json for machine-readable output.

Library

const m = require('bjs-menu-nutrition');

const meal = m.total(["BJ's Wagyu Burger", '2x Avocado Egg Rolls', 'California Club Flatbread']);
console.log(m.formatTotal(meal.totals.cal));      // "1,230 cal+" style partial totals
console.log(meal.totals.cal.missing);             // ['California Club Flatbread'] (per slice only)
console.log(meal.allergens, meal.allergenUnknown);

m.search('pizookie');                             // items whose name has every word
m.filter({ maxCal: 600, minProtein: 30, without: ['Milk'], role: 'main' });

How totals work

  • 2x Name sets a quantity (1-99).
  • A name can be the item id, the exact name, or words that match exactly one item; an ambiguous query such as burger is an error that lists the matches.
  • A nutrient with no published value, or an item listed per slice, is skipped and named in missing; the formatted total ends with +. If no item in the meal has the value, it reads Not listed.

Links

  • Full menu with prices, photos and per-item nutrition: BJ's menu
  • Source: https://github.com/nbkdevs/bjs-menu
  • Issues: https://github.com/nbkdevs/bjs-menu/issues

Notes

Values are as published by the restaurant and can change; check with your server about allergies. Unofficial; not affiliated with BJ's Restaurants, Inc.

Licence

MIT