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

xibecode

v0.5.7

Published

AI-powered autonomous coding assistant with WebUI, AI test generation, multi-model support, and plugin system

Readme

XibeCode

AI-powered autonomous coding assistant for your terminal, browser, and desktop.

Donate Version Desktop App

Overview

XibeCode is a CLI agent that can read and edit code, run commands, and iterate on tasks from your terminal using LLMs. It includes a WebUI for a browser-based experience, a Desktop App (Electron) for native IDE-like usage, AI-powered test generation, and multi-model support for both Anthropic and OpenAI models.

What's New in v0.5.7

🚀 Native Gemini Support

XibeCode now supports Google Gemini natively via their OpenAI-compatible endpoint.

  • New Models: Gemini 3 Deep Think, Gemini 3 Flash Preview, Gemini 2.5 Pro.
  • Direct Integration: Use your Google API Key without proxies.

🔒 Settings Security & UI

  • Eye Toggle: Added visibility toggle for API keys in Settings.
  • Improved Masking: Better feedback for existing keys.
  • Native Providers: Added native Google option in the provider dropdown.

⚡ Comprehensive Model Update (2025-2026)

Verified support for the latest flagships from OpenAI (GPT-5.2), Anthropic (Claude 4.6), Zhipu AI (GLM-5), and more.

✨ Feature Improvements

  • Enhanced Custom Providers: Explicit "API Format" selection for custom endpoints.
  • UI Fixes: Improved "Apply Custom Model" button feedback and settings persistence.
  • Performance: Optimized model list loading and configuration handling.

v0.5.4

  • Context Chips - Terminal context (full buffer or selections) is now added as "chips" to the chat instead of raw text, keeping the interface clean while giving the AI full context.
  • Interactive Plan Mode - Plan mode now asks clarifying questions, searches the web, and generates detailed implementations.md with checkboxes. Click "Build" to auto-execute the plan.
  • Chat History - Full conversation persistence with per-project storage. Resume any previous chat from the History panel.
  • Environment Variables Editor - Visual .env file editor with auto-detection, secret masking, and live editing.
  • Media File Preview - Images, videos, and audio files render as proper previews instead of binary in the editor.
  • Thinking Animation - Loading spinner and "Thinking..." indicator shown while the AI processes your request.
  • Improved Tool Rendering - Tool calls display with descriptive icons, status badges, and live progress indicators.
  • Session Info Bar - Status bar shows model, mode, session name, tools status, and theme.
  • XibeCode ASCII Banner - Beautiful gradient ASCII art branding in the chat welcome screen.
  • Donate Button - Support XibeCode development via the activity bar.
  • Smart Auto-Scroll - Chat no longer force-scrolls when you're reading earlier messages.

Previous (v0.4.x)

  • v0.dev-inspired UI - Modern split-panel layout with resizable chat and code areas
  • Multi-Terminal Support - Create/manage multiple terminal tabs with + and X buttons
  • Monaco Code Editor - Full syntax highlighting and IntelliSense in the browser
  • Settings Modal - Configure AI provider, display, dev settings, and MCP servers
  • MCP JSON Editor - Edit mcp-servers.json directly with Monaco syntax highlighting
  • Git History Graph - Visual commit timeline with branch/tag indicators
  • Custom Model Support - Add any model (Claude, GPT, DeepSeek, etc.) via WebUI or CLI
  • Real PTY Terminal - Fully interactive shell with colors, tab-completion, and all terminal features
  • File Tree Explorer - Browse and open files with recursive directory tree
  • Current Model Display - Status bar shows active AI model
  • Drag-to-Resize Panels - Adjustable chat/code split layout

Screenshots

Main Interface

Main Interface Modern v0.dev-inspired interface with activity bar, chat panel, code editor, and terminal

File Explorer

File Explorer Browse and open files with recursive directory tree

Chat Interface

Chat Interface Interactive AI chat with streaming responses and markdown rendering

Git Panel

Git Panel Git integration with commit history, staging, and diffs

Settings Panel

Settings Panel Comprehensive settings modal with multiple configuration categories

AI Provider Settings

AI Provider Settings Configure AI models, API keys, and provider settings

MCP Servers Editor

MCP Servers Editor Edit MCP server configuration with Monaco editor and syntax highlighting

Terminal View

Terminal View Fully interactive terminal with PTY support, colors, and tab completion

Desktop App

Download the native desktop app for your platform from GitHub Releases:

| Platform | Architecture | Download | |----------|-------------|----------| | Windows | x64 / arm64 | .exe installer | | macOS | Intel / Apple Silicon | .dmg | | Linux | x64 | .deb, .rpm, .AppImage | | Linux | arm64 | .deb, .rpm, .AppImage |

The desktop app is a thin shell that runs the xibecode CLI underneath. Install the CLI first, then the desktop app gives you a native window with:

  • VS Code-style welcome screen with recent projects
  • Open Folder / Clone Repository / New Project
  • Full XibeCode WebUI in a native window
  • CLI updates automatically propagate (no app update needed)

Installation

CLI (required)

npm install -g xibecode

From source:

git clone https://github.com/iotserver24/xibecode
cd xibecode
pnpm install
pnpm run build
npm link

Requirements

  • Node.js 18+
  • API key from Anthropic or OpenAI

Quick Start

# Configure once
xibecode config --set-key YOUR_API_KEY

# Interactive terminal mode
xibecode chat

# Open WebUI in browser (recommended for beginners)
xibecode ui --open

# Autonomous run
xibecode run "Create an Express API with auth"

Main Commands

xibecode ui

NEW - Start the WebUI in your browser.

xibecode ui              # Start on localhost:3847
xibecode ui --open       # Auto-open browser
xibecode ui -p 8080      # Custom port

Features:

  • v0.dev-style Layout - Activity bar (left) → Chat panel (resizable) → Code editor (right)
  • Monaco Code Editor - Professional code editor with syntax highlighting and IntelliSense
  • File Tree Explorer - Browse and open project files with recursive directory tree
  • Multi-Terminal Tabs - Create/manage multiple shell sessions with + and X buttons
  • Real PTY Terminal - Fully interactive bash/zsh with colors, tab-completion, vim/nano support
  • Git Integration - Commit history graph, stage/unstage files, view diffs, write commits
  • Settings Modal - Configure AI provider, display preferences, dev tools, and MCP servers
  • MCP JSON Editor - Edit mcp-servers.json directly with Monaco syntax highlighting
  • Custom Models - Add any AI model (Claude, GPT-4, DeepSeek, Llama) via dropdown + text input
  • Real-time Chat - Streaming AI responses with markdown rendering
  • Status Bar - Connection status, current mode, active AI model, cursor position
  • Resizable Panels - Drag the divider between chat and code areas to adjust layout
  • Slash Commands - Type / for commands and mode switching, @ for file references
  • New Chat Button - Clear conversation with + button in chat input

xibecode run

Autonomous coding workflow.

xibecode run "Build a REST API with Express"
xibecode run "Fix the TypeScript errors" --verbose
xibecode run --file task.txt

Options:

  • -f, --file <path> prompt from file
  • -m, --model <model> model override
  • --mode <mode> initial agent mode
  • -b, --base-url <url> custom API URL
  • -k, --api-key <key> API key override
  • --provider <provider> anthropic or openai
  • -d, --max-iterations <number> default 150 (0 = unlimited)
  • -v, --verbose
  • --dry-run
  • --changed-only

xibecode chat

Interactive terminal chat + tool use.

Options:

  • -m, --model <model>
  • -b, --base-url <url>
  • -k, --api-key <key>
  • --provider <provider>
  • --theme <theme>
  • --session <id>

xibecode config

Manage saved config:

  • --set-key, --set-url, --set-model
  • --show, --reset
  • MCP helpers: --list-mcp-servers, --add-mcp-server, --remove-mcp-server

xibecode mcp

MCP server management:

  • add, list, remove, file, edit, init, reload
  • search, install, login (Smithery integration)

Core Features

  • Autonomous multi-step agent loop - Completes complex tasks automatically
  • Smart context gathering - Understands related files and imports
  • Verified and line-based editing - Reliable code modifications
  • Dry-run mode - Preview changes safely before applying
  • Git-aware workflows - --changed-only, checkpoints, and reverts
  • Test runner integration - Auto-detects Vitest, Jest, pytest, Go test
  • MCP server integration - Extend capabilities with external tools
  • Skill system - Built-in + custom markdown skills
  • Session-aware chat - Persistent conversation history
  • Themed terminal UI - Beautiful, customizable interface

WebUI

The WebUI provides a browser-based interface that syncs in real-time with the terminal.

# Start with both TUI and WebUI
xibecode chat

# WebUI opens automatically at http://localhost:3847

TUI-WebUI Sync

When you run xibecode chat, both interfaces are connected:

  • Messages sent from TUI appear in WebUI (marked with "TUI")
  • Messages sent from WebUI are processed by TUI
  • Streaming responses show in both simultaneously
  • Tool executions display in real-time

Slash Commands (/)

Type / in the input to open the command palette:

Commands:

| Command | Description | |---------|-------------| | /clear | Clear chat messages | | /help | Show available commands | | /diff | Show git diff | | /status | Show git status | | /test | Run project tests | | /format | Format code in project | | /reset | Reset chat session | | /files | List project files |

Modes:

| Mode | Icon | Description | |------|------|-------------| | /mode agent | 🤖 | Autonomous coding (default) | | /mode plan | 📝 | Interactive planning with web research | | /mode tester | 🧪 | Testing and QA | | /mode debugger | 🐛 | Bug investigation | | /mode security | 🔒 | Security analysis | | /mode review | 👀 | Code review | | /mode team_leader | 👑 | Coordinate team | | /mode architect | 🏛️ | System design | | /mode engineer | 🛠️ | Implementation | | /mode seo | 🌐 | SEO optimization | | /mode product | 🔥 | Product strategy | | /mode data | 📊 | Data analysis | | /mode researcher | 📚 | Deep research |

File References (@)

Type @ to browse and reference files:

  • Shows project files and folders
  • Filter by typing after @
  • Select to include file path in message
  • Helps AI understand which files to work with

Settings Panel

Click the ⚙️ Settings button to configure:

  • Provider - Anthropic, OpenAI, or Custom
  • Model - Select from available models
  • Custom Model ID - For custom/local models
  • API Key - Your provider API key
  • Base URL - Custom API endpoint (for local LLMs)
  • Session Info - Working directory, git branch

Features

  • Markdown Rendering - Code blocks, bold, italic, lists, links
  • Tool Execution - Shows each tool call with status (running/done/failed)
  • Thinking Indicator - Spinner while AI is processing
  • Responsive Design - Works on mobile and desktop
  • Real-time Streaming - See responses as they're generated

AI Test Generation

XibeCode can automatically generate comprehensive test suites for your code:

# Via CLI (in chat mode)
> generate tests for src/utils/helpers.ts

# Via WebUI
1. Go to "Test Generator" tab
2. Enter file path
3. Select framework (auto-detected)
4. Click "Generate Tests"

Features

  • Multi-framework support - Vitest, Jest, Mocha, pytest, Go test
  • Code analysis - Understands functions, classes, types
  • Edge case generation - Null checks, empty strings, boundaries
  • Mock setup - Automatic mock configuration
  • Type checking tests - Verifies return types
  • Error handling tests - Tests for exceptions

Example Output

import { describe, it, expect, vi } from 'vitest';
import { calculateTotal } from '../utils/helpers';

describe('calculateTotal', () => {
  it('should execute calculateTotal successfully', () => {
    expect(calculateTotal([])).toBeDefined();
  });

  it('should return correct type from calculateTotal', () => {
    expect(typeof calculateTotal([])).toBe('number');
  });

  it('should handle empty array', () => {
    expect(calculateTotal([])).toBe(0);
  });

  it('should handle errors in calculateTotal', () => {
    expect(() => calculateTotal(undefined)).toThrow();
  });
});

Browser Testing (Playwright)

XibeCode includes comprehensive browser automation and testing capabilities:

  • Screenshots - Capture webpage screenshots
  • Console Logs - Collect browser console output
  • Visual Regression - Compare screenshots against baselines
  • Accessibility Audits - Check WCAG compliance
  • Performance Metrics - Measure Core Web Vitals (FCP, LCP, CLS, TTI)
  • Responsive Testing - Test across multiple viewports
  • Network Monitoring - Capture all network requests
  • E2E Tests - Execute Playwright test files
# Example: Test performance
xibecode run "Measure the performance of http://localhost:3000"

# Example: Check accessibility
xibecode run "Run an accessibility audit on the homepage"

# Example: Visual regression test
xibecode run "Take a screenshot and compare against baseline"

Configuration

Environment Variables

ANTHROPIC_API_KEY=sk-ant-...     # Anthropic API key
OPENAI_API_KEY=sk-...             # OpenAI API key
XIBECODE_MODEL=claude-sonnet-4-5-20250929  # Default model

Config File

Located at ~/.xibecode/config.json:

{
  "apiKey": "sk-ant-...",
  "model": "claude-sonnet-4-5-20250929",
  "provider": "anthropic",
  "maxIterations": 50,
  "theme": "default"
}

Available Models

| Model | Provider | Best For | |-------|----------|----------| | claude-sonnet-4-5-20250929 | Anthropic | General coding (default) | | claude-opus-4-5-20251101 | Anthropic | Complex reasoning | | claude-haiku-4-5-20251015 | Anthropic | Fast responses | | gpt-4o | OpenAI | General coding | | gpt-4o-mini | OpenAI | Fast responses | | o1-preview | OpenAI | Complex reasoning |

API

XibeCode provides a REST API when running the WebUI:

# Start the server
xibecode ui

# API endpoints
GET  /api/health          # Health check
GET  /api/config          # Get configuration
PUT  /api/config          # Update configuration
GET  /api/models          # List available models
GET  /api/project         # Get project info
GET  /api/git/status      # Get git status
GET  /api/git/diff        # Get git diff
POST /api/files/list      # List directory contents
POST /api/files/read      # Read file contents
POST /api/session/create  # Create chat session
POST /api/tests/generate  # Generate tests for file
POST /api/tests/analyze   # Analyze file for testable code
POST /api/tests/run       # Run project tests

Project Structure

xibecode/
├── src/
│   ├── core/           # Agent, tools, context
│   ├── commands/       # CLI commands
│   ├── utils/          # Config, git, safety
│   ├── tools/          # Test generator, browser
│   ├── webui/          # WebUI server
│   └── index.ts        # CLI entry point
├── site/               # Documentation site
└── tests/              # Test suites

Project Docs

  • CHANGELOG.md — release history
  • FEATURES.md — feature deep dive
  • PUBLISHING.md — npm release process

Support

License

Apache-2.0