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

@xortex/xcode

v3.2.9

Published

XCode - AI-powered coding assistant with XMem long-term memory. Supports Claude, Gemini, Kimi, DeepSeek via OpenRouter.

Readme

XCode

AI-powered coding assistant with persistent memory.

XCode is a terminal-based AI coding assistant that leverages XMem — a multi-modal, multi-agentic long-term memory layer — to remember context across sessions, projects, and platforms.

🌟 Features

  • 🧠 Persistent Memory: XMem integration remembers your preferences, codebase patterns, and conversation history
  • 🤖 Multi-Model Support: Use Claude, Gemini, Kimi K2.5, DeepSeek V3.2, and more via OpenRouter
  • 💻 Code-First Design: Built for developers with powerful code search, editing, and analysis tools
  • 🔧 Extensible: Plugin system for custom agents, tools, and integrations
  • 🚀 Fast & Local: Runs in your terminal with local file system access

📦 Installation

Quick Install (Recommended)

# Using curl
curl -fsSL https://raw.githubusercontent.com/XortexAI/XCode/ishaan/dev/install.sh | bash

# Or using wget
wget -qO- https://raw.githubusercontent.com/XortexAI/XCode/ishaan/dev/install.sh | bash

Install via npm

npm install -g @xortex/xcode

Manual Installation

# 1. Clone the repository
git clone https://github.com/XortexAI/XCode.git ~/.xcode

# 2. Install dependencies
cd ~/.xcode
bun install  # or: npm install

# 3. Create symlink
ln -s ~/.xcode/bin/xcode ~/.local/bin/xcode

🚀 Usage

Start a Session

xcode

Use Specific Models

# Gemini 2.5 Pro (recommended for coding)
xcode --model gemini-2.5-pro

# Kimi K2.5 (256K context window)
xcode --model kimi-k2.5

# DeepSeek V3.2 (strong reasoning)
xcode --model deepseek-v3.2

# Claude models (via Anthropic or OpenRouter)
xcode --model claude-sonnet-4.6
xcode --model claude-opus-4.6

OpenRouter Mode

Enable OpenRouter for access to all models:

export CLAUDE_CODE_USE_OPENROUTER=1
export OPENROUTER_API_KEY=your-api-key
xcode

🔧 Configuration

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | OPENROUTER_API_KEY | OpenRouter API key | - | | ANTHROPIC_API_KEY | Anthropic API key (for Claude) | - | | GEMINI_API_KEY | Google Gemini API key | - | | XMEM_API_URL | XMem server URL | http://localhost:8000 | | XMEM_API_KEY | XMem API key | - | | CLAUDE_CODE_USE_OPENROUTER | Enable OpenRouter | false |

Setup XMem Memory Server

XCode works best with the XMem memory server:

# 1. Clone and start XMem
git clone https://github.com/XortexAI/XMem.git
cd XMem
pip install -e .
cp .env.example .env
# Edit .env with your API keys
uvicorn src.api.app:create_app --factory --host 0.0.0.0 --port 8000

# 2. In another terminal, start XCode
export XMEM_API_URL=http://localhost:8000
xcode

🛠️ Commands

Inside XCode, use these commands:

| Command | Description | |---------|-------------| | /model <name> | Switch AI model | | /memory | Open memory file editor | | /compact | Compact conversation context | | /clear | Clear conversation history | | /quit | Exit XCode |

🧪 Development

# Clone the repo
git clone https://github.com/XortexAI/XCode.git
cd XCode

# Install dependencies
bun install

# Run in development mode
bun run start

# Build for distribution
bun run build

📚 Architecture

XCode consists of:

  1. Terminal UI: React + Ink-based interactive interface
  2. Query Engine: Multi-turn conversation loop with tool execution
  3. Memory Layer: XMem integration for long-term storage
  4. Tool System: Extensible tools for code search, editing, bash execution
  5. Model Router: Unified interface for multiple LLM providers

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE for details.

🔗 Links

  • GitHub: https://github.com/XortexAI/XCode
  • XMem: https://github.com/XortexAI/XMem
  • OpenRouter: https://openrouter.ai
  • Documentation: https://github.com/XortexAI/XCode/tree/main/docs

Made with ❤️ by XortexAI

Forget forgetting. Build with XMem.