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

usda-code

v0.3.0

Published

Usda Code - Open-source AI coding agent with terminal-first experience and multi-model support

Readme

Usda Code

Open-source AI coding agent with a terminal-first experience, multi-model support, and full tool execution.

Write code, run commands, manage files — all from your terminal with any LLM provider.


✨ Features

  • Terminal-First UI — Full-screen interactive interface with animated feedback, keyboard shortcuts, and word-by-word response streaming
  • Multi-Model Support — Works with OpenAI, Anthropic, Google, NVIDIA, OpenRouter, Ollama, vLLM, or any OpenAI-compatible API
  • Dual Agent Modes — Full execution mode for active coding, planning mode for safe analysis
  • Tool System — Filesystem operations, shell commands, and git integration with structured validation
  • Session Persistence — Resume conversations across restarts with usda -r <sessionId>
  • Plugin Architecture — Extend with custom tools and providers
  • Human-in-the-Loop — Approval system for destructive operations; toggle with -a for auto-approve
  • Cross-Platform — macOS, Windows, Linux

📦 Installation

npm i -g usda-code

Requires Node.js 18+.

🚀 Quick Start

# Interactive mode — opens the full terminal UI
usda

# Run a single task directly
usda "create a REST API with Express"

# Auto-approve all tool actions (no y/n prompts)
usda -a

# Resume a previous session
usda -r <sessionId>

On first run, usda will walk you through selecting a provider, model, and API key. Configuration is saved to usda.config.yaml in the current directory.

⌨️ Keyboard Shortcuts

| Key | Action | |-----|--------| | Tab | Autocomplete /commands | | Ctrl+O | Expand/collapse latest thinking | | Ctrl+E | Expand/collapse latest prompt | | Ctrl+J | Toggle all collapsed/expanded items | | Ctrl+C ×2 | Exit (double-press within 2s) |

🔧 Configuration

Create usda.config.yaml in your project root (or let usda generate it on first run):

provider:
  provider: openrouter
  model: anthropic/claude-sonnet-4-20250514
  apiKey: sk-or-...
  baseUrl: https://openrouter.ai/api/v1
  temperature: 0.7
  maxTokens: 4096

agent:
  mode: full            # full | planning
  maxSteps: 50
  requireApproval: false
  blockedCommands:
    - rm -rf
    - format
    - shutdown
  commandTimeout: 30000

🔌 Supported Providers

| Provider | Base URL | Example Models | |----------|----------|----------------| | OpenAI | https://api.openai.com/v1 | gpt-4o, gpt-4o-mini | | Anthropic | https://api.anthropic.com | claude-sonnet-4-20250514, claude-3-haiku | | Google | https://generativelanguage.googleapis.com/v1beta/openai | gemini-2.0-flash | | NVIDIA | https://integrate.api.nvidia.com/v1 | meta/llama3-70b-instruct | | OpenRouter | https://openrouter.ai/api/v1 | Any model on OpenRouter | | Ollama | http://localhost:11434/v1 | llama3.1, mistral, deepseek-coder | | vLLM | http://localhost:8000/v1 | Any locally hosted model | | Custom | User-defined | Any OpenAI-compatible endpoint |

📝 Slash Commands

Type these during interactive mode:

| Command | Description | |---------|-------------| | /help | Show all commands | | /model | Change the current model | | /provider | Switch provider | | /key | Update API key | | /mode | Toggle between full and planning mode | | /auto | Toggle auto-approve | | /status | Show session stats (steps, tokens) | | /clear | Clear the screen | | /new | Start a new session | | /q | Quit |

🛠️ What Usda Code Can Do

  • Read, write, create, and edit files in your project
  • Run shell commands — install deps, run builds, execute tests
  • Search and refactor codebases — grep, analyze, restructure
  • Git operations — stage, commit, diff, log
  • Debug issues — trace errors, inspect logs, fix code
  • Multi-step tasks — break down complex work into logical steps

🏗️ Architecture

src/
├── agents/        # Full & Planning agent implementations
├── approval/      # Human-in-the-loop approval system
├── cli/           # Terminal UI (renderer, input handling)
├── config/        # YAML config loader & types
├── plugins/       # Plugin system (extensible tools)
├── providers/     # LLM provider adapters (OpenAI, Anthropic, etc.)
├── session/       # Session persistence & memory
├── tools/         # Built-in tools (filesystem, shell, git)
└── utils/         # Logger, helpers, env

📄 License

MIT