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

alacritty-theme-switch

v3.0.1

Published

CLI utility for switching Alacritty color themes

Readme

alacritty-theme-switch

alacritty-theme-switch is a CLI tool for switching color themes in the Alacritty terminal emulator. It lets you store multiple theme configurations and switch between them interactively or programmatically.

ats

Features

  • Interactive theme selection
  • Download themes directly from GitHub repositories
  • Automatic backups of your configuration before each switch
  • Non-destructive merging of theme files with your main config
  • Cross-platform support (Linux, macOS, Windows)

Quick start

Install the tool:

# Via install script (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/tichopad/alacritty-theme-switch/refs/heads/main/install.sh | sh

# Via install script (Windows PowerShell)
irm https://raw.githubusercontent.com/tichopad/alacritty-theme-switch/refs/heads/main/install.ps1 | iex

# Via npm
npm install -g alacritty-theme-switch

# Via JSR (Deno)
deno install -g -A -n ats jsr:@tichopad/alacritty-theme-switch

Download themes from the official repository:

ats download-themes

Switch themes interactively:

ats

Installation

Via install script (Linux/macOS)

The easiest way to install on Linux or macOS is using the install script:

curl -fsSL https://raw.githubusercontent.com/tichopad/alacritty-theme-switch/refs/heads/main/install.sh | sh

This script will:

  • Automatically detect your OS and CPU architecture
  • Download the latest release binary for your platform
  • Install it to ~/.local/bin/ats
  • Make it executable

After installation, you may need to add ~/.local/bin to your PATH if it's not already there:

export PATH="$HOME/.local/bin:$PATH"

Via install script (Windows)

The easiest way to install on Windows is using the PowerShell install script:

irm https://raw.githubusercontent.com/tichopad/alacritty-theme-switch/refs/heads/main/install.ps1 | iex

This script will:

  • Automatically detect your CPU architecture (x86_64 only)
  • Download the latest release binary for Windows
  • Install it to %LOCALAPPDATA%\Programs\ats\ats.exe
  • Add the installation directory to your user PATH

Note: You'll need to restart your terminal after installation for PATH changes to take effect.

Via npm

npm install -g alacritty-theme-switch

Via JSR (Deno)

deno install -g -A -n ats jsr:@tichopad/alacritty-theme-switch

How to use

Download themes

The easiest way to get started is to download themes from a GitHub repository:

ats download-themes

This downloads all themes from the official Alacritty themes repository to ~/.config/alacritty/themes (or %APPDATA%\alacritty\themes on Windows).

License notice: When downloading themes, the repository's LICENSE file is also downloaded to preserve proper attribution. The default repository (alacritty/alacritty-theme) is licensed under the Apache License 2.0. If you download from multiple repositories, each license is saved separately to avoid conflicts.

Download from a custom repository:

ats download-themes --url https://github.com/user/custom-themes

Download to a custom directory:

ats download-themes --themes ~/my-themes

Download from a specific branch or tag:

ats download-themes --ref v1.0.0

Switch themes interactively

Run ats to open an interactive theme selector:

ats

Use arrow keys or type to search, then press Enter to apply a theme. The currently active theme is highlighted.

Switch themes programmatically

Apply a specific theme without prompting:

ats --select monokai.toml

The --select option takes a filename relative to your themes directory.

Create custom themes

Create a TOML file in your themes directory (~/.config/alacritty/themes by default):

# ~/.config/alacritty/themes/my-theme.toml

[colors.primary]
background = '#272822'
foreground = '#F8F8F2'

[colors.normal]
black   = '#272822'
red     = '#F92672'
green   = '#A6E22E'
yellow  = '#F4BF75'
blue    = '#66D9EF'
magenta = '#AE81FF'
cyan    = '#A1EFE4'
white   = '#F8F8F2'

[colors.bright]
black   = '#75715E'
red     = '#F92672'
green   = '#A6E22E'
yellow  = '#F4BF75'
blue    = '#66D9EF'
magenta = '#AE81FF'
cyan    = '#A1EFE4'
white   = '#F9F8F5'

Theme files can contain any valid Alacritty configuration options, not just colors.

Configuration

Customize paths and behavior with command-line options:

Options:
  -c, --config <path>    Path to Alacritty config file
                         (default: ~/.config/alacritty/alacritty.toml)
  -t, --themes <path>    Path to themes directory
                         (default: ~/.config/alacritty/themes)
  -b, --backup <path>    Path to backup file
                         (default: ~/.config/alacritty/alacritty.bak.toml)
  -s, --select <file>    Apply theme without prompting
  -h, --help             Show help
  -v, --version          Show version

On Windows, the default config directory is %APPDATA%\alacritty instead of ~/.config/alacritty.

Examples

Use a custom config location:

ats --config ~/dotfiles/alacritty.toml

Use a custom themes directory:

ats --themes ~/my-alacritty-themes

How it works

When you apply a theme, alacritty-theme-switch:

  1. Creates a backup of your current Alacritty config
  2. Reads your main config file and the selected theme file
  3. Merges the theme into your config (theme values override existing values)
  4. Writes the merged config back to your main config file
  5. Saves the theme name to .selected_theme for tracking

Note: Comments in your main config file are removed during the merge process due to TOML parsing limitations.

Platform support

The tool works on Linux, macOS, and Windows. Default paths are platform-specific:

  • Linux/macOS: ~/.config/alacritty/
  • Windows: %APPDATA%\alacritty\

You can override defaults with command-line options on any platform.

License

MIT