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

@zakmandhro/bunti

v0.1.4

Published

A Bun-native terminal layout engine with zero dependencies, 60fps rendering, and an agent-optimized functional API.

Readme

🥟 Bunti (Bun Terminal Interface)

A Bun-native terminal layout engine with zero dependencies, 60fps rendering, and an agent-optimized functional API.

Bunti (pronounced Bun-ty) is a zero-dependency, double-buffered layout engine for building terminal user interfaces. Unlike traditional TUI libraries, Bunti uses a functional, state-driven architecture and a surgical diff-renderer to deliver 60+ FPS layouts with minimal CPU and TTY overhead.

✨ Features

  • 🏗️ Contextual DSL: Build complex UIs with a declarative, nested closure API.
  • 🏎️ Double-Buffered Diffing: Only dirty row spans are sent to the terminal. Zero flicker.
  • 📏 Mathematically Absolute: 100% precision in width, padding, and border alignment.
  • 📐 Tactical Standard: Opinionated border styles (default, rounded, frame, thick-frame).
  • 🌈 24-bit TrueColor: High-fidelity RGB gradients with native hex parsing and relative contrast.
  • 🖱️ Interactive: Built-in SGR mouse tracking and focus detection with automatic FPS throttling.

📦 Installation

Bunti is designed for Bun, but works in standard Node.js environments (v18+) as well.

bun add @zakmandhro/bunti

Or using npm/pnpm/yarn:

npm install @zakmandhro/bunti

🚀 Quick Start

import { bunti } from '@zakmandhro/bunti';

bunti.render(({ wallpaper, box, color, icon, span }) => {
  // 1. Set a dynamic gradient background
  wallpaper(bunti.gradient({ colors: ['midnight', 'plasma'] }));

  // 2. Define a centered high-contrast card
  box({
    size: "auto",
    bgColor: "white",
    color: "blank", // Automatic high-contrast black
    border: 'frame' // Tactical block border
  }, ({ text }) => {
    text(` ${icon('rocket')} `);
    text(color.bold("MISSION CONTROL\n\n"));
    
    span({ color: color.dim }, ({ text }) => {
      text("STATUS: ");
    });
    text("NOMINAL");
  });
}, { fps: 60, mouse: true });

📐 Border Archetypes

Bunti categorizes containers into three visual archetypes:

| Category | Styles | Description | | :--- | :--- | :--- | | Wireframe | default, rounded, double, dashed, dotted | Clean, 1-width lines. Zero visual mass. | | Frame | frame, thick-frame | Block-based containers. High physical presence. | | Ghost | none | Purely structural containers for grouping and alignment. |

🏁 Performance

Bunti is built for speed. By leveraging Bun.stdout.writer() and surgical diffing, it can maintain 60-120 FPS on complex layouts while keeping TTY bytes significantly lower than standard stream-based libraries.

🛠️ Tooling

TSGO (High-Performance TypeScript)

Bunti uses tsgo for its type-checking pipeline.

We chose tsgo over the standard tsc because:

  • Speed: It leverages a Go-based core to provide near-instant feedback during development.
  • Agent-Friendly: Its predictable and high-performance output makes it ideal for automated engineering workflows.
  • Strict Integrity: It ensures that Bunti's functional architecture remains 100% type-safe without the overhead of standard Node-based compilers.

Run a full check with: npm run type-check

📚 Documentation

Dive deeper into Bunti's architecture and layout engine:

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Since Bunti prioritizes mathematical precision and performance, please ensure you run the benchmark and type-check scripts before submitting.

bun run lint
bun run typecheck
bun run test
bun run bench

📄 License

MIT © Zak Mandhro