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

@sarthak_krishak/inkforge

v0.4.3

Published

Beautiful terminal UI components for React/Ink — shadcn/ui for your terminal

Readme

InkForge

npm version npm downloads license node React Ink

Beautiful terminal UI components for React/Ink — scaffolded in one command, owned forever.

shadcn/ui for your terminal. Built for the AI coding agent era.


What is InkForge?

InkForge gives you polished, production-ready terminal components — spinners, progress bars, and more — that you actually own. Instead of a locked npm dependency buried in node_modules, InkForge copies the source code directly into your project. Read it. Edit it. Make it yours.


Quick Start

Step 1 — Create a new empty folder and open a terminal inside it

mkdir my-cli-app
cd my-cli-app

Step 2 — Scaffold the project

npx @sarthak_krishak/inkforge init

This creates everything your project needs:

| Created | Description | |---|---| | package.json | Configured with type: module, start script, and all dependencies listed | | vite.config.js | Vite + React plugin config | | app.jsx | Starter app — edit this to build your CLI |

Step 3 — Install dependencies

npm install

Step 4 — Add the components you want

npx inkforge add spinner
npx inkforge add progressbar

This copies the component source files directly into your project. You own them now.

Step 5 — Open app.jsx, import your components, and run

import { Spinner }     from './components/inkforge/Spinner/index.jsx';
import { ProgressBar } from './components/inkforge/ProgressBar/index.jsx';
npm start

Full example app.jsx

import React, { useState, useEffect } from 'react';
import { render, Box, Text } from 'ink';
import { Spinner }     from './components/inkforge/Spinner/index.jsx';
import { ProgressBar } from './components/inkforge/ProgressBar/index.jsx';

function App() {
  const [progress, setProgress] = useState(0);
  const [done, setDone]         = useState(false);

  useEffect(() => {
    const t = setInterval(() => {
      setProgress(p => {
        if (p >= 100) { clearInterval(t); setDone(true); return 100; }
        return p + 5;
      });
    }, 150);
    return () => clearInterval(t);
  }, []);

  return (
    <Box flexDirection="column" padding={1} gap={1}>
      <Text bold color="cyan">My CLI App</Text>
      <Spinner label="Building..."  done={done} doneText="✓ Build complete!"  />
      <Spinner label="Installing..." done={done} doneText="✓ Packages ready!" variant="bounce" theme="cyberpunk" />
      <ProgressBar value={progress} label="Progress " />
      <ProgressBar value={progress} label="Memory   " variant="block" color="#E5C07B" />
    </Box>
  );
}

render(<App />);

Project structure after setup

my-cli-app/
│   └── components/
│       └── inkforge/
│           ├── Spinner/
│           │   └── index.jsx       ← edit freely
│           ├── ProgressBar/
│           │   └── index.jsx       ← edit freely
│           └── core/
│               └── colors.js       ← theme colors
├── app.jsx                         ← your app starts here
├── vite.config.js
└── package.json

Components

Spinner

Animated loading indicator with 5 variants and a done state.

<Spinner variant="dots"   label="Fetching data..."      />
<Spinner variant="bounce" label="Processing request..."  theme="cyberpunk" />
<Spinner variant="arc"    label="Compiling..."           />
<Spinner variant="line"   label="Connecting..."          />
<Spinner variant="simple" label="Waiting..."             />

// Switches to a completion message when done={true}
<Spinner label="Deploying..." done={isDone} doneText="✓ Deployed!" />

Spinner Props

| Prop | Type | Default | Description | |---|---|---|---| | variant | string | 'dots' | Animation style: dots line bounce arc simple | | label | string | 'Loading...' | Text shown next to the spinner | | color | string | theme primary | Spinner color (any hex value) | | theme | string | 'default' | Color theme: 'default' or 'cyberpunk' | | interval | number | 120 | Animation speed in milliseconds | | done | boolean | false | When true, switches to done state | | doneText | string | '✓ Done' | Message shown when done is true |


ProgressBar

Fillable progress bar with 3 visual styles.

<ProgressBar value={75} label="Build" />
<ProgressBar value={45} total={200} label="Files" showValue />
<ProgressBar value={progress} variant="thin"  label="Upload" />
<ProgressBar value={progress} variant="block" label="Memory" />
<ProgressBar value={progress} color="#E5C07B" label="CPU"    />
<ProgressBar value={progress} theme="cyberpunk" label="Hack" />

ProgressBar Props

| Prop | Type | Default | Description | |---|---|---|---| | value | number | 0 | Current progress value | | total | number | 100 | Maximum value | | width | number | 30 | Bar width in characters | | label | string | '' | Label shown before the bar | | showPercent | boolean | true | Show percentage on the right | | showValue | boolean | false | Show value/total instead of percentage | | color | string | theme success | Fill color (any hex value) | | bgColor | string | theme muted | Empty bar color (any hex value) | | theme | string | 'default' | Color theme: 'default' or 'cyberpunk' | | variant | string | 'default' | Bar style: 'default' 'thin' 'block' |


Themes

| Theme | Accent | Best for | |---|---|---| | default | Blue / green | Production tools, professional CLIs | | cyberpunk | Neon cyan / bright green | Dev tools, personal projects, AI agents |


CLI Reference

# Scaffold a new project in an empty folder (run once)
npx @sarthak_krishak/inkforge init

# Add components to your project
npx inkforge add spinner
npx inkforge add progressbar
npx inkforge add spinner progressbar

# Interactive component picker (arrow keys + space)
npx inkforge add

# See all available components
npx inkforge list

Why own your components?

With a standard npm package, the code is locked inside node_modules. You can't change it without forking the entire repo.

With InkForge, after npx inkforge add spinner, the file is at components/inkforge/Spinner/index.jsx — inside your project. Change the animation frames. Add a new variant. Tweak the colors. No fork needed. No PR required. It's your code.

This is the same philosophy that made shadcn/ui the most popular component library for web React. InkForge brings it to the terminal.


Roadmap

  • [x] Spinner — 5 variants, done state, theme support
  • [x] ProgressBar — 3 variants, custom colors, theme support
  • [x] CLI — init, add, list commands
  • [ ] DiffViewer — git-style diff display for AI coding agents
  • [ ] StreamingOutput — token-by-token AI response display
  • [ ] PromptInput — input with history and autocomplete
  • [ ] Select / MultiSelect — keyboard-navigable menus
  • [ ] Table — structured data display
  • [ ] StatusBar — footer with agent state

License

MIT © Sarthak Krishak