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

teleprompter-cli

v1.0.1

Published

Interactive CLI for managing LLM prompts with Cloudflare Workers

Readme

Teleprompter CLI

A modern CLI for managing LLM prompts with Cloudflare Workers. Features an interactive terminal UI built with Ink and full scriptability with JSON output.

Installation

Global Installation (Recommended)

npm install -g teleprompter-cli
tp --help
tp --version
tp list --json

After installation, the tp command will be available globally.

From Source

git clone https://github.com/britt/teleprompter-cli.git
cd teleprompter-cli
npm install
npm run build
npm link

Features

Interactive Terminal UI

  • Beautiful Ink-based interface: React-powered terminal UI
  • Browse prompts: Scrollable list with keyboard navigation
  • View details: Full prompt information with version history
  • Rollback versions: Restore previous versions of prompts
  • Create prompts: Multi-step form for creating new prompts
  • Keyboard controls:
    • ↑/↓ - Navigate lists
    • Enter - Select/view details
    • n - Create new prompt (from list view)
    • v - View versions (from detail view)
    • r - Rollback to version
    • f - Filter by ID prefix (from list view)
    • ESC / Ctrl+B / b - Back or cancel
    • q - Quit

CLI Commands (Scriptable)

All commands support --json flag for machine-readable output:

# List all active prompts
tp list [--json]

# Get a specific prompt
tp get <promptId> [--json]

# Create or update a prompt
tp put <name> <namespace> [text] [--json]
# Or pipe from stdin:
echo "prompt text" | tp put <name> <namespace> --json

# List versions of a prompt
tp versions <promptId> [--json]

# Rollback to a specific version
tp rollback <promptId> <version> [--json]

# Export prompts matching a pattern
tp export <pattern> [--out <directory>] [--json]
# Example: tp export "prod-*" --out ./backups

# Import prompts from JSON files
tp import <files...> [--json]
# Example: tp import prompt1.json prompt2.json

Configuration

Set the Teleprompter service URL:

# Via environment variable (recommended)
export TP_URL=https://your-teleprompter-service.com

# Or use --url flag
tp list --url https://your-teleprompter-service.com

Authentication

The CLI uses Cloudflare Access for authentication:

  • For localhost development: Uses a default token
  • For remote URLs: Uses cloudflared access login to authenticate
  • Tokens are cached in ~/.teleprompter/token

Development

Requirements

  • Node.js >= 18.0.0
  • Bun (for development/testing)

Setup

npm install
npm run build

Scripts

npm run build     # Compile TypeScript to JavaScript
npm run dev       # Watch mode for development
npm test          # Run test suite (56 tests)
npm start         # Run the CLI

Testing

The project includes a comprehensive test suite with 56 tests covering:

  • Authentication and token management
  • All CLI commands and flags
  • React components (PromptsList, PromptDetail, NewPromptForm)
  • JSON output formatting
  • Error handling
npm test          # Run all tests
npm test -- --coverage  # Run with coverage report

Architecture

  • Runtime: Node.js (TypeScript compiled to JavaScript)
  • UI Framework: Ink (React for CLIs)
  • CLI Framework: Commander.js
  • HTTP Client: Axios
  • Testing: Bun test + ink-testing-library

Project Structure

teleprompter-cli/
├── dist/                  # Compiled JavaScript (generated)
├── components/            # React components for UI
│   ├── PromptsList.tsx
│   ├── PromptDetail.tsx
│   └── NewPromptForm.tsx
├── index.ts              # Main CLI entry point
├── auth.ts               # Authentication module
├── *.test.ts(x)          # Test files
├── package.json          # NPM package configuration
└── tsconfig.json         # TypeScript configuration

License

MIT © Britt Crawford

Contributing

Issues and pull requests welcome at https://github.com/britt/teleprompter-cli