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

@ankitkumar131/mycode-ai

v0.3.4

Published

Multi-provider AI coding agent for the terminal. Like Claude Code, but provider-agnostic with automatic failover.

Readme

⚡ MyCode

Multi-Provider AI Coding Agent for the Terminal

Like Claude Code, but provider-agnostic. Use OpenRouter, NVIDIA NIM, Ollama, OpenAI, or any OpenAI-compatible API — with automatic failover when providers hit rate limits or go down.

npm install -g @ankitkumar131/mycode-ai 

🚀 Quick Start

# 1. Install globally
npm install -g @ankitkumar131/mycode-ai 

# 2. Configure your AI providers
mycode init

# 3. Start coding with AI
mycode chat

🎯 Commands

| Command | Description | |---|---| | mycode init | Setup wizard — configure your AI providers | | mycode chat | Interactive AI conversation with tool access | | mycode agent | Full autonomous coding agent | | mycode explain <file> | Get an AI explanation of any file | | mycode fix <file\|error> | AI-powered error diagnosis and fixing | | mycode edit <file> "instruction" | Apply AI-powered edits to a file | | mycode config list | List configured providers | | mycode config test | Test provider connections |

⚡ Multi-Provider Failover

The killer feature. Configure multiple AI providers with priorities:

{
  "providers": [
    {
      "priority": 1,
      "name": "OpenRouter GPT",
      "api_provider": "openrouter",
      "model": "openai/gpt-4o",
      "api_key": "sk-or-xxxx",
      "base_url": "https://openrouter.ai/api/v1",
      "read": true,
      "write": true
    },
    {
      "priority": 2,
      "name": "Local Ollama",
      "api_provider": "ollama",
      "model": "llama3.1:8b",
      "base_url": "http://localhost:11434",
      "read": true,
      "write": false
    }
  ]
}

When Provider #1 fails (rate limit, server error, auth issue), MyCode automatically switches to Provider #2 — seamlessly, with a notification in the terminal.

🔧 Supported Providers

| Provider | Type | API Key Required | |---|---|---| | OpenRouter | 100+ models via one API | ✅ | | NVIDIA NIM | GPU-optimized inference | ✅ | | Ollama | Local, free | ❌ | | OpenAI | Direct API | ✅ | | Custom | Any OpenAI-compatible endpoint | Varies |

🛡️ Safety

  • File writes require confirmation (shows diff preview)
  • Command execution requires confirmation
  • Dangerous commands are blocked (rm -rf /, etc.)
  • Use --yes flag to auto-approve (for experienced users)

📁 Configuration

Config is stored at ~/.mycode/settings.json. You can edit it directly or use:

mycode config list      # View providers
mycode config test      # Test connections
mycode config remove    # Remove a provider
mycode config path      # Show config file path

🤖 Agent Mode

The agent can autonomously:

  • Read and understand your codebase
  • Write new files and edit existing ones
  • Search across your project
  • Execute shell commands (with confirmation)
  • Use git to track changes
# Single task
mycode agent "create a REST API with Express"

# Interactive mode
mycode agent

📝 Project Instructions

Create a MYCODE.md file in your project root (like Claude's CLAUDE.md) to give the AI project-specific instructions:

# Project Guidelines

- Use TypeScript strict mode
- Follow the existing patterns in src/
- Always add tests for new functions
- Use Vitest for testing

📄 License

MIT