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

poke-tui

v0.0.6

Published

Chat with your Poke AI assistant from the terminal

Readme

🌴 poke-tui

A terminal UI for Poke — chat with your AI assistant without leaving the terminal.

Built with Ink (React for CLIs) and the Poke SDK.

Quick start

npx poke-tui

On first run, you'll be guided through a one-time setup to paste your API key.

How it works

poke-tui connects to your Poke agent through the Poke API. You type messages in the terminal, and Poke responds inline — no need to switch to iMessage, Telegram, or SMS.

Behind the scenes, poke-tui runs a local MCP server and tunnels it to Poke's cloud using PokeTunnel. This gives the agent a reply_to_terminal tool it can call to send responses directly back to your terminal.

flowchart TD
    A["You type a message"] --> B["Poke API (sendMessage)"]
    B --> C["Poke Agent processes it"]
    C --> D["Agent calls reply_to_terminal"]
    D --> E["MCP Tunnel (WebSocket)"]
    E --> F["Response in your terminal"]

Setup

Option 1: API key (recommended)

  1. Go to poke.com/kitchen/api-keys
  2. Generate a new key
  3. Run npx poke-tui and paste it when prompted

The key is saved to ~/.config/poke-tui/config.json for future sessions.

Option 2: Environment variable

export POKE_API_KEY=your_key_here
npx poke-tui

poke-tui checks credentials in this order: POKE_API_KEY env var → ~/.config/poke-tui/config.json.

Commands

| Command | Description | |---------|-------------| | /help | Show available commands | | /status | Show connection status | | /webhook create <when> \| <do what> | Create a webhook trigger | | /webhook fire <#> {"data":"here"} | Fire a webhook with JSON data | | /webhooks | List active webhooks | | /clear | Clear the chat |

Webhooks

Create automated triggers that fire your Poke agent with data:

/webhook create When a deploy fails | Summarize the error and suggest a fix
/webhook fire 0 {"repo":"my-app","error":"OOM killed","status":"failed"}

Key bindings

| Key | Action | |-----|--------| | Enter | Send message | | Ctrl-C | Quit | | Esc | Clear input |

Requirements

  • Node.js 18+
  • A Poke account with an API key

How the MCP tunnel works

poke-tui starts a lightweight HTTP server locally that implements the Model Context Protocol (MCP). It exposes two tools:

  • reply_to_terminal — the agent calls this to send its response to your terminal
  • notify_terminal — for short notifications

The server is tunneled to Poke's cloud via PokeTunnel (WebSocket-based). When the agent processes your message, it calls the tool, and the response flows back through the tunnel into your terminal.

Configuration

Config is stored at ~/.config/poke-tui/config.json:

{
  "apiKey": "your_key_here"
}

To reset, delete the file and run npx poke-tui again.

Project structure

bin/
  poke-tui.js       Entry point (npx bin), onboarding flow
src/
  app.js            Wires MCP server, Poke client, and TUI together
  mcp-server.js     Local MCP server (raw JSON-RPC over HTTP)
  poke-client.js    Poke SDK + PokeTunnel wrapper
  tui.js            Ink (React) terminal UI

Credits

License

MIT