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

circletui

v1.0.3

Published

Interactive terminal UI dashboard for CircleCI pipelines

Readme

circletui

An interactive terminal UI dashboard for monitoring CircleCI pipelines, built with Node.js, TypeScript, and Ink. Inspired by btop.

npm Node.js TypeScript

Features

  • Split-pane dashboard — pipelines and workflow/job details side by side
  • Interactive project picker — browse followed CircleCI projects, type to filter
  • Branch picker — switch branch filter on the fly
  • Real-time polling — auto-refresh with configurable interval, spinner for running jobs
  • Pipeline pagination — scroll past the initial page to load more pipelines automatically
  • Job log viewer — scrollable step-by-step output with search and line wrap
  • Keyboard-driven — full navigation without a mouse

Quick start

npx circletui

That's it. No install needed — just Node.js 22.14+. On first run, you'll be prompted to enter your CircleCI API token directly in the TUI. The token is saved to ~/.config/circleci-tui/token so you only need to do this once.

You can also set the token via environment variable if you prefer:

export CIRCLECI_TOKEN=your_token_here

Install

npx (no install)

npx circletui

Global install

npm install -g circletui
cci

After installing globally, both cci and circletui commands are available.

From source

git clone https://github.com/cheesymoon/circletui.git
cd circletui
npm install
npm run dev

Usage

# Interactive — pick a project from your followed list
cci

# Direct — skip the picker
cci --project gh/myorg/myrepo

# Filter by branch
cci --project gh/myorg/myrepo --branch main

# Custom polling interval
cci --project gh/myorg/myrepo --interval 10

CLI options

| Flag | Short | Description | Default | |------|-------|-------------|---------| | --project | -p | CircleCI project slug | interactive picker | | --branch | -b | Filter pipelines by branch | all branches | | --interval | -i | Polling interval in seconds | 5 | | --clean | | Clear saved token and projects, start fresh | |

Keyboard shortcuts

Dashboard

| Key | Action | |-----|--------| | Tab / | Switch between pipeline and detail panels | | / | Navigate within active panel | | PgUp / PgDn | Scroll by page | | Enter | Select pipeline / view job logs | | Esc | Focus back to pipeline panel | | b | Open branch picker | | p | Open project picker | | t | Change API token | | r | Force refresh | | q | Quit |

Project picker

| Key | Action | |-----|--------| | Type | Filter list | | / | Navigate | | Enter | Select | | d | Remove from favorites | | t | Change API token | | q | Quit |

Branch picker

| Key | Action | |-----|--------| | Type | Filter list | | / | Navigate | | Enter | Select | | Esc | Cancel / clear filter |

Log viewer

| Key | Action | |-----|--------| | / | Scroll line by line | | PgUp / PgDn | Scroll by page | | / | Search | | n / N | Next / previous match | | w | Toggle line wrap | | Esc | Back to dashboard | | q | Quit |

Views

Project picker

Browse all your followed CircleCI projects. Type to filter the list. You can also type a project slug directly (e.g., gh/org/repo) and press Enter.

Dashboard (split-pane)

╭─ circletui ── gh/org/repo ── main ── ✔12 ✖2 ◌1 ── ↻ 3s ago (5s) ──╮
├─ Pipelines (20+) ─────────────┬─ build-and-test ✔ ──────────────────────┤
│ ▸ #1234 main       2m ago     │  ✔ checkout                        3s  │
│   #1233 main       15m ago    │  ✔ install-deps                   45s  │
│   #1232 feat/x     20m ago    │  ✖ test                         2m 13s │
│   #1231 main       1h ago     │  ⊘ deploy                              │
╰───────────────────────────────┴─────────────────────────────────────────╯
 Tab panel · ←→ switch · ↑↓ navigate · PgUp/PgDn page · Enter select · b branch · ...

Left panel shows pipelines, right panel shows workflows and jobs for the selected pipeline. Active panel is highlighted with a cyan border.

Status icons

| Icon | Meaning | |------|---------| | ✔ | Success | | ✖ | Failed / error | | ◌ | Running | | ○ | On hold / queued | | ⊘ | Not run / canceled |

Colors: green = success, red = failed, yellow = running, dim = skipped/not run.

Branch picker

Press b to open. Lists all branches found in recent pipelines. Select "All branches" to clear the filter.

Job logs

Full-screen scrollable output of all steps in a job, fetched from the CircleCI API.

CI/CD

The project uses CircleCI with semantic-release for automated versioning and npm publishing.

  • Every push: lint, type-check, and build
  • Merge to master: semantic-release analyzes commits and automatically publishes to npm if warranted

Versioning is driven by Conventional Commits:

  • fix: → patch release
  • feat: → minor release
  • BREAKING CHANGE: → major release

Requires NPM_TOKEN and GITHUB_TOKEN environment variables configured in the CircleCI semantic-release context.

Project structure

circletui/
├── .circleci/
│   └── config.yml             # CI/CD pipeline
├── package.json
├── tsconfig.json
├── bin/
│   └── cci.ts                 # Shebang entry point
└── src/
    ├── index.tsx               # CLI entry, arg parsing
    ├── App.tsx                 # View state machine
    ├── api.ts                  # CircleCI API client (v2 + v1.1)
    ├── types.ts                # TypeScript types
    ├── utils.ts                # Shared helpers (timeAgo, statusIcon, etc.)
    ├── hooks/
    │   ├── usePolling.ts       # Generic polling hook
    │   ├── useSpinner.ts       # Braille spinner animation
    │   └── useTerminalSize.ts  # Terminal dimensions hook
    └── components/
        ├── Header.tsx          # Top bar with project/branch/stats
        ├── StatusBar.tsx       # Bottom bar with keybindings
        ├── TokenInput.tsx      # API token prompt
        ├── ProjectPicker.tsx   # Interactive project selection
        ├── BranchPicker.tsx    # Branch filter selection
        ├── Dashboard.tsx       # Split-pane dashboard (core)
        └── LogViewer.tsx       # Job log viewer

CircleCI API endpoints used

| Endpoint | Purpose | |----------|---------| | GET /projects (v1.1) | List followed projects | | GET /project/{slug}/pipeline | List pipelines | | GET /project/{slug}/pipeline?branch={branch} | Filter by branch | | GET /pipeline/{id}/workflow | Workflows in a pipeline | | GET /workflow/{id}/job | Jobs in a workflow | | GET /project/{slug}/{job-number} | Job detail with steps |

License

MIT