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

bae-bridge

v0.2.0

Published

Bridge your messaging apps to CLI coding agents

Downloads

103

Readme

Bae — Your AI, Always On

npm version

Turn any always-on machine into a personal AI agent server, accessible from your messaging apps.

What Is Bae?

Bae is a tunnel — a thin, opinionated relay that connects your messaging apps (Telegram, Slack, Discord) to CLI-based coding agents (Claude Code, Codex, OpenCode, etc.) running on your machine. The agent is the brain. Bae is the phone line.

Bae is not an AI framework, an agent SDK, or an API wrapper. It does not modify, enhance, or intercept the agent's capabilities. Whatever your agent can do locally, you can now do from your phone.

Why Bae?

You have an always-on machine at home. You have Claude Code installed with a Max subscription. You have Telegram on your phone. Bae connects them:

Your Phone (Telegram)  →  Bae (bridge)  →  Local Agent (on your machine)
  • No API keys needed — uses your existing agent subscription auth
  • Full agent power — file editing, bash execution, code generation, web search
  • Agent-agnostic — Claude Code first, extensible to Codex, OpenCode, Gemini CLI, Amp
  • No tunnel needed — long polling, no public URL, no signup, no extra processes
  • Conversation continuity — messages in the same thread share agent context
  • Never goes out of date — when your agent gets new features, Bae gets them for free

Architecture

Your Phone                     Your Machine
┌─────────────┐               ┌─────────────────────────────────────────┐
│             │               │                                         │
│  Telegram   │◀── polling ──▶│  ┌───────┐       ┌───────────────────┐  │
│  Slack      │◀── polling ──▶│  │  Bae  │──────▶│  Local Agents     │  │
│  Discord    │◀── polling ──▶│  │       │◀──────│  Claude Code      │  │
│             │               │  └───────┘       │  Codex            │  │
└─────────────┘               │                  │  OpenCode         │  │
                              │                  │  Amp, etc.        │  │
                              │                  └───────────────────┘  │
                              │                                         │
                              │  Your filesystem, skills, MCP servers   │
                              └─────────────────────────────────────────┘

Tech Stack

| Component | Choice | Rationale | |-----------|--------|-----------| | Language | TypeScript | Type safety for message parsing | | Runtime | Node.js 20+ / Bun | Cross-runtime; SQLite via better-sqlite3 (Node) or bun:sqlite (Bun) | | HTTP | Hono | Health check + future dashboard API (~14kb) | | IM | Vercel Chat SDK | Unified interface for Telegram, Slack, Discord — long polling + webhook | | Agent | Subprocess | Agent-agnostic; --resume for conversation continuity | | Storage | SQLite | Session persistence at ~/.bae/bae.db via bun:sqlite |

Prerequisites

  • Node.js 20+ — runtime for the bridge
  • Claude Code (or another supported agent) — installed and authenticated
  • Telegram Bot Token — create one via @BotFather

Install

npm install -g bae-bridge

Setup

Run the interactive wizard:

bae init

This walks you through:

  • Telegram bot token
  • Workspace directory (default: ~/baesment)
  • Allowed Telegram user IDs (for access control)

Config is saved to ~/.bae/.env.

Usage

# Start in foreground
bae start

# Start in background (daemon mode)
bae start -d

# Check if running
bae status

# View logs (daemon mode)
bae logs

# Stop the daemon
bae stop

Once running, message your bot on Telegram. Send /new to start a fresh agent session.

Workspace

Bae runs your agent inside the configured workspace directory (~/baesment by default). The agent has full access to that directory — file editing, bash execution, everything it can do locally.

Status

Phase 1 complete — Telegram bridge with session continuity, streaming responses, daemon mode, and CLI.

Changelog

See CHANGELOG.md.

License

MIT