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

neovim-ink

v0.1.1

Published

Embeddable Neovim editor component for Ink (React for the terminal)

Readme

neovim-ink

An embeddable Neovim editor component for Ink (React for the terminal). Use it as a standalone CLI or embed a full Neovim instance inside your own Ink-based TUI app.

Note: The code in this repository was entirely written by AI (Claude).

Features

  • Full Neovim UI via nvim --embed and msgpack-rpc (ext_linegrid protocol)
  • 24-bit RGB color, cursor shapes (block/vertical/horizontal), highlight attributes
  • Embeddable <NeovimEditor> React component with configurable dimensions and chrome
  • Standalone CLI with --size WxH windowed mode (blinking border, scrolling ASCII cats)
  • Terminal resize handling
  • TypeScript, fully typed

Install

npm install neovim-ink

Requires nvim on your PATH.

CLI usage

# Fullscreen
npx neovim-ink

# Open a file
npx neovim-ink README.md

# Fixed-size window, centered on screen
npx neovim-ink --size 80x24

# Both
npx neovim-ink --size 100x30 src/index.tsx

Library usage

import React from "react";
import { render, Box, Text } from "ink";
import { NeovimEditor } from "neovim-ink";

function App() {
  return (
    <Box flexDirection="column" width={80} height={24}>
      <Box height={1}>
        <Text bold>My TUI App</Text>
      </Box>
      <NeovimEditor
        width={80}
        height={22}
        config={{
          file: "README.md",
          showChrome: false,
          nvimArgs: ["--clean"],
        }}
      />
      <Box height={1}>
        <Text dimColor>:q to close editor</Text>
      </Box>
    </Box>
  );
}

render(<App />);

API

<NeovimEditor>

| Prop | Type | Description | |------|------|-------------| | width | number | Editor width in columns (required) | | height | number | Editor height in rows, including chrome bar (required) | | config | NeovimInkConfig | Configuration object (optional) |

NeovimInkConfig

| Field | Type | Default | Description | |-------|------|---------|-------------| | file | string | — | File to open in the initial buffer | | size | {width, height} | — | Fixed editor size (CLI uses this for centering) | | nvimArgs | string[] | ["--clean"] | Args passed to nvim --embed | | showChrome | boolean | true | Show the bottom status bar | | chromeLabel | string | " neovim-ink " | Right-side label in the chrome bar | | onExit | () => void | — | Called when the Neovim process exits |

useNeovim(width, height, config?)

Lower-level hook for direct access to the Neovim screen buffer and client. Returns { screen, client, sendInput, resize, frameCount }.

License

MIT