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 🙏

© 2025 – Pkg Stats / Ryan Hefner

shellbridge

v0.1.18

Published

Enabling interactive shell inside editors like vim

Downloads

38

Readme

shellbridge is a daemon written in javascript, enabling an interactive shell experience inside editors like vim. Inspired by xiki but in a different way.

  • Execute arbitrary shell commands in text editors
  • Multiple long-lasting commands can be running in parallel
  • Interactive commands supported like mysql, redis-cli, ssh and even bash.

Demo on vim

alt tag

Prerequisite

  • vim 7.3+ compiled with +client-server option
  • newer nodejs

You may get them by apt-get install nodejs npm vim vim-gnome on ubuntu.

My env. is ubuntu 14.04, nodejs 0.10.25 and vim 7.4 p183.

For Ubuntu 12.04, please install newer node and npm from PPA and the official installer script.

How to install

  1. sudo npm install -g shellbridge
  2. shellbridge --server to start the daemon
  3. echo source `npm root -g`/shellbridge/editors/shellbridge.vim >> ~/.vimrc
  4. Start vim with any servername, eg. vim --servername anyword
  5. Alt-n to initialize the shellbridge interface
  6. Insert echo 123 then Alt-n to execute the line

Q & A

How can I run with root?

echo <your pwd> | sudo -S bash will do the trick. For convenient, you could map it in your ~/.shellbridgerc to have a quick start next time.

How can I run the mysql client?

You may start by mysql -n. A mapping is shipped in the default shellbridgerc, you should be able to start it by mysql only.

Can shellbridge be run on editors other than vim?

Sure, in fact shellbridge interact with editors through only 2 commands: insertCmd & editorCmd. shellbridge can talk to everything has these 2 APIs implemented. The first step would be configuring your ~/.shellbridgerc and hack your favorite editor.

Can I change those key mappings in vim?

Yes, every key mapping can be changed. Feel free to add mapping below in your ~/.vimrc

let g:shellbridge_init = "<m-n>"

Available mappings are g:shellbridge_init g:shellbridge_exec g:shellbridge_kill g:shellbridge_cleanup g:shellbridge_select g:shellbridge_next g:shellbridge_previous g:shellbridge_sort g:shellbridge_filter

Updates

0.1.17

  • supported performing actions below inside output
    • clear
    • sort
    • filter

0.1.13

  • added syntax highlight to ended commands
  • revamped the end-to-end architecture

0.1.12

  • supported filtering output by alt f

0.1.10

  • identified lines indented as sub-command, no need to be indented with exactly 2 spaces
  • updated default key mappings:
    1. alt n to start/execute
    2. alt s to sort
  • showed all key mappings when started

0.1.7

  • vim key mappings are now configurable
  • optimized vim conceal
  • fixed the abnormal highlighting

0.1.3

  • Supported multiple line execution and added output buffer

Getting Involved

This simple project is fun. I enjoy so much working on it. Please feel free to ask/file issue if you got any problem on setup. Any suggestions are welcome. Thanks so much for giving it a try. :)