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

@flyingrobots/bijou-node

v2.1.0

Published

Node.js adapter for bijou — chalk styling, readline I/O, process runtime.

Downloads

2,444

Readme

@flyingrobots/bijou-node

Node.js adapter for bijou — chalk styling, readline I/O, process runtime.

Documentation Status

This npm README is a quick overview and may lag behind the repository.

  • Canonical API details and behavior notes live in GUIDE.md
  • Release-level changes live in the CHANGELOG

Install

npm install @flyingrobots/bijou @flyingrobots/bijou-node

Usage

import { initDefaultContext } from '@flyingrobots/bijou-node';
import { box, headerBox } from '@flyingrobots/bijou';

// Wire up Node.js adapters and set the default context.
// Auto-detects TTY, CI, NO_COLOR, and TERM=dumb.
initDefaultContext();

console.log(headerBox('My CLI', { detail: 'v1.0.0' }));

Features Breakdown

  • Port implementation for Node.js: complete RuntimePort, IOPort, and StylePort adapters for @flyingrobots/bijou.
  • Runtime detection: environment variables, TTY state, and terminal dimensions sourced from process.
  • Interactive terminal I/O: stdin/stdout integration with readline and resize-event support.
  • Styling backend: Chalk-powered color/style methods wired into bijou styling APIs.
  • One-line bootstrap: initDefaultContext() creates a production-ready context and registers it as default on first call.

What It Provides

bijou-node implements the three ports that @flyingrobots/bijou requires:

| Port | Implementation | What it does | | :--- | :--- | :--- | | RuntimePort | nodeRuntime() | process.env, TTY detection, terminal dimensions | | IOPort | nodeIO() | process.stdout/stdin, readline, resize events | | StylePort | chalkStyle() | RGB/hex color via chalk, respects NO_COLOR |

API

// Individual port factories
import { nodeRuntime, nodeIO, chalkStyle } from '@flyingrobots/bijou-node';

// All-in-one context (most common)
import { createNodeContext, initDefaultContext } from '@flyingrobots/bijou-node';

// createNodeContext() — returns a BijouContext without setting it as default
const ctx = createNodeContext();

// initDefaultContext() — first call registers as global default; later calls return fresh unregistered contexts
initDefaultContext();

If you need to replace the default context later in-process, call setDefaultContext(createNodeContext()) from @flyingrobots/bijou.

See ARCHITECTURE.md for how the adapter maps to Node.js APIs, and GUIDE.md for usage patterns.

Related Packages

License

MIT


.-:::::':::   .-:.     ::-.::::::.    :::.  .,-:::::/
;;;'''' ;;;    ';;.   ;;;;';;;`;;;;,  `;;;,;;-'````'
[[[,,== [[[      '[[,[[['  [[[  [[[[[. '[[[[[   [[[[[[/
`$$$"`` $$'        c$$"    $$$  $$$ "Y$c$$"$$c.    "$$
 888   o88oo,.__ ,8P"`     888  888    Y88 `Y8bo,,,o88o
 "MM,  """"YUMMMmM"        MMM  MMM     YM   `'YMUP"YMM
:::::::..       ...     :::::::.      ...   :::::::::::: .::::::.
;;;;``;;;;   .;;;;;;;.   ;;;'';;'  .;;;;;;;.;;;;;;;;'''';;;`    `
 [[[,/[[['  ,[[     \[[, [[[__[[\.,[[     \[[,   [[     '[==/[[[[,
 $$$$$$c    $$$,     $$$ $$""""Y$$$$$,     $$$   $$       '''    $
 888b "88bo,"888,_ _,88P_88o,,od8P"888,_ _,88P   88,     88b    dP
 MMMM   "W"   "YMMMMMP" ""YUMMMP"   "YMMMMMP"    MMM      "YMmMY"