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

octicoc

v1.0.6

Published

Automatically configure OpenCode with the opencode-template for Linux, Windows, and macOS

Readme

OpenCode Template Installer

Automatically configure OpenCode with the opencode-template for Linux, Windows, and macOS.

Built with @clack/prompts for a beautiful, interactive CLI experience.

Installation

Simply run:

npx octicoc

What it does

  1. Backups existing configuration (if any)
  2. Downloads and installs opencode-template from GitHub
  3. Merges configs: Template (opencode.jsonc) + Your existing config (opencode.json)
  4. Detects system username (automatically, with option to change)
  5. Updates opencode.json with your username
  6. Creates .env file from .env.example
  7. Prompts for API keys (optional - can skip and configure later)
  8. Everything is installed to: ~/.config/opencode (same for all platforms)

Cross-Platform Support

Windows - Uses node-tar package for reliable extraction
macOS - Works with native tar support
Linux - Works with native tar support

The installer uses the tar npm package to ensure consistent extraction across all platforms, avoiding issues with Windows path limitations and tar command compatibility.

Interactive CLI Features

The installer provides a modern, user-friendly experience:

  • 🎨 Beautiful UI - Clean, colorful interface with clear visual hierarchy
  • Progress Indicators - Spinners show real-time progress during downloads and extraction
  • Input Validation - Prevents common mistakes with built-in validation
  • 🎯 Smart Defaults - Auto-detects your username and suggests sensible defaults
  • Cancellation Support - Press Ctrl+C anytime to gracefully exit
  • 💬 Clear Messages - Success, warning, and error messages are easy to understand
  • 📝 Helpful Prompts - Placeholders and hints guide you through configuration

Merge Behavior

The installer intelligently merges the template with your existing config:

  • opencode.jsonc: Contains the template definition (skills, agents, commands, etc.)
  • opencode.json: Your personalized config with custom settings
  • Automatic backup: Your existing config is backed up before merging
  • Smart merge: Preserves your custom agents, skills, and environment variables

If you run the installer again, it will:

  1. Backup your current config
  2. Update the template with new features
  3. Preserve all your customizations

Environment Variables

After installation, you'll need to configure your API keys:

| Variable | Description | | ----------------------- | -------------------------- | | CONTEXT7_API_KEY | Context7 MCP API key | | REF_API_KEY | Ref documentation API key | | EXA_API_KEY | Exa AI search API key | | SUPABASE_PROJECT_REF | Supabase project reference | | SUPABASE_ACCESS_TOKEN | Supabase access token | | CLIPROXY_API_KEY | Cliproxy provider API key |

Configuration Steps

The installer will automatically:

  1. Backup your existing OpenCode config
  2. Download and extract the template (with progress spinner)
  3. Merge configs: Keeps your custom settings while adding new features
  4. Detect your system username and prompt for confirmation/change
  5. Update opencode.json with your username
  6. Copy .env.example to .env for you
  7. Prompt you to enter API keys (you can skip this step and configure later)
  8. Show you the config location: ~/.config/opencode/.env

Manual Configuration (Optional)

If you skipped the API key configuration during installation, you can edit them later:

nano ~/.config/opencode/.env
# or
vim ~/.config/opencode/.env

Restart OpenCode to apply the configuration.

Features Included

  • Multi-Agent System: Specialized agents for backend, frontend, security, database, and TypeScript development
  • Custom Commands: Brainstorm, debug, enhance, SEO, mobile-responsiveness, and more
  • Skill Framework: Code review, refactoring, frontend design, UI animation, and 15+ other skills
  • MCP Integrations: Next.js DevTools, Exa AI, Ref documentation, Supabase, Context7
  • Superpowers: Advanced planning, subagent orchestration, and systematic debugging

License

MIT