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

trickle-cli

v0.1.229

Published

Zero-code runtime observability for JS/Python + AI agent debugging. Traces LangChain, CrewAI, OpenAI, Anthropic, Gemini. Eval, security, compliance, cost tracking. Free, local-first.

Readme

trickle-cli

Runtime type annotations for Python — see tensor shapes, variable types, and crash-time values as you code.

npm install -g trickle-cli
> trickle --help
Usage: trickle [options] [command]

Commands:
  init [options]              Set up trickle in your project
  run [options] [command...]  Run any command with universal type observation
  vars [options]              Show captured variable types and sample values
  hints [options] [file]      Output source code with inline type hints

Quick Start

pip install trickle-observe                         # Python runtime tracer
npm install -g trickle-cli                          # this package
code --install-extension yiheinchai.trickle-vscode  # VSCode inline hints
trickle run python train.py     # run with tracing
trickle hints                   # view source with inline types

Commands

trickle run

Run any Python script with automatic variable tracing. Zero code changes needed.

trickle run python train.py
trickle run python -m pytest tests/
trickle run python manage.py runserver

| Flag | Description | |------|-------------| | --include <patterns> | Only observe matching modules | | --exclude <patterns> | Skip matching modules | | --stubs <dir> | Auto-generate .pyi type stubs after run | | -w, --watch | Watch and re-run on changes |

trickle hints

Output source code with inline type annotations — designed for AI agents and terminal workflows.

trickle hints train.py                     # types for a file
trickle hints --errors                     # crash-time values + error underline
trickle hints --errors --show types        # types only
trickle hints --errors --show values       # values only
trickle hints --errors --show both         # both (default in error mode)

Example output:

def forward(self, x: Tensor[128, 2] float32):
    x: Tensor[128, 256] float32 = self.relu(self.bn0(self.embed(x)))
    x: Tensor[128, 16, 16] float32 = x.view(x.size(0), 16, 16)
    x: Tensor[128, 32, 16] float32 = self.relu(self.bn1(self.conv1(x)))

Error mode:

# train.py — ERROR
# ValueError: could not convert string to float: 'ID' (line 20)
# Variables at crash time:
file_path: string = "demographics.txt"
patient_gait_data: string[] = ["ID\tStudy\tGroup\t..."]
    [float(d) for d in time.split('\t')] for time in patient_gait_data
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  <- ValueError: could not convert string to float: 'ID'

trickle vars

Table view of all captured variables.

trickle vars                     # all variables
trickle vars --tensors           # only tensors
trickle vars --file model.py     # filter by file

trickle init

Set up trickle in a project — configures tsconfig, package.json scripts, .gitignore.

trickle init
trickle init --python

How It Works

Trickle rewrites your Python source via AST transformation before execution. After every variable assignment, it inserts a lightweight call that captures the type and a sample value, then writes to .trickle/variables.jsonl.

  • Only your code is traced — stdlib, site-packages, torch/numpy internals are skipped
  • No code changes. No decorators. No type annotations required
  • The VSCode extension reads this file and renders inline hints

Related Packages

| Package | Description | |---------|-------------| | trickle-observe | Python runtime tracer (pip install trickle-observe) | | trickle-vscode | VSCode extension for inline type hints |

License

Apache-2.0