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

lark-bridge

v1.0.0

Published

Bridge between iMessage/Telegram and AI CLI tools (Claude Code, Codex, Gemini, Cursor)

Readme

Lark Bridge

Lark Bridge connects Telegram or iMessage to an AI CLI so messages sent from your phone can be answered from your desktop workflow.

The current build is centered on OpenAI Codex CLI as the active AI backend.

What It Does

  • Receives messages from Telegram or iMessage
  • Forwards them to the configured AI CLI
  • Sends the AI response back to the same chat
  • Provides basic control commands for pausing, stopping, retrying, and checking status

Current Support

AI Provider

  • Codex CLI via @openai/codex

Messaging Platforms

  • Telegram on Windows, macOS, and Linux
  • iMessage on macOS only

Requirements

  • Node.js 16 or newer
  • A working installation of the Codex CLI
  • Telegram bot credentials if you use Telegram
  • macOS with Messages.app signed in if you use iMessage

Install

From npm

npm install -g lark-bridge

From source

git clone https://github.com/AhmadTheTech/lark
cd lark
npm install
npm link

Configure

Run the interactive setup:

lark configure

You will choose:

  • The AI provider
  • The messaging platform
  • Platform-specific settings

Telegram Setup

  1. Open Telegram and start a chat with @BotFather
  2. Send /newbot and follow the prompts
  3. Copy the bot token it returns
  4. Find your Telegram user ID with @userinfobot
  5. Enter the token and allowed user IDs during lark configure

You can allow multiple users by entering comma-separated numeric IDs.

iMessage Setup

Lark uses AppleScript to interact with Messages.app.

Before starting:

  1. Sign in to iMessage on your Mac
  2. Allow Terminal to control Messages when prompted
  3. If needed, grant Contacts access as well

On iMessage, the bridge checks for new messages on a polling interval selected during setup.

Start

lark start

For verbose logging:

lark start --debug

CLI Commands

lark configure   # Run interactive setup
lark start       # Launch the bridge
lark status      # Show saved configuration
lark reset       # Remove saved configuration

Telegram Commands

Once the bot is running, these commands are available in Telegram:

  • /start - show bridge status
  • /help - list commands
  • /status - show uptime, provider, and message stats
  • /ai - show the active AI provider
  • /pause - stop forwarding messages
  • /resume - resume forwarding
  • /stop - cancel the current AI request
  • /clear - clear conversation context
  • /retry - retry the last failed message
  • /ping - check that the bridge is alive
  • /version - display the installed Lark version
  • /shutdown - stop the bridge process

How It Works

You
  -> Telegram or iMessage
  -> Lark Bridge
  -> Codex CLI
  -> Lark Bridge
  -> Telegram or iMessage
  -> You

Configuration Location

Lark stores its config under:

~/.lark/config

Use lark status to inspect the saved values.

Contributing

License

For license details, see LICENSE.