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

lyn-linear

v0.4.1

Published

CLI that bridges Linear with git workflows and Claude Code — automate tickets, branches, PRs, and give your AI agent project management context

Readme

lyn

A CLI that bridges Linear with your local git workflow and Claude Code. Automate ticket management, branch creation, draft PRs, and give your AI coding agent direct access to your project management context.

Install

npm install -g lyn-linear

Or from source:

git clone https://github.com/laspencer91/lyn-cli.git
cd lyn-cli
npm install
npm run build
npm link

Setup

OAuth (recommended)

  1. Go to Linear API Settings
  2. Create an OAuth application with callback URL: http://localhost:3847/callback
  3. Run lyn setup and enter your Client ID and Secret

API Key

lyn setup --api-key

Grab a personal API key from Linear API Settings.

What it does

lyn begin INT-123 — One command to start working on a ticket:

  • Moves the ticket to "In Progress" in Linear
  • Checks out main, pulls latest, creates a branch (initials/INT-123-slug)
  • Pushes and creates a draft PR (GitHub or GitLab)
  • Posts the branch name and PR link as a comment on the Linear ticket
  • Opens Claude Code with the ticket's full context injected — title, description, parent task context (for sub-issues), and project info

lyn plan — Opens Claude Code as a product planning agent:

  • Create tickets, file bugs, plan features, link related work
  • The agent searches for duplicates, sets priorities, and organizes sub-tasks
  • Optionally focus on a specific ticket: lyn plan INT-123

lyn finish — Close the loop:

  • Marks the PR as ready for review
  • Moves the ticket to "In Review"
  • Posts a commit summary on the Linear ticket

All Commands

| Command | Description | |---|---| | lyn setup | Connect to Linear via OAuth (or --api-key for personal tokens) | | lyn mine | List your assigned tickets | | lyn begin [ID] | Start working — branch, PR, Claude Code with context | | lyn finish [ID] | Mark ready for review, un-draft PR, update Linear | | lyn plan [ID] | Open Claude Code in planning mode | | lyn create | Create a new ticket (-t, -d, --parent, -p, --assign) | | lyn link A B | Link two tickets (--type related\|blocks\|duplicate\|similar) | | lyn delete ID | Delete a ticket | | lyn search "query" | Search Linear issues | | lyn status [ID] | Show ticket details (auto-detects from branch) | | lyn comments ID | Get ticket comments (--max=N) | | lyn projects | List all projects | | lyn project NAME | Get project info (-d for description, --tickets for all tickets) | | lyn project INT-123 | Get the project associated with a ticket |

How begin works

$ lyn begin

? Select a ticket to begin:
  INT-89  Fix auth token refresh  [Todo]
> INT-92  Add dark mode toggle    [Todo]
  INT-95  Update onboarding flow  [In Progress]

  Starting work on INT-92...

  Switching to main and pulling latest...
  Creating branch las/INT-92-add-dark-mode-toggle...
  Moving ticket to In Progress...
  Creating draft PR...
  PR: https://github.com/org/repo/pull/47

  Ready to work!

  INT-92 Add dark mode toggle
  Branch: las/INT-92-add-dark-mode-toggle
  Status: In Progress

  Launching Claude Code...

Claude Code receives the full ticket context — and for sub-issues, it also gets the parent ticket's description so the agent understands the broader goal.

Sub-issue support

When lyn begin detects a sub-issue, the Claude Code session receives both:

  • The parent ticket context (title, description) for the big picture
  • The sub-task context so the agent focuses on the specific piece of work

Two modes of Claude Code integration

begin mode (coding)

The agent gets read-only Linear commands: comments, search, status, project, and finish to close the loop when done.

plan mode (planning)

The agent gets full Linear access: create, link, search, mine, status, comments, project. It can create tickets, file bugs, link related work, and organize the backlog.

Agent-facing output

Commands like comments, search, status, and project detect whether stdout is a TTY. In a terminal, you get colored tables. When piped or called by an agent, you get clean plain text. Set LYN_PLAIN=1 to force plain output.

Custom prompt templates

Drop a prompt-template.md in .lyn/ (in your repo or ~/.lyn/) to inject custom context into every Claude Code session — coding standards, architecture notes, repo conventions, etc.

Prerequisites

Tech Stack

License

MIT