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

@grackle-ai/powerline

v0.108.1

Published

gRPC PowerLine server for Grackle AI agent integration

Downloads

3,006

Readme

@grackle-ai/powerline

The PowerLine is the remote agent runtime that runs inside each Grackle environment. It receives commands from the central Grackle server over gRPC (ConnectRPC on HTTP/2), spawns AI coding agents, and streams their output back in real time.

Think of PowerLine as the "agent host" — it runs wherever your code lives (a Docker container, a remote VM, a GitHub Codespace) and manages the full lifecycle of agent sessions: spawning, streaming, input delivery, suspension, and teardown.

How it works

When you add an environment to Grackle, the server connects to that environment's PowerLine instance over gRPC. From there, the server can:

  • Spawn agent sessions — start any supported AI runtime with a prompt, model, and optional configuration like MCP servers, git branch isolation, and system context.
  • Stream events — receive tool calls, code output, and status updates as they happen, bridged to the Web UI and CLI via WebSocket.
  • Deliver input — send user messages to agents waiting for interactive input.
  • Suspend and resume — if the gRPC connection drops, buffered events are parked and can be drained on reconnect. Sessions resume where they left off.
  • Push credentials — securely inject API keys and tokens as environment variables or files (with path-traversal protection).
  • Manage git worktrees — isolate each task on its own branch in its own worktree, so agents never interfere with each other.

Supported runtimes

PowerLine uses a pluggable runtime architecture. Each runtime implements a common interface for spawning and streaming agent sessions.

| Runtime | Description | |---------|-------------| | Claude Code | Anthropic's Claude via the Agent SDK | | Copilot | GitHub Copilot CLI agent | | Codex | OpenAI Codex CLI agent | | Goose | Goose agent (via ACP) | | GenAIScript | Script-based agent for single-turn automation |

Additional runtimes can be added by implementing the AgentRuntime interface.

Installation

npm install @grackle-ai/powerline

You don't typically install PowerLine directly. The Grackle server installs and launches it automatically in Docker environments, and it runs as a standalone process in SSH and Codespace environments.

For development or manual use:

npx @grackle-ai/powerline --port 7433 --token <secret>

Usage

# Start with authentication (required by default)
grackle-powerline --token my-secret-token

# Or use an environment variable
GRACKLE_POWERLINE_TOKEN=my-secret-token grackle-powerline

# Start without authentication (development only)
grackle-powerline --no-auth

# Start on a custom port and host
grackle-powerline --port 9000 --host 0.0.0.0 --token my-secret-token

A token is required by default via --token or the GRACKLE_POWERLINE_TOKEN environment variable. To run without authentication for local development, pass --no-auth explicitly. When --no-auth is set, any token from --token or the environment variable is ignored.

Health check

PowerLine exposes a /healthz endpoint on the same HTTP/2 port for container health probes. It requires no authentication and returns 200 {"status":"ok"} with Cache-Control: no-store.

# Check with Node.js (HTTP/2)
node -e "const client=require('http2').connect('http://127.0.0.1:7433'); const req=client.request({':path':'/healthz'}); req.on('response',h=>console.log(h[':status'])); req.on('data',d=>console.log(d.toString())); req.on('end',()=>client.close()); req.end();"

Requirements

  • Node.js >= 22
  • Agent runtimes are installed on demand — only the runtimes you use need to be available on the system

License

MIT