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

oc-bridge

v1.0.0

Published

Automatically relay OpenCode configurations to Claude Code and other AI agents.

Readme

🔄 oc-bridge

oc-bridge is a lightweight background daemon that synchronizes your OpenCode configurations across multiple AI CLI tools, starting with Claude Code.

It acts as a bidirectional bridge, allowing you to maintain a single "source of truth" for your MCP servers, custom agents, and skills, while automatically translating and deploying them to provider-specific configuration files.

✨ Features

  • Hub-and-Spoke Architecture: Centrally managed configuration relayed to multiple targets.
  • MCP Server Sync: Automatically maps OpenCode MCP definitions to ~/.claude.json.
  • Agent Synchronization: Syncs custom agents defined in JSON or Markdown to ~/.claude/agents/.
  • Skill Portability: Copies OpenCode skills to ~/.claude/skills/ while maintaining compatibility.
  • Smart Transformations:
    • Resolves {env:VAR} templates at sync time.
    • Handles model aliasing (e.g., anthropic/claude-sonnet-4-6sonnet).
    • Translates tool permission objects to Claude's PascalCase strings.
  • Non-Destructive: Merges changes into existing configuration files without overwriting unrelated user settings.
  • Live Watching: Debounced file watcher (chokidar) reacts instantly to changes in your OpenCode config.

🚀 Getting Started

Installation

Global Install (Recommended):

npm install -g oc-bridge

From Source:

  1. Clone the repository:
    git clone https://github.com/your-username/oc-bridge.git
    cd oc-bridge
  2. Install dependencies and build:
    npm install
    npm run build

🛠️ Running as a Daemon

oc-bridge includes a built-in installer to run as a background service.

Quick Install (Global)

If you installed globally, simply run:

oc-bridge daemon install

Manual Install (From Source)

npm run install-daemon

Platform Support

  • macOS (launchd): Installs a User Launch Agent. Logs are in ~/Library/Logs/oc-bridge.log.
  • Linux (systemd): Installs a Systemd User Unit. Logs are in journalctl --user -u oc-bridge -f.

Uninstallation

To stop and remove the daemon:

oc-bridge daemon uninstall

⚙️ Configuration Guide

Source of Truth

The relay watches the following paths:

  • Config File: ~/.config/opencode/opencode.jsonc (JSON with comments)
  • Agents Folder: ~/.config/opencode/agents/
  • Skills Folder: ~/.config/opencode/skills/

1. MCP Servers

Define your servers in opencode.jsonc under the mcp key:

{
  "mcp": {
    "my-tool": {
      "type": "local",
      "command": ["npx", "-y", "some-tool"],
      "environment": {
        "API_KEY": "{env:MY_API_KEY}"
      }
    }
  }
}

Transformations for Claude Code:

  • type: "local"type: "stdio"
  • command array → split into command string and args array.
  • environmentenv.
  • {env:VAR} → resolved to the actual environment variable value.

2. Agents

Agents can be defined in opencode.jsonc or as Markdown files in ~/.config/opencode/agents/.

JSON Format:

{
  "agent": {
    "developer": {
      "description": "Expert developer agent",
      "model": "anthropic/claude-sonnet-4-6",
      "prompt": "{file:./prompts/dev.txt}",
      "tools": { "write": true, "bash": true }
    }
  }
}

Markdown Format (developer.md):

---
description: Expert developer agent
model: anthropic/claude-sonnet-4-6
tools:
  write: true
  bash: true
---
You are an expert developer...

The relay automatically maps tools to Claude's format (tools: "Write, Bash") and writes to ~/.claude/agents/developer.md.

3. Skills

Place your skills in ~/.config/opencode/skills/<name>/SKILL.md. These are copied directly to ~/.claude/skills/.

Note: Skills already located in ~/.claude/skills/ are natively detected by both OpenCode and Claude Code, so they are not processed by the relay to avoid circular updates.


🧪 Development & Testing

Run the relay in development mode (watches source files and syncs immediately):

npm run dev

Run unit tests:

npm test

📄 License

MIT © Jose Goncalves