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

@openpets/terminal-shop

v1.0.0

Published

Order coffee and merchandise from Terminal Shop - the developer-focused coffee company. Browse products, manage your cart, addresses, payment methods, and subscriptions.

Downloads

153

Readme

Terminal Shop Plugin

Order coffee and merchandise from Terminal Shop - the developer-focused coffee company.

Features

  • Browse products and variants
  • Manage shopping cart
  • Create and manage shipping addresses
  • Handle payment methods
  • Place orders
  • Set up recurring subscriptions
  • View order history and tracking

Setup

1. Get Your API Token

Terminal Shop uses SSH-based authentication. Follow these steps:

ssh terminal.shop

If prompted about host authenticity, type yes to continue.

Once connected to the Terminal Shop TUI:

  1. Press a to open Account
  2. Use arrow keys to navigate to "access tokens"
  3. Press Enter to create a new token
  4. Copy the token - it will be in this format: trm_live_[...]

2. Configure the Plugin

cp .env.example .env

Edit .env and add your token:

TERMINAL_BEARER_TOKEN=trm_live_your_token_here

3. Test Connection

opencode run "test terminal shop connection"

Usage

Browse Products

opencode run "list all terminal shop products"
opencode run "get details for product prod_xxx"

Shopping Cart

opencode run "show my terminal shop cart"
opencode run "add 2 bags of coffee variant var_xxx to my cart"
opencode run "clear my terminal shop cart"

Checkout Flow

opencode run "list my saved addresses"
opencode run "create a new shipping address"
opencode run "set shipping address for my cart"
opencode run "checkout and place my order"

Order History

opencode run "show my order history"
opencode run "get details for order ord_xxx"

Subscriptions

opencode run "list my coffee subscriptions"
opencode run "create a bi-weekly coffee subscription"
opencode run "cancel my subscription"

Available Tools

| Tool | Description | |------|-------------| | terminal-shop-test-connection | Test API connection and account status | | terminal-shop-list-products | List all available products | | terminal-shop-get-product | Get product details | | terminal-shop-get-profile | Get user profile | | terminal-shop-update-profile | Update user profile | | terminal-shop-get-cart | View shopping cart | | terminal-shop-add-to-cart | Add/update cart items | | terminal-shop-clear-cart | Clear all cart items | | terminal-shop-set-cart-address | Set cart shipping address | | terminal-shop-set-cart-card | Set cart payment method | | terminal-shop-checkout | Convert cart to order | | terminal-shop-list-addresses | List saved addresses | | terminal-shop-get-address | Get address details | | terminal-shop-create-address | Create new address | | terminal-shop-delete-address | Delete an address | | terminal-shop-list-cards | List saved payment cards | | terminal-shop-get-card | Get card details | | terminal-shop-delete-card | Delete a card | | terminal-shop-get-card-collection-url | Get Stripe card collection URL | | terminal-shop-list-orders | List order history | | terminal-shop-get-order | Get order details | | terminal-shop-create-order | Create direct order (skip cart) | | terminal-shop-list-subscriptions | List active subscriptions | | terminal-shop-get-subscription | Get subscription details | | terminal-shop-create-subscription | Create recurring subscription | | terminal-shop-update-subscription | Update subscription settings | | terminal-shop-cancel-subscription | Cancel a subscription | | terminal-shop-list-tokens | List API tokens | | terminal-shop-create-token | Create new API token | | terminal-shop-delete-token | Delete an API token | | terminal-shop-init-view | Get available regions |

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | TERMINAL_BEARER_TOKEN | Yes | Bearer token for API authentication | | TERMINAL_ENVIRONMENT | No | production (default) or dev |