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

vim-node-rpc

v0.1.34

Published

A transform module to make vim support RPC request as neovim

Downloads

71

Readme

vim-node-rpc

This module is made to make vim start a messagepack server as neovim does, so that neovim remote plugins could work for vim.

Tested on vim 8.1.150, could works, but still W.I.P.

Install

If you're using coc.nvim, you don't need this module any more.

How it works

group

gif

Play with it

Install nodejs and yarn

Install python-client (used for testing) by:

pip install pynvim

Start testing service by:

./start.sh

Now you can control your vim with python-client from neovim.

Have fun.

API

  • nvim#rpc#start_server() start server.
  • nvim#rpc#check_client({clientId}) check if clientId available.
  • nvim#rpc#request({clientId}, {method}, [{arguments}]) send request.
  • nvim#rpc#notify({clientId}, {method}, [{arguments}]) send notification.

The clientId would be send to client on method nvim_api_get_info as channelId of neovim.

A client can connect to exists RPC server by listen to $NVIM_LISTEN_ADDRESS like neovim client.

Limitation

There're some methods that no clear way to implement for vim:

  • nvim_execute_lua
  • nvim_input
  • nvim_buf_attach
  • nvim_buf_detach
  • nvim_get_hl_by_name
  • nvim_get_hl_by_id
  • nvim_buf_get_keymap
  • nvim_buf_get_commands
  • nvim_buf_add_highlight
  • nvim_buf_clear_highlight
  • nvim_replace_termcodes
  • nvim_subscribe
  • nvim_unsubscribe
  • nvim_get_color_by_name
  • nvim_get_color_map
  • nvim_get_keymap
  • nvim_get_commands
  • nvim_get_chan_info
  • nvim_list_chans
  • nvim_parse_expression
  • nvim_get_proc_children
  • nvim_get_proc

Some methods requires python support of vim to work, you should either have has('python') or has('python3') to 1 with vim.

Performance

Here's the performance data on my mac use CPU: 2.6 GHz Intel Core i7

Request data from vim:

  • 1Mb around 13ms
  • 100kb < 5ms
  • 10kb < 1ms

Request data from server:

  • 1Mb around 53ms
  • 100kb < 7ms
  • 10kb < 2ms

LICENSE

MIT