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

@carrara-labs/delta-connect

v0.5.0

Published

Thin channel edge that plugs a Delta agent into chat channels. Telegram first. Zero runtime deps.

Readme

@carrara-labs/delta-connect

The thin channel edge that plugs a Delta agent into chat channels. Telegram first, DM-only, zero runtime deps (Bun + bun:sqlite + raw fetch). The agent scales to zero; this edge is the only always-on part. See ../docs/delta-connect/SPEC.md for the design.

Layout

  • src/types.ts - the neutral contract (Inbound envelope, codec/ingress/supervisor/agent interfaces).
  • src/store.ts - the durable spine: inbox (dedup), sessions (threading), outbox (ordered, grouped, at-least-once delivery with retry backoff + dead-lettering). The per-turn writes commit atomically (commitTurn).
  • src/telegram.ts - Telegram codec + long-poll ingress (durable insert before offset advance).
  • src/agent.ts - one turn against the Delta seam (POST /v1/responses).
  • src/supervisor.ts - local keep-alive; Fly start/suspend swaps in behind the same interface.
  • src/core.ts - the dispatch loop (durable-write-before-deliver).
  • src/index.ts - wiring + entrypoint.

Run

Secrets live in connect/.env (gitignored):

TELEGRAM_BOT_TOKEN=...        # from @BotFather
DELTA_BASE_URL=http://127.0.0.1:8080
DELTA_AGENT_NAME=Ferni
ALLOWED_TELEGRAM_USER_IDS=    # comma-separated; empty = open (dev). Get yours by messaging /id
DELTA_CONNECT_RICH=           # "off" to disable rich replies + the live progress line

Rendering (0.5.0)

Replies go out as Telegram Rich Messages: the agent's markdown is handed to Telegram's own parser, so tables, task lists, headings, fenced code and math render natively instead of being flattened into a small HTML subset. Anything Telegram refuses falls back to the previous HTML path, and a Bot API server without Rich Messages is detected once and never asked again.

While a turn runs, an ephemeral draft names the work in flight ("Searching the web"), read from the daemon's GET /v1/tasks/:id/events?since=N feed on the poll that already runs. It shows what the agent is doing rather than the reply being written: only a step with no tool calls becomes the answer, so the model's narration can claim things that are never sent.

bun test            # durable-spine unit tests
bun start           # run the connector against a live Delta daemon

Point it at a running daemon (GET /healthz returns {ok:true}), message the bot on Telegram, and the round trip is: long-poll -> inbox -> agent -> outbox -> reply.