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

xyro-cli

v0.1.0

Published

XYRO — a terminal-native AI coding agent built from scratch

Readme

██╗  ██╗██╗   ██╗██████╗  ██████╗
╚██╗██╔╝╚██╗ ██╔╝██╔══██╗██╔═══██╗
 ╚███╔╝  ╚████╔╝ ██║  ██║██║   ██║
 ██╔██╗   ╚██╔╝  ██║  ██║██║   ██║
██╔╝ ██╗   ██║   ██████╔╝╚██████╔╝
╚═╝  ╚═╝   ╚═╝   ╚═════╝  ╚═════╝

FeaturesQuickstartUsageArchitectureRoadmapKnown Gaps


◆ What is XYRO?

XYRO is a terminal-native AI coding agent written in TypeScript from scratch. It operates as an interactive CLI that connects to OpenAI-compatible LLM providers (OpenAI, Groq, OpenRouter, DeepSeek, and others) and helps you navigate, analyze, understand, and modify codebases — all without leaving your terminal.

Unlike most AI coding tools that require a VS Code extension, a web dashboard, or proprietary infrastructure, XYRO is a single binary that runs wherever Node.js runs. It uses the model context protocol (MCP) pattern: the LLM drives the session, calls tools (file read, file write, shell commands, code search), and XYRO executes them locally.


✦ Features

| Icon | Area | Description | |------|------|-------------| | ◆ | Provider-Agnostic | Works with OpenAI, Groq, OpenRouter, DeepSeek, or any OpenAI-compatible API | | ▸ | Persistent Sessions | Auto-saves conversation history; resume with --resume | | ● | Tool System | Filesystem read/write, shell execution, code search, glob matching | | ⚡ | Interactive Prompts | Rich terminal UI via clack prompts, gradient banners, colored output | | ★ | Config Persistence | Remembers your provider, model, and API key across sessions | | ❖ | No-Banner Mode | Headless/JSON output for CI pipelines and scripting | | ◈ | Free-Tier Friendly | Built-in provider presets for Groq, OpenRouter, DeepSeek free tiers | | ▣ | Error Handling | Granular API error formatting per provider (auth, rate-limit, model-not-found) |


⚡ Quickstart

# Install globally
npm install -g xyro

# Or run directly
npx xyro

# First run walks you through setup
xyro

Environment

OPENAI_API_KEY=sk-...           # default for any provider
XYRO_NO_BANNER=1                # suppress the ASCII banner

Provider presets

# Use a specific provider
xyro --provider groq
xyro --provider openrouter --model openai/gpt-4o
xyro --provider deepseek

# Full manual config
xyro --api-key sk-... --base-url https://api.example.com/v1 --model gpt-4o

◆ Usage

Usage: xyro [options]

Options:
  --api-key <key>          API key
  -m, --model <model>      LLM model
  --base-url <url>         OpenAI-compatible base URL
  --provider <id>          Provider ID (groq, openrouter, deepseek)
  --max-tool-calls <n>     Max tool calls per turn (default: 25)
  --resume                 Resume previous conversation
  --no-banner              Skip interactive setup and banner
  --json                   JSON output mode (skips banner)
  -V, --version            output the version number
  -h, --help               display help for command

Interactive Commands

| Command | Action | |---------|--------| | exit / quit | Save and exit | | clear | Reset conversation history | | resume | Reload last session |


▸ Architecture

┌─────────────────────────────────────────────────────┐
│                     XYRO CLI                        │
│  ┌──────────┐  ┌──────────┐  ┌──────────────────┐  │
│  │ commander │  │  clack   │  │  gradient-string │  │
│  │ (args)    │  │(prompts) │  │  (banners)       │  │
│  └────┬─────┘  └────┬─────┘  └────────┬─────────┘  │
│       │             │                  │            │
│  ┌────▼─────────────▼──────────────────▼─────────┐  │
│  │              Agent Loop                        │  │
│  │  ┌──────────┐  ┌──────────┐  ┌─────────────┐  │  │
│  │  │   LLM    │  │  Tools   │  │  History     │  │  │
│  │  │ Provider │──│ Registry │──│  Persistance │  │  │
│  │  └──────────┘  └──────────┘  └─────────────┘  │  │
│  └────────────────────────────────────────────────┘  │
│                                                       │
│  ┌─────────────────────────────────────────────────┐  │
│  │  Tools                                          │  │
│  │  read ├── write ├── shell ├── search ├── glob   │  │
│  └─────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────┘

Core Loop

  1. CLI parses arguments and reads persisted config (provider, model, key)
  2. Agent Loop creates an OpenAI-compatible client and enters the interaction loop
  3. User input is sent to the LLM alongside tool definitions
  4. LLM responds with text or tool call requests
  5. Tool Registry dispatches calls to filesystem/shell/search operations
  6. Results are fed back to the LLM for the next turn
  7. History is saved on exit for --resume

Tool System

| Tool | Capability | |------|-----------| | read | Read file contents with line numbers | | write | Write or overwrite files | | shell | Execute shell commands with timeout | | search | Regex/grep file contents | | glob | Pattern-based file discovery |


● Stack

Runtime     ◆  Node.js / TypeScript / ES2022
CLI         ◆  commander
Prompts     ◆  @clack/prompts
Terminal    ◆  picocolors + gradient-string
AI API      ◆  openai SDK (OpenAI-compatible)
Build       ◆  TypeScript compiler (tsc)
Dev runner  ◆  tsx

❖ Known Gaps & Roadmap

XYRO is in early development. Here is what it does not yet have, in rough priority order:

| Area | Gap | Status | |------|-----|--------| | ◈ | Multi-file edits — single-file writes only, no diff/patch | Planned | | ▣ | Diff preview — no staged review of changes before apply | Planned | | ⚡ | Cost tracking — no per-session token/cost meter | Planned | | ▸ | Git integration — no automatic commits or branch management | Planned | | ◆ | Context window management — no summarization or sliding window | Planned | | ● | Plugin system — tools are hard-coded, not extensible at runtime | Future | | ❖ | File watching — no --watch mode for continuous feedback | Future | | ★ | Config profiles — single saved config only | Future | | ▣ | Streaming output — blocks until full LLM response | Future | | ◈ | Test runner — no built-in test execution harness | Future | | ▣ | Self-hosted docs — no xyro --help beyond commander output | Future | | ⚡ | Multi-turn planning — no explicit plan/approve step before execution | Future |


✦ Development

# Clone
git clone [email protected]:CYBERCLAN237/Xyro-Cli.git
cd xyro

# Install
npm install

# Dev (runs via tsx)
npm run dev

# Build
npm run build

# Run built version
npm start

▸ License

MIT — see LICENSE