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

tpuff-cli

v0.3.0

Published

A TypeScript CLI for interacting with turbopuffer vector database

Readme

Turbopuffer CLI (tpuff)

A TypeScript CLI for interacting with turbopuffer. This tool allows you to list and filter namespaces, browse namespace data, perform full-text search, and export metrics to Prometheus.

Prerequisites

  • Node.js 20+
  • A turbopuffer API key
  • Docker (optional, required for Python-only embedding models and/or exporter)

Set the following environment variables:

  • TURBOPUFFER_API_KEY: Your turbopuffer API key
  • TURBOPUFFER_REGION: Region to use (defaults to aws-us-east-1)

Installation

Install globally via npm or bun:

npm install -g tpuff-cli

or

bun add -g tpuff-cli

Then use the tpuff command directly:

tpuff [command] [options]

Usage

list (alias: ls)

List all namespaces with detailed metadata in a formatted table, or list documents in a specific namespace.

List all namespaces:

tpuff ls

Displays a table with:

  • Namespace name (bold)
  • Approximate row count
  • Logical bytes (formatted)
  • Index status (green for "up-to-date", red for "updating")
  • Created timestamp
  • Updated timestamp

List documents in a namespace:

tpuff list -n <namespace>

List all namespaces across regions:

tpuff ls -A

search

Search for documents in a namespace using vector similarity or full-text search.

Vector similarity search: Xenova models allow for local embedding generation in typescript.

tpuff search "your query text" -n my-namespace -m Xenova/all-MiniLM-L6-v2

Using Python-only models (automatic Docker support):

tpuff search "your query text" -n my-namespace -m sentence-transformers/all-MiniLM-L6-v2

The CLI automatically detects Python-only models and uses Docker to run a container to do embeddings On first use, it will pull the Docker image and start the container automatically.

See DOCKER.md for detailed documentation on how it works, manual management, and troubleshooting.

Full-text search (BM25):

tpuff search "your query text" -n my-namespace --fts content-field

Filter search:

tpuff search "your query text" -n my-namespace -f '["field", "Eq", "value"]'

Options:

  • -n, --namespace <name>: Namespace to search in (required)
  • -m, --model <id>: HuggingFace model ID for vector search
  • -k, --top-k <number>: Number of results to return (default: 10)
  • -d, --distance-metric <metric>: Distance metric (cosine_distance or euclidean_squared)
  • -f, --filters <filters>: Additional filters in JSON format
  • --fts <field>: Field name to use for full-text search (BM25)
  • -r, --region <region>: Override the region

delete

Delete a namespace:

tpuff delete -n my-namespace

Delete a prefix of namespaces:

tpuff delete --prefix my-namespace-

Delete ALL namespaces (requires confirmation):

tpuff delete --all

edit

Edit a document by ID using vim:

tpuff edit <document-id> -n my-namespace

This will open the document in vim. Save and quit (:wq) to upsert changes, or quit without saving (:q!) to cancel.

Monitoring & Observability

The CLI includes a built-in Prometheus exporter and Grafana dashboard for monitoring your namespaces.

image

See monitoring.md for detailed instructions on:

  • Running the Prometheus exporter
  • Configuring Grafana dashboards
  • Observability best practices

Roadmap

  • Recall evaluation metrics
  • Cursor for namespace pagination
  • Cache status and warming option
  • Third party embedding generation (e.g. OpenAI, Cohere, etc.)
  • Namespace backup and restore (to s3 or file)
  • Filterable property management
  • Feedback welcome (file an issue)