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

@console-inline/service

v2.0.0

Published

Runtime helper for [console-inline.nvim](https://github.com/comfucios/console-inline.nvim). Importing this package patches the global `console` object so every `log/info/warn/error` call is forwarded to your Neovim instance and displayed inline as virtual

Readme

@console-inline/service

Runtime helper for console-inline.nvim. Importing this package patches the global console object so every log/info/warn/error call is forwarded to your Neovim instance and displayed inline as virtual text.

Inspired by the workflow popularised by Wallaby.js Console Ninja — think of this as the Neovim-native counterpart.

Stack traces from console.trace are captured as well, giving you inline call stacks alongside traditional log output. Timers started with console.time and completed via console.timeEnd/console.timeLog report their elapsed duration right next to the terminating call. Uncaught runtime errors and unhandled promise rejections are intercepted so they appear inline just like any other log entry. Timers started with console.time and completed via console.timeEnd/console.timeLog report their elapsed duration right next to the terminating call.

Required: make sure the Neovim plugin is installed and its TCP server is running (autostart = true by default). Without the plugin listening on the configured host and port this package will keep retrying and queueing messages.

Installation

npm install @console-inline/service

Use any bundler/runtime that understands ESM (Node 16+, Vite, Next.js, etc.).

Quick start

Node.js / CLI

import "@console-inline/service";

console.log("Hello from Node!");
console.warn({ status: "demo" });
console.trace("Inspect call stack");
console.info("info");
console.error("error");

Browser / React

For browsers, the Neovim plugin auto-starts the bundled relay (:ConsoleInlineRelayBuild / npm run build:relay).

// e.g. in src/main.tsx
import "@console-inline/service";

console.info("Rendered from the browser");
console.warn({ status: "demo" });
console.trace("Inspect call stack");
console.log("log");

In Node runtimes the package connects directly to the Neovim TCP endpoint; browser runtimes rely on the auto-started relay managed by the Neovim plugin. No extra scripts required.

By default the service only patches consoles in development (NODE_ENV !== "production", import.meta.env.DEV, etc.). Set CONSOLE_INLINE_ENABLED=true to keep it on, or CONSOLE_INLINE_DISABLED=true to opt out.

Configuration

Environment variables let you point the relay at a different host/port or tweak behaviour:

| Variable | Default | Description | | -------------------------------- | ----------- | ------------------------------------------------- | | CONSOLE_INLINE_HOST | 127.0.0.1 | Hostname of the Neovim TCP server | | CONSOLE_INLINE_PORT | 36123 | TCP port exposed by console-inline.nvim | | CONSOLE_INLINE_WS_RECONNECT_MS | 1000 | Delay between WebSocket reconnect attempts | | CONSOLE_INLINE_MAX_QUEUE | 200 | Maximum buffered messages while Neovim is offline | | CONSOLE_INLINE_DEBUG | off | Enables verbose logging for troubleshooting |

Set these in your shell (export) or via process.env / import.meta.env before the first import executes.

Troubleshooting

  • Ensure Neovim has the plugin loaded and listening (:ConsoleInlineStatus).
  • If you change the plugin’s host/port, mirror the same values as environment variables before starting your Node/Vite app.
  • Use CONSOLE_INLINE_DEBUG=1 to print connection attempts, retries, and queue drops.
flowchart TD
    A[Start Node/Vite/Browser App] --> B{Connect to Neovim Plugin?}
    B -- Yes --> F[Messages forwarded to Neovim and displayed inline]
    B -- No --> C[Retry and queue messages]
    C --> D[Check Neovim plugin loaded and listening - :ConsoleInlineStatus]
    D --> E[Verify host/port configuration]
    E --> G[Enable debug logging - CONSOLE_INLINE_DEBUG=1]
    G --> B