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

@kud/jenkins-ink

v0.4.0

Published

Ink components for rendering Jenkins builds, jobs, stages and logs

Readme

@kud/jenkins-ink

Controlled Ink components for rendering Jenkins domain objects — builds, jobs, pipeline stages and logs — in the terminal.

Every component is presentation-only: props in, no data fetching, no app-level input. The consuming surface owns selection, navigation and loading, so the same <BuildList> drops into a full-screen CLI or a single pane inside a larger dashboard. Data and formatting come from @kud/jenkins; primitives and colour tokens come from @kud/ink-ui.

@kud/jenkins        headless core — client, types, status tokens (framework-agnostic)
└─ @kud/jenkins-ink  this package — Ink rendering

Install

npm install @kud/jenkins-ink @kud/jenkins @kud/ink-ui ink react

ink and react are peer dependencies.

Components

| Component | Renders | | ------------- | --------------------------------------------------------------- | | <BuildList> | A windowed, selectable list of builds (#num STATE dur age) | | <JobList> | A windowed, selectable list of jobs with status dots | | <BuildInfo> | One-line build metadata | | <StageTree> | Pipeline drill-down: stages → steps → step log | | <LogView> | A dumb log viewport (caller owns scroll/window) |

Usage

The components are controlled — you hold the selection index and key handling in your app shell, and pass them down. Nothing here calls useInput at app level.

import { useState } from "react"
import { render, Box, useInput } from "ink"
import { JenkinsClient } from "@kud/jenkins"
import { BuildList, BuildInfo } from "@kud/jenkins-ink"

const Builds = ({ client, job }) => {
  const [builds, setBuilds] = useState([])
  const [selected, setSelected] = useState(0)

  useInput((_input, key) => {
    if (key.upArrow) setSelected((s) => Math.max(0, s - 1))
    if (key.downArrow) setSelected((s) => Math.min(builds.length - 1, s + 1))
  })

  // ...load builds from client.listBuilds(job) into setBuilds...

  return (
    <Box flexDirection="column">
      <BuildInfo build={builds[selected] ?? null} />
      <BuildList builds={builds} selected={selected} rows={20} />
    </Box>
  )
}

Because selection lives in your shell, you can render a <BuildList> beside other panes (PRs, tickets) in one screen — composition a shelled-out full-screen CLI can't give you.

Development

npm install
npm run typecheck
npm test          # ink-testing-library
npm run build     # tsup → dist/

Licence

MIT © Erwann Mest