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

sudo-sandwich

v1.0.2

Published

sudo make me a sandwich — DoorDash sandwich options from the command line (xkcd #149, but real)

Readme

sudo-sandwich

GPT3, sudo make me a sandwich!

xkcd #149 meets DoorDash's dd-cli. A zero-config CLI that refuses to make you a sandwich — until you ask properly — then returns options of where to order one.

Created by David Vatz from Cursor.

Quick start

npx sudo-sandwich

You'll get a short Flibbertigibbeting... moment (cold-open punchline rotates each run), then the sandwich board streams in character-by-character (LLM-style). In demo mode, pick a number to read the description, confirm with Y to fake-checkout, and watch a pithy delivery timeline (≤12s). After delivery: tip the dasher gag (TTY), a shareable ASCII receipt, and a terminal bell (unless quiet).

Skip the typewriter effect: SUDO_SANDWICH_NO_TYPE=1 npx sudo-sandwich
Silence the delivery bell: --quiet / -q or SUDO_SANDWICH_QUIET=1

The refusal gag

npx sudo-sandwich --denied
# make: *** Permission denied. (Hint: you know what to do.)

With real sudo

sudo npx sudo-sandwich
# or
npx sudo-sandwich --granted

Faithful phrase: sudo make me a sandwich!

Opt in to shell wrappers so the literal xkcd line works, while every other make / sudo call passes through unchanged:

npx sudo-sandwich init >> ~/.zshrc
source ~/.zshrc

Then:

make me a sandwich!
# make: *** Permission denied. (Hint: you know what to do.)

sudo make me a sandwich!
# 🥪 Sandwich acquired...

sudo sudo make me a sandwich!
# Double sudo detected. Sandwich priority elevated to realtime.

Undo

  1. Remove the # >>> sudo-sandwich >>># <<< sudo-sandwich <<< block from ~/.zshrc (or ~/.bashrc).
  2. In the current shell: unfunction make sudo (zsh) or unset -f make sudo (bash).

Live DoorDash vs demo data

DoorDash's official CLI (dd-cli) is currently in beta (waitlist). Hybrid by design:

  1. If dd-cli (official beta) or doordash-cli is on your PATH and you're authenticated, results come from a live sandwich search.
  2. Otherwise you get a curated demo board, clearly labeled (demo checkout is fake).

Full login steps: npx sudo-sandwich -h

Default delivery pin is Best Buy HQ7601 Penn Ave S, Richfield, MN 55423. Override with:

npx sudo-sandwich --granted --address "350 5th Ave, New York, NY 10118"
# or
export SUDO_SANDWICH_ADDRESS="…"

Checkout stays in DoorDash — this CLI only surfaces options.

Options

| Flag | Meaning | | --- | --- | | --granted, -g | Skip the refusal gag; show options | | --denied, -d | Show the permission-denied gag | | --pick <n>, -p | Demo mode: select option n and run the delivery timeline (non-interactive) | | --address <addr> | Address for live DoorDash search | | --quiet, -q | No terminal bell on delivery (SUDO_SANDWICH_QUIET=1 also works) | | --sudo-sudo | Double-sudo easter egg (smug cold open / sign-off) | | --help, -h | Help | | init | Print the shell wrapper snippet |

Demo delivery without the prompt (auto tip 20%, still prints receipt; no tip hang):

node bin/cli.js --pick 1 --quiet

Double-sudo easter egg without the shell wrapper:

npx sudo-sandwich --granted --sudo-sudo

Strict xkcd mode (refuse unless elevated / --granted):

SUDO_SANDWICH_REQUIRE_SUDO=1 npx sudo-sandwich

Install (optional)

npm install -g sudo-sandwich
sudo-sandwich --granted

Requires Node.js 18+. Zero runtime dependencies.

License

MIT