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

@hapticdata/lgtm

v0.1.0

Published

TUI for reviewing documents with line-by-line commenting

Readme

lgtm

A terminal UI for reviewing documents with line-by-line commenting. Perfect for reviewing AI-generated plans, code proposals, or any text document that needs structured feedback.

Features

  • Line-by-line commenting with 6 comment types (blocker, concern, question, suggestion, praise, acknowledge)
  • Syntax highlighting for code blocks
  • Session persistence (comments saved to JSON files)
  • Export feedback in markdown or JSON format
  • tmux integration for side-by-side review workflows
  • Claude Code integration for AI-assisted development

Installation

Quick Start (No Install)

Run lgtm directly without installing:

bunx @hapticdata/lgtm document.md

Marketplace Installation (Recommended)

Install lgtm as a Claude Code plugin from the marketplace:

# In Claude Code, run these commands:
/plugin marketplace add hapticdata/lgtm
/plugin install lgtm@lgtm

Or locally after cloning the repository:

claude plugin install lgtm --plugin-dir .

Once installed, you can use these skills:

  • /lgtm <file> - Review a file with line-by-line commenting
  • /lgtm-context - Review Claude's last response
  • /lgtm-plan - Review the current plan file

The plugin automatically spawns a tmux pane for side-by-side review. When you quit (press q), your feedback is sent back to Claude for discussion.

Global CLI Installation (Optional)

For standalone command-line usage without Claude Code:

bun install
bun link

Then use the lgtm command directly:

lgtm document.md

Requirements

  • Bun v1.0.0 or later (required)
  • tmux (optional, for side-by-side review with Claude Code)

Why Bun? lgtm uses Bun-specific APIs (Bun.file(), Bun.write(), Bun.stdin) for better performance and simpler code. These APIs are not available in Node.js or other runtimes.

Usage

Basic Usage

Review a file in your terminal:

lgtm document.md

Commands

# Review in current terminal (default)
lgtm <file>

# Explicitly show in current terminal
lgtm show <file>

# Open in tmux split pane
lgtm spawn <file>

# Export comments to stdout
lgtm export <file>

# Show terminal environment info
lgtm env

Options

| Option | Description | |--------|-------------| | --session <name> | Named session for separate comment storage | | --comments <file> | Load comments from a specific file | | --readonly | View-only mode (no editing) | | --export-on-quit <path> | Export comments to file when quitting | | --stdin | Read content from stdin instead of file | | --context | Load Claude's last response from current session | | --tmux | Open in tmux split pane |

Export Options

# Export as markdown (default)
lgtm export document.md

# Export as JSON
lgtm export document.md --format json

# Export specific session
lgtm export document.md --session my-review

Keybindings

Navigation

| Key | Action | |-----|--------| | j / Down | Scroll down / Next comment | | k / Up | Scroll up / Previous comment | | g | Go to top | | G | Go to bottom | | Tab | Switch between document and comments panel | | Enter | Jump to commented line (in comments panel) |

Comments

| Key | Action | |-----|--------| | c | Add comment on current line | | e | Edit selected comment | | d | Delete selected comment | | r | Toggle resolved status | | 1-6 | Select comment type when adding |

Comment Types

| Key | Type | Purpose | |-----|------|---------| | 1 | Blocker | Critical issues that must be addressed | | 2 | Concern | Potential issues to evaluate | | 3 | Question | Need clarification | | 4 | Suggestion | Improvements to consider | | 5 | Praise | Highlight good work | | 6 | Acknowledge | Noted/acknowledged |

Other

| Key | Action | |-----|--------| | f | Cycle through comment filters | | v | Toggle summary view | | y | Copy feedback to clipboard | | s | Save session | | ? | Toggle help | | q / Esc | Quit |

Configuration

Environment Variables

| Variable | Purpose | |----------|---------| | LGTM_TMUX=1 | Default to tmux mode (skip --tmux flag) | | TMUX_PANE | Target pane for tmux splits |

Comment Storage

Comments are stored in JSON files alongside the reviewed document:

document.md           # Original file
.lgtm-document.json # Comments file

With sessions:

.lgtm-document-mysession.json

Claude Code Integration

lgtm integrates with Claude Code for AI-assisted review workflows. When used with --export-on-quit, comments are automatically exported when you quit.

# Claude Code can spawn lgtm and wait for your review
lgtm document.md --export-on-quit /tmp/feedback.md

The --context flag loads Claude's last response for review:

lgtm --context

License

MIT