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

@cvr/linear

v0.4.0

Published

A command-line interface for [Linear](https://linear.app) built with Bun and Effect TypeScript.

Readme

Linear CLI

A command-line interface for Linear built with Bun and Effect TypeScript.

Installation

# Clone and build
git clone <repo>
cd linear
bun install
bun run build

# Add to PATH (symlink to ~/.local/bin)
bun run link

Usage

# Authenticate (required first)
linear auth

# Check current user
linear auth whoami

# List your issues
linear issue list

# Start working on an issue
linear issue start ABC-123 --dry-run
linear issue start ABC-123 --json

# View issue details
linear issue view ABC-123

# Read one or many issues as JSON
linear issue view ABC-123 ABC-124 --json

# Include comments, sub-issues, and relations
linear issue view ABC-123 --comments --children --relations --json

# Create a new issue with prompts
linear issue create --interactive

# Non-interactive creation with validation
linear issue create --team ABC --title "Title" --project "Tech Debt" --dry-run

# List projects
linear project list --json

# List teams
linear team list

Commands

Authentication

| Command | Description | | -------------------- | ---------------------------------------------------- | | linear auth | Authenticate with Linear (opens browser for API key) | | linear auth whoami | Show current user info |

Issues

| Command | Description | | ------------------------- | --------------------------------------------------- | | linear issue list | List your assigned issues | | linear issue view [id] | View issue details; prompts require --interactive | | linear issue start [id] | Start work, with --dry-run and --json support | | linear issue create | Create a new issue | | linear issue comment ID | Add a comment, with --dry-run support |

Teams

| Command | Description | | ------------------ | -------------- | | linear team list | List all teams |

Projects and GraphQL

| Command | Description | | ---------------------------- | ----------------------------------------------- | | linear project list --json | List projects with stable machine-readable data | | linear api graphql | Authenticated GraphQL escape hatch |

Agent usage

  • Add --json to reads; commands return stable JSON and meaningful exit codes.
  • issue view --json always returns an array and accepts multiple identifiers or Linear issue URLs.
  • Use --comments, --children, and --relations only when that context is needed.
  • Run supported mutations with --dry-run before executing them.
  • Prompts are opt-in with --interactive; missing agent inputs fail fast.
  • Prefer typed commands. Use linear api graphql only for operations the typed CLI cannot express.
  • Keep --query-file paths inside the current workspace; traversal and escaping symlinks are rejected.
  • Raw GraphQL mutations require the explicit --allow-mutation flag.
  • Never read or interpolate the token directly; the CLI owns authentication.

Configuration

  • Token: ~/.config/linear/token
  • Global config: ~/.config/linear/config.toml
  • Project config: .linear.toml in repo root

Project Config Example

Create a .linear.toml in your project root to set defaults:

team_id = "ENG"

Environment Variables

  • LINEAR_API_KEY: Alternative to config file token

Development

# Install dependencies
bun install

# Run tests
bun run test

# Build binary
bun run build

# Run without building
bun run src/main.ts --help

Architecture

Built with:

  • Bun: Fast JavaScript runtime with native compilation
  • Effect: TypeScript library for type-safe, composable code
  • Effect CLI: CLI framework with prompts and argument parsing
  • @linear/sdk: Official Linear GraphQL SDK

Credits

Inspired by schpet/linear-cli - the original Linear CLI built with Deno and Cliffy.

License

MIT