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

@locusai/locus-telegram

v0.26.6

Published

Remote-control Locus via Telegram with full CLI mapping, git operations, and PM2 management

Readme

locus-telegram

Remote-control your Locus agent from Telegram. Full CLI command mapping, git operations, interactive keyboards, and built-in PM2 process management.

Setup

1. Create a Telegram Bot

  1. Open @BotFather on Telegram
  2. Send /newbot and follow the prompts
  3. Copy the bot token

2. Get Your Chat ID

  1. Send any message to your new bot
  2. Visit https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
  3. Find "chat":{"id": <YOUR_CHAT_ID>} in the response

3. Configure Locus

locus config packages.telegram.botToken "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
locus config packages.telegram.chatIds "12345678"

Multiple chat IDs can be comma-separated: "12345678,87654321"

4. Install & Start

locus install telegram
locus pkg telegram start

Usage

Service Management (PM2)

locus pkg telegram start      # Start bot in background via PM2
locus pkg telegram stop        # Stop the bot
locus pkg telegram restart     # Restart the bot
locus pkg telegram status      # Show process status
locus pkg telegram logs [n]    # Show last n lines of logs
locus pkg telegram bot         # Run in foreground (development)

Telegram Commands

Locus CLI

| Command | Description | |---------|-------------| | /run [issue#...] | Execute issues | | /status | Dashboard view | | /issues | List issues | | /issue <#> | Show issue details | | /sprint [sub] | Sprint management | | /plan [args] | AI planning | | /review <pr#> | Code review | | /iterate <pr#> | Re-execute with feedback | | /discuss [topic] | AI discussion | | /exec [prompt] | REPL / one-shot | | /logs | View logs | | /config [path] | View config | | /artifacts | View artifacts |

Git Operations

| Command | Description | |---------|-------------| | /gitstatus | Git status | | /stage [files\|.] | Stage files | | /commit <message> | Commit changes | | /stash [pop\|list\|drop] | Stash operations | | /branch [name] | List/create branches | | /checkout <branch> | Switch branch | | /diff | Show diff | | /pr <title> | Create pull request |

Service

| Command | Description | |---------|-------------| | /service start\|stop\|restart\|status\|logs | Manage bot process |

Interactive Features

The bot automatically shows inline keyboard buttons after certain commands:

  • After /plan — Approve, Reject, or Show Details
  • After /run — View Logs, Run Again
  • After /review — Approve, Request Changes, View Diff
  • After /status — Run Sprint, View Issues, View Logs
  • After /stash — Pop, List, Drop

Non-command text messages are automatically sent to locus exec as prompts.

Security

Only chat IDs listed in packages.telegram.chatIds in the locus config can interact with the bot. All other messages are silently ignored.

Development

cd packages/telegram
bun install
bun run build        # Compile TypeScript
bun run typecheck    # Type-check only

# Configure (if not already done)
locus config packages.telegram.botToken "..."
locus config packages.telegram.chatIds "..."

# Run in foreground for development
locus pkg telegram bot