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

linear-lit-cli

v0.1.1

Published

CLI tool for Linear and Git integration - manage Linear tickets without leaving your git workflow

Downloads

254

Readme

Lit - Manage your Linear tickets without ever leaving your Git workflow.

npm version npm downloads GitHub Repo stars License

Perfect for the engineers who love building, but hate having to track everything.

Feels like you are just using git, but you are also keeping those Linear issues nice and tidy!

This CLI runs 100% locally. Configure your Linear API key once and you're ready to go!

Lit Checkout - Create Linear Issue and Git branch in one command

https://github.com/user-attachments/assets/daab979e-1066-4249-8ba8-4ae9645d62d5

Lit Switch - Search Linear Issues + switch to correct branch in one command

https://github.com/user-attachments/assets/cc6cdcde-41a4-4e27-bd6a-09a4cb54458c

Features

In this version 0.1, only two commands are supported

1. A command to switch branches via description of the Linear Issue.

lit switch "description of issue"
  • Runs a search through Linear for issues matching the description
  • If multiple hits, will ask to disambiguate
  • Assigns issue to you, marks as in progress
  • git checkout the branch name (creaets it if it doesn't exist)

2. A command to commit changes and leave a comment on the ticket.

lit commit "commit message/issue comment"
  • Figures out correct issue based on branch
  • leaves a comment on the issue
  • git commit -m

3. A command to create a new Issue and branch at the same time.

lit checkout "Issue Title" -d "Description of Issue" -t f
  • Parses arguments: title, description (optional), issye type [bug, feature, improvement] (optional)
  • Creates new Linear Issue
  • Generates the Linear automation friendly branch name (exactly how Linear does it in the UI)
  • Does git checkout -b LinearbranchName

Getting Started

Quick Setup (3 steps)

1. Install

Install globally via npm:

npm install -g linear-lit-cli

2. Get your Linear API Key

Visit linear.app/settings/account/security and create a personal API key.

3. Configure (Recommended)

Save your API key permanently with one command:

lit config set linear-api-key <your_key>

Your key is stored securely at ~/.config/lit-cli/config.json and you'll never need to set it again!

Done! Now you can use lit from anywhere. 🎉


Development Setup

Want to contribute or run from source?

git clone https://github.com/tekaratzas/lit-cli.git
cd lit-cli
npm install
npm run install-global

Other Ways to Configure (Optional)

Already using environment variables? No problem! While lit config set is the easiest method, you can also:

Environment Variable:

export LINEAR_API_KEY=<your_key>

Add to ~/.zshrc or ~/.bashrc for persistence.

Interactive Prompt:
If no API key is found, lit will prompt you when you run a command (useful for quick testing).

Note: Priority order is: Environment variable → Config file → Interactive prompt

Config Management

# Set your API key (recommended)
lit config set linear-api-key <your_key>

# View your config (API key is masked for security)
lit config list

# Get a specific value
lit config get linear-api-key

Config is stored at: ~/.config/lit-cli/config.json


Usage

Once configured, you can use these commands:

# Create a new Linear issue and checkout a branch
lit checkout "Fix login bug" -d "Users can't login" -t bug

# Switch to an existing issue's branch
lit switch "login bug"

# Commit and comment on the current issue
lit commit "Fixed authentication logic"

# Manage configuration
lit config set linear-api-key <your_key>
lit config list

Command Reference

lit checkout <title> [options] (alias: co)

  • -d, --description <text> - Issue description
  • -t, --type <type> - Issue type: b/bug, f/feature, i/improvement

lit switch <description> (alias: sw)

  • Searches Linear for matching issues
  • Prompts to select if multiple matches found

lit commit <message> (alias: cm)

  • Commits with message and posts comment to Linear issue

lit config <command>

  • set <key> <value> - Set a config value
  • get <key> - Get a config value
  • list - Show all config values

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.