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

ghostty-config-cli

v0.1.0

Published

A fullscreen terminal UI for editing your Ghostty config, with live preview. Cross-platform (macOS + Linux).

Downloads

138

Readme

ghostty-config-cli

A fullscreen terminal UI for editing Ghostty config + live preview

  • Fullscreen, paned TUI — sidebar navigation, a focused detail editor, and a live preview, rendered in the alternate screen buffer (your scrollback is restored on exit).
  • Live preview — a mock terminal window that updates as you type: real theme colors (resolved straight from Ghostty's theme files), the 16-color ANSI palette, and a cursor that reflects your cursor-style and blink settings.
  • Safe, surgical writes — only the settings this tool manages are rewritten. Your comments, keybindings, and every other line are preserved byte-for-byte. Writes are atomic (temp file + rename), so a config is never left half-written.
  • Save with one-level undos writes immediately; u restores the exact previous file.
  • Smart pickers — type-to-filter over ghostty +list-themes (463 themes) and ghostty +list-fonts, with warnings for unknown themes or uninstalled fonts. Custom values are accepted too.
  • Degrades gracefully — works even if ghostty isn't on your PATH; you can still edit colors, size, and cursor.

Settings managed (v1)

theme · font-family · font-size · background · foreground · background-opacity · cursor-style · cursor-style-blink

Every other key in your config is left untouched.

Install

npm install -g ghostty-config-cli

Requires Node.js ≥ 18. Ghostty is recommended (for theme/font enumeration) but not required.

Usage

ghostty-config-cli            # launch the interactive editor
ghostty-config-cli --print    # print current values and exit (no TTY needed)
ghostty-config-cli --dry-run  # edit, but preview saves without writing
ghostty-config-cli --version
ghostty-config-cli --help

Keys

| Key | Action | | --- | --- | | / (or k / j) | Navigate settings | | Enter | Edit the selected setting | | / , / | Adjust sliders / cycle options | | Esc | Finish / cancel editing | | s | Save to disk | | u | Undo the last save | | r / R | Reset field / reset all | | q | Quit |

After saving, reload Ghostty with ctrl+shift+r (its built-in config reload) to see changes live.

Config location

Resolved automatically per OS:

  • Linux: $XDG_CONFIG_HOME/ghostty/config.ghostty (or ~/.config/ghostty/…)
  • macOS: ~/Library/Application Support/com.mitchellh.ghostty/config.ghostty (honors XDG_CONFIG_HOME if set)

config.ghostty is preferred (loaded by Ghostty ≥ 1.2.3 and gives editor syntax highlighting); a plain config file is used if that's what exists.

Development

npm install
npm run dev        # run from source with tsx
npm run typecheck
npm run build      # compile to dist/

Built with TypeScript, Ink, and execa.

License

MIT © aj khullar