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 🙏

© 2025 – Pkg Stats / Ryan Hefner

telepipe

v1.0.2

Published

AI can write code. Now it can run it. Give your AI eyes, hands, and the ability to verify its own work

Downloads

531

Readme

🚀 Telepipe

AI can write code. Now it can run it.

npm install -g telepipe

The Problem

AI agents are fluent in protocols. They know CDP, SQL, Redis, GraphQL inside and out. They've generated thousands of queries, hundreds of debugging sessions.

But they can't use that knowledge. They describe what to do instead of doing it. They hope code works instead of verifying it.

AI has knowledge without connection.


The Solution

Telepipe gives AI agents TCP connections to real systems.

# Give your AI access to PostgreSQL
telepipe connect --id db --port 5432

# Give your AI access to Chrome DevTools (requires websocat)
telepipe redirect --id chrome -- websocat --no-close --text "ws://127.0.0.1:9222/..."

# Let your AI run and test its own code
telepipe redirect --id myapp -- npm start

Now your AI doesn't guess if code works. It proves it works.


Enabling Your AI (30 seconds) ⭐

For AI developers - this is the most important section:

1. Install Telepipe

npm install -g telepipe

2. Give your AI this instruction

You now have access to Telepipe for TCP connections.
Read and internalize the Telepipe agent guide.
Located at: /usr/local/lib/node_modules/telepipe/docs/for-agents/README.md
(or wherever npm installed it globally on your system)
You can now connect to Chrome DevTools, databases, and any TCP service.

3. Your AI is ready!

It can now:

  • Connect to Chrome DevTools Protocol (CDP)
  • Execute SQL queries and verify data
  • Screenshot UIs it builds
  • Debug APIs in real-time
  • And much more...

That's it. Your AI reads one document and gains TCP superpowers.

→ See docs/for-agents/README.md (the document your AI will read) → Need help finding the install path? See docs/for-humans/agent-setup.md


What Can Your AI Do With Telepipe?

| With Telepipe + CDP | Your AI Can... | |---------------------|----------------| | Page.captureScreenshot() | See its own UI | | DOM.querySelector() | Verify elements exist | | Runtime.evaluate() | Test JavaScript behavior | | Console.enable() | Check for errors |

| With Telepipe + SQL | Your AI Can... | |---------------------|----------------| | SELECT * FROM... | Verify data | | EXPLAIN ANALYZE | Optimize queries | | \d tablename | Inspect schemas |

| With Telepipe + AppleScript | Your AI Can... | |-----------------------------|----------------| | Control Xcode | Build iOS apps | | Automate macOS | System automation |


Real Examples

Test a React App

// Your AI does this automatically:
{"method": "Page.navigate", "params": {"url": "http://localhost:3000"}}
{"method": "Page.captureScreenshot"}
// "I verified the UI renders. Here's the screenshot."

→ Full pattern: docs/for-agents/patterns/test-react.md

Debug an API

// Your AI verifies API responses:
{"method": "Network.enable"}
{"method": "Page.navigate", "params": {"url": "http://localhost:3000/api/users"}}
// "API returned 200. Response structure matches schema."

→ Full pattern: docs/for-agents/patterns/debug-api.md

Verify Database Changes

-- Your AI verifies inserts worked:
SELECT COUNT(*) FROM users WHERE email = '[email protected]';
-- "Insert confirmed. 1 row found."

→ Full pattern: docs/for-agents/patterns/verify-db.md

→ More patterns: docs/for-agents/patterns/


The Mindset

Before Telepipe:

AI: "This code should work..."
AI: "The query is probably correct..."
AI: "The UI likely renders..."

After Telepipe:

AI: "I ran the code. Exit code 0."
AI: "I executed the query. 47 rows returned."
AI: "I inspected the closures of the function. Here's proof it does work."

Built Different

Telepipe was built using our novel constitutional governance model - an engineering approach we developed from scratch for deterministic, production-ready software.

What this means:

  • Zero drift - Code cannot diverge from specification
  • Self-regenerating - System rebuilds itself from law
  • Battle-tested - 1350+ command validations, chaos engineering
  • Proven correct - Constitutional law defines all behavior

This isn't just tested well. It's engineered to be deterministic.

→ How we built it: docs/about/governance.md → Testing & reliability: docs/for-humans/testing.md


Persistent by Design

Traditional tools connect, execute, disconnect. Every command pays the TCP handshake tax.

Telepipe maintains persistent sessions:

# Traditional approach: 1000 commands = 1000 connections
curl ... && curl ... && curl ...  # Each one reconnects

# Telepipe: 1000 commands = 1 connection
telepipe connect --id db --port 5432
# Session stays open. AI fires thousands of queries. One connection.

Why this matters:

| Problem | Traditional | Telepipe | |---------|-------------|----------| | Cloud compute is metered | Every connection costs | One connection, thousands of operations | | AI agents are chatty | 50 CDP commands = 50 reconnects | 50 CDP commands = 1 session | | Latency adds up | 10ms × 1000 = 10s overhead | Zero reconnection overhead |

This isn't optimization. It's architecture.

Sessions persist until you close them. Your AI connects once, then fires hundreds of commands per second without networking overhead. In metered cloud environments, this is the difference between viable and expensive.


Command Reference (Basics)

# Connect to a TCP service (databases, Redis, etc.)
telepipe connect --id db --port 5432

# Connect to Chrome DevTools (WebSocket requires websocat bridge)
telepipe redirect --id chrome -- websocat --no-close --text "ws://127.0.0.1:9222/devtools/browser/..."

# Redirect a process (capture its stdio over TCP)
telepipe redirect --id myapp -- npm start

# Execute against a redirected process
telepipe exec --id myapp

# Check session info
telepipe info --id myapp

# Stop a redirected process
telepipe stop --id myapp

# Disconnect from external service
telepipe disconnect --id chrome

→ Full reference: docs/reference/commands.md


For Human Developers

Want to understand how it works?

Getting Started:

Setup Guides:

→ Full documentation: docs/README.md


Architecture

┌──────────────┐      TCP       ┌──────────────┐
│   Your AI    │◄──────────────►│   Telepipe   │
│              │   :49152-n     │   Supervisor │
└──────────────┘                └──────┬───────┘
                                       │
                    ┌──────────────────┼──────────────────┐
                    │                  │                  │
                    ▼                  ▼                  ▼
              ┌──────────┐      ┌──────────┐      ┌──────────┐
              │  Chrome  │      │ Postgres │      │  Redis   │
              │  (CDP)   │      │  (SQL)   │      │ (Cache)  │
              └──────────┘      └──────────┘      └──────────┘

Telepipe manages TCP connections so your AI can focus on using its protocol knowledge.


Platform Support

| Platform | Status | |----------|--------| | macOS (ARM64) | ✅ Verified | | macOS (x86_64) | ✅ Verified | | Linux | ✅ Verified |


The Vision

AI agents are fluent in every protocol. They have encyclopedic knowledge of CDP, SQL, GraphQL, LSP, Redis, and more.

What they lack is connection.

Telepipe is that connection. It's the bridge between AI knowledge and real-world capability.

Give your AI eyes. Give it hands. Let it verify its own work.


See AI Verify Its Own Code

Want to see Telepipe in action? Watch AI agents debug and verify in real-time:

The Full-Stack Final Boss

| Demo | Layer | What AI Proves | |------|-------|----------------| | Web Demo | Frontend | React state via CDP | | iOS Demo | Mobile | SwiftUI state via LLDB | | SQL Demo | Backend | Query plans via EXPLAIN ANALYZE | | API Demo | Integration | HTTP endpoints via curl |

Web Demo: Sighted Agent Build

AI builds a React app and queries JavaScript runtime state via CDP:

// AI doesn't assume. AI queries.
Runtime.evaluate({ expression: "window.__GAME_STATE__.board[0]" })
// Response: "X"
// AI: "I verified board[0] === 'X'. Not assumed. QUERIED."

Run the web demo (~10 min)

iOS Demo: LLDB Debugging

AI builds a SwiftUI app and debugs via LLDB inspection:

// AI doesn't guess. AI inspects.
(lldb) po viewModel.items.count
0
// AI: "BUG FOUND! Items don't persist after restart!"

Run the iOS demo (~10 min)

SQL Demo: Query Optimization

AI optimizes queries and proves improvements with EXPLAIN ANALYZE:

-- AI doesn't hope. AI measures.
EXPLAIN ANALYZE SELECT * FROM users WHERE email LIKE '%@gmail.com';
-- Before: Seq Scan, 5234ms
-- After index: Bitmap Index Scan, 52ms
-- AI: "100x faster. VERIFIED with execution plan."

Run the SQL demo (~10 min)

API Demo: REST API Testing

AI builds and tests APIs with real HTTP requests via curl:

# AI doesn't assume endpoints work. AI tests them.
curl -X POST http://localhost:3000/api/todos -d '{"title":"Buy milk"}'
# Response: {"id":1,"title":"Buy milk","completed":false}
# Status: 201
# AI: "POST endpoint verified. 201 Created with ID."

Run the API demo (~10 min)

Same paradigm, four runtimes. CDP for web, LLDB for iOS, EXPLAIN ANALYZE for databases, curl for APIs. Complete stack coverage with proof.


Contributing

See docs/for-humans/contributing.md.


License

MIT