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

@zenovate/op-cli

v0.1.4

Published

CLI for OP devices: compile Python to PikaPython bytecode, serial/BLE upload, OP>1 shell and OP>2 REPL

Readme

@zenovate/op-cli

CLI for OP devices: compile Python to PikaPython bytecode (.py.o), upload over serial or BLE, with OP>1 JSON command mode and OP>2 Python REPL.

Install

npm install -g @zenovate/op-cli

Project-local:

npm install -D @zenovate/op-cli
npx op-cli --help

Commands

| Task | Command | |------|---------| | Version | op-cli --version | | Compile .py | op-cli compile hello.py | | Upload file | op-cli upload hello.py.o /py -p COM3 -b 9600 | | Compile + upload + run | op-cli deploy hello.py /py -p COM3 -b 9600 | | JSON / params (OP>1) | op-cli shell -p COM3 -b 9600 | | Python REPL (OP>2) | op-cli python -p COM3 -b 9600 | | BLE scan | op-cli ble-scan | | Raw monitor | op-cli monitor -p COM3 |

op-cli python sends OP>2 automatically — you do not type OP>2 manually.

deploy — compile, upload, and run

deploy compiles a .py file, uploads the .py.o to the device, then runs it with {"PythonFileRun":"<filename>"} (filename only, e.g. hello.py.o). Use upload instead if you only want to transfer a file without running it.

Flow: compile → connect → upload → PythonFileRun → (optional) raw monitor until Ctrl+C.

# Serial: compile, upload, run, then exit after JSON response
op-cli deploy examples/hello.py /py -p COM3 -b 9600

# BLE: run then stay in monitor (ASCII, default)
op-cli deploy examples/hello.py /py --ble AA:BB:CC:DD:EE:FF --monitor

# Monitor with hex + timestamp
op-cli deploy examples/hello.py /py -p COM3 --monitor --hex --timestamp

| Flag | Default | Description | |------|---------|-------------| | -o / --output | temp dir | Local .py.o output path | | --remote-name | compiled name | Filename on device (used for PythonFileRun) | | --monitor | off | After run succeeds, print raw device output until Ctrl+C | | --run-timeout | 30 | Seconds to wait for PythonFileRun JSON response | | --hex | off | Hex display during --monitor | | --timestamp | off | Timestamp prefix during --monitor | | -p / --ble | — | Serial port or BLE address (one required) | | -b / -c | 115200 | Serial baud or full config, e.g. 9600,N,8,1 | | --packet-size | 100 | Upload chunk size (bytes) | | --skip-command-mode | off | Skip OP>1 before upload |

Examples

Serial (Windows)

op-cli deploy examples/hello.py /py -p COM3 -b 9600
op-cli deploy examples/hello.py /py -p COM3 -b 9600 --monitor
op-cli shell -p COM3 -b 9600
op-cli python -p COM3 -b 9600
op-cli monitor -p COM3

Serial config string (-c, same as 9600,N,8,1)

op-cli shell -p COM5 -c "9600,N,8,1"

BLE

op-cli ble-scan
op-cli deploy examples/hello.py /py --ble <address>
op-cli deploy examples/hello.py /py --ble <address> --monitor --hex
op-cli python --ble <address>
op-cli monitor --ble <address>

Help

op-cli --help
op-cli <command> --help
op-cli deploy --help