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

@onenote/pi-vim-editor

v0.1.1

Published

Vim-style modal editor extension for pi

Downloads

26

Readme

pi-vim-editor

A Vim-style modal editor extension for pi.

Repository: https://github.com/OneNoted/pi-vim-editor

Features

Current feature set:

  • normal / insert / visual / visual-line modes
  • counts
  • motions: h, j, k, l, w, b, e, ge, 0, ^, $, gg, G
  • find motions: f, F, t, T, ;, ,
  • operators: d, c, y
  • common commands: x, X, s, S, D, C, Y, p, P, u
  • text objects: iw, aw
  • visual selection rendering
  • mode label in the editor border

Install

Try without installing

pi -e /path/to/pi-vim-editor

Install from a local path

pi install /path/to/pi-vim-editor

Install from npm

pi install npm:@onenote/pi-vim-editor

Development

Typecheck and run the local crash/smoke suite with Bun:

bun install
bun run typecheck
./scripts/smoke.sh

To preview the published tarball contents:

bun run pack:dry-run

Publish

bunx npm login
bunx npm publish --access public

bun run pack:dry-run is the easiest local packaging check before publishing.

Safety / failure mode

This extension currently relies on pi editor internals to implement modal rendering and behavior.

To reduce host breakage while iterating, it includes a failsafe mode:

  • if modal handling throws, it logs once
  • it falls back to the built-in editor behavior for the rest of the session
  • the mode label shows SAFE

Current limitations

This is already usable, but it is still aiming for tighter Vim parity in areas like:

  • exact text object semantics
  • some edge cases around wrapped lines and empty lines
  • perfect paste behavior in all linewise/charwise combinations
  • long-term compatibility with future pi internal editor changes

Packaging notes

This package follows pi package conventions via the pi key in package.json and is tagged with the pi-package keyword for discoverability.