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

@lucrbvi/monika

v0.0.3

Published

React renderer for the terminal, powered by Bun's markdown renderer

Readme

Monika

Monika is a lightweight and fast library to render React components inside your terminal.

It's using Bun's Markdown renderer to display the component beautifully (yes, it's translating the HTML generated by your components into markdown, then into ANSI characters).

You cannot use Monika without Bun (unfortunately other runtimes don't support the markdown renderer)!

Get started

Install the package using your favourite package manager.

Note: I will try to reclaim the monika package on NPM since it's maintainer is squatting and not maintaining it.

bun add @lucrbvi/monika

Also try to get familiar with the library by reading the example.tsx in the root of the repo. This example includes advances React 19.2 features like Activity, Suspense, use and more.

Features

Classic CLI or TUI

With Monika you can build Terminal User Interfaces, which uses your terminal like a screen and will delete everything on your terminal, or you can just use the classic "append" mode, it will not break the rerendering (use renderCLI or renderTUI to choose).

Inputs and click detection

Monika have custom hooks to listen to inputs and click events at each frames.

You can make your component mouse friendly by using the useClick hook and then adding the onClick field inside your tag.

If you use useClick you will not be able to select text with your mouse!

Example of a clickable counter:

import { useState } from "react";
import { renderCLI, useClick, useInput } from "@lucrbvi/monika";

export default function App() {
    const [count, setCount] = useState(0);

    useClick(); // uses `useMouse` behind

    useInput(({ ctrl, name }) => {
      if (ctrl && name === "c") process.exit(0);
    });

    return (
        <div>
          <hr/>
          <button onClick={() => setCount(count + 1)}>
            Click on me! {count}
          </button><br/>
          <hr/>
        </div>
    );
}

renderCLI(<App />); // change this to `renderTUI` to try the other mode

This example demonstrate the