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

haoshoku

v5.7.0

Published

<p align="center"> <img src="icons/haoshoku-readme.gif" alt="Haoshoku" width="100%"> </p>

Readme

Haoshoku: Color of the Supreme King

Haoshoku (formerly Bankai) is a modular, multi-distro Linux setup and configuration toolkit. It automates the installation of essential applications, developer tools, terminal configs, and user environment tweaks.

[!NOTE] Haoshoku (referencing "Supreme King Haki" from One Piece) serves as an authoritative configuration manager, enforcing a strict and consistent environment setup across your Linux systems.

[!IMPORTANT] Rebranding & Migration: This project was previously known as Bankai and was available on PyPI (Python). It has been renamed to Haoshoku and is now available on NPM (JavaScript/Bun). Please uninstall old Python versions (pipx uninstall bankai) before installing.

Quick Start

Option 1: Run with Bun (Recommended)

# Clone the repo
git clone https://github.com/axatbhardwaj/haoshoku.git
cd haoshoku

# Install dependencies
bun install

# Run the setup
bun haoshoku.js

Option 2: Install Globally with Bun

bun install -g haoshoku
haoshoku

Option 3: Install via npm (Alternative)

npm install -g haoshoku
haoshoku

CLI Usage

Haoshoku provides command-line options for non-interactive use or specific tasks.

# Run for a specific OS (skips detection/prompt)
haoshoku --os cachyos
haoshoku --os debian-server

# Deploy Claude Code config (personal files, conventions, output-styles)
haoshoku --claude

# Backup personal Claude config to configs/claude/
haoshoku --claude-backup

# Update cached config and sync Claude config
haoshoku --claude-update

# Sync skills from configured sources
haoshoku --skills

# Update cached skill sources to latest
haoshoku --skills-update

# List available skills from all sources
haoshoku --skills-list

# Enable Superpowers plugin (idempotent)
haoshoku --superpowers

# Sync Zed editor config from configs/zed/ to ~/.config/zed/
haoshoku --zed

# Backup Zed config to configs/zed/ (sanitizes sensitive data)
haoshoku --zed-backup

# Install/reinstall KDE Glass blur effect (CachyOS/Arch only)
haoshoku --kde-glass

# Install Hyprland + upstream Caelestia rice (CachyOS/Arch only).
# Asks about your current DE and which device this is (PC / laptop);
# persists the device answer to ~/.haoshoku.json for future per-host configs.
haoshoku --hyprland

Features

Supported Platforms

  • CachyOS / Arch Linux: Full desktop environment setup (KDE Plasma), gaming optimizations, and daily driver tools.
  • Debian Server: Minimal, secure server setup with Docker, UFW, and Fail2ban.

What It Does

  • Terminal & Shell:
    • Installs and configures Fish Shell as default.
    • Sets up Starship prompt and Fisher plugins.
    • Deploys custom configs for Warp, Alacritty, and Fastfetch.
  • Developer Ecosystem:
    • Languages: Rust (Rustup), Python (Uv/Conda), Node.js (Volta/NVM).
    • Tools: Docker, Git (with signing), Neovim/VS Code, Foundry (Smart Contracts).
  • System Hardening (Debian):
    • Configures UFW firewall (allow SSH/HTTP/HTTPS).
    • Sets up Fail2ban for SSH protection.
    • Enables auto-updates and essential system utilities.
  • Desktop Experience (Arch):
    • Installs curated Flatpaks (Obsidian, Discord, Spotify).
    • Optimizes KDE Plasma settings.
    • KDE Glass Blur: Optional installation of glass blur effect for KDE Plasma 6 (reinstall easily after KDE updates with --kde-glass).
    • Sets up gaming tools (Steam, Lutris) and media players (mpv).
  • AI Configuration:
    • Claude Code Config: Deploys personal config, conventions, and output-styles (haoshoku --claude).
    • Claude Backup: Backs up personal config to configs/claude/ (haoshoku --claude-backup).
    • Skill Management: Runtime git cloning of Claude skills and agents (haoshoku --skills).
    • Superpowers: Idempotently enables the Superpowers plugin in ~/.claude/settings.json (haoshoku --superpowers).

Hyprland (parallel to KDE)

Bootstraps upstream Caelestia rice. KDE Plasma stays installed; SDDM shows both sessions.

haoshoku --hyprland

The command:

  1. Asks for your current desktop environment (auto-detected via $XDG_CURRENT_DESKTOP; you can override). When the answer is hyprland, the Hyprland package install is skipped — Caelestia still gets cloned and installed.
  2. Asks which device this is (Main PC / Laptop / Other / Skip). Non-skip answers persist to ~/.haoshoku.json as deviceType. The answer isn't consumed today — it's the seed for future per-host configuration (e.g., per-device monitor layouts).
  3. Installs Hyprland packages (when not skipped), clones upstream Caelestia, and runs install.fish. Recovers automatically when an AUR mirror failure leaves caelestia-cli/caelestia-shell uninstalled.

After install, monitor configuration is your responsibility. Caelestia sources ~/.config/caelestia/hypr-user.conf last from its hyprland.conf, so any monitor = ... directives you put in that file override Caelestia's catch-all without dirtying the symlinked Caelestia tree.

Releases prior to 5.0.0 (haoshoku <= 4.6.6) shipped an opinionated "Ocean" overlay on top of Caelestia — KDE→Hyprland keybind translation, window rules, autostart, custom borders/blur, hyprlock/hypridle/hyprpaper/mako configs, plus monitor presets — under --hyprland-keybinds / --hyprland-rules / --hyprland-backup. 5.0.0 drops all of it. Pin [email protected] if you need it back.

Rollback

If Hyprland breaks, log out and pick "Plasma" at SDDM. No haoshoku command required.

Manual uninstall

# Remove Caelestia itself
rm -rf ~/.local/share/caelestia

# Optional: clear your monitor / user overrides
: > ~/.config/caelestia/hypr-user.conf

Haoshoku deliberately does not delete ~/.config/hypr/; Caelestia owns that symlinked tree.

Skill Management

Haoshoku manages Claude Code config via runtime git cloning to enable global npm installations.

Configuration: Edit ~/.haoshoku.json to add custom skill sources.

{
  "skillSources": [
    "https://github.com/axatbhardwaj/claude-skills.git"
  ]
}

Priority Rules: User sources take precedence over community sources. If multiple sources provide the same skill name, the first source in the array wins.

Cache Location: Skills are cloned to ~/.cache/haoshoku/ (or $XDG_CACHE_HOME/haoshoku/) and symlinked to ~/.claude/skills/.

Usage:

  • --skills: Clone/sync all configured sources
  • --skills-update: Pull latest changes from cached sources
  • --skills-list: Display available skills by source

Tradeoffs:

  • Git dependency: Requires git installed on system (standard for developer environments)
  • Network requirement: Skills unavailable until first sync (offline operation supported after initial clone)
  • Separate config file: ~/.haoshoku.json adds another config to manage (avoids coupling with Claude config structure)

Configuration

All configuration templates are stored in the configs/ directory. Terminal configs (fish, warp, starship, fastfetch) are copied during setup. Claude skills and agents are symlinked:

  • configs/fish/: Fish shell configuration and functions.
  • configs/warp/: Warp terminal tab config (theme is activated in settings.toml).
  • configs/starship.toml: Cross-shell prompt theme.
  • configs/fastfetch/: System information fetch tool config.
  • deskback/: Assets and wallpapers.

Development

Testing

Run the test suite using Bun's native test runner:

bun test

Linting & Formatting

This project uses Biome for fast linting and formatting.

# Format code
bun run format

# Lint code
bun run lint

For Developers

To modify or extend the scripts:

  1. Clone the repository.
  2. Install dependencies: bun install
  3. Run locally: bun haoshoku.js

Project Structure:

  • src/os_scripts/: OS-specific logic (cachyos.js, debian_server.js).
  • configs/: Configuration files to be deployed.
  • common/: Package lists and shared utilities.

License

MIT