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

@arcanea/router-spec

v1.0.2

Published

Canonical model routing spec for the Arcanea ecosystem. Single source of truth consumed by claude-arcanea, oh-my-arcanea, arcanea-flow, and arcanea.ai/models.

Readme

@arcanea/router-spec

npm version License: MIT

Canonical model routing for the Arcanea ecosystem. Single source of truth.

Why this exists

Before this package, routing decisions (which model handles which task) lived in three places:

  • ~/.config/opencode/oh-my-opencode.json for OpenCode
  • claude-arcanea agent frontmatter for Claude Code
  • apps/web/lib/models-data.ts for the public /models page
  • Plus the blog post, plus Frank's head

They drifted. This package collapses them into one file (models.yaml) that every surface reads.

What it contains

  • Model catalog — every model we use, with tier (free / sub / byok), context, benchmarks, and strengths.
  • Task classes — every task we route (orchestrate, code.implement, world.canon, etc.) with primary + fallback candidates.
  • Surface bindings — how each harness (claude-arcanea, oh-my-arcanea, arcanea-flow, arcanea-mcp) consumes the spec, including per-surface overrides.
  • Delegation topology — when Opus 4.7 in Claude Code delegates to external CLIs (codex, gemini, opencode, ao) via Bash, which tasks go where.

Consuming the spec

import { loadSpec, resolveTask, pickModel } from '@arcanea/router-spec';

const candidates = resolveTask('code.debug', 'claude-arcanea');
// → ['claude-opus-4-7', 'claude-sonnet-4-6', 'minimax-m2.5-free']

const model = pickModel(candidates);
// → 'claude-opus-4-7'

Tier semantics

| Tier | Meaning | |---|---| | free | OpenCode Zen free models. $0 tokens but usage data may be collected. | | sub | Covered by a subscription (Claude Max). Unlimited inside the harness. | | byok | User provides API key. Metered at provider price. | | premium | Paid, metered (used internally by Arcanea for paying users). |

Updating the spec

  1. Edit models.yaml.
  2. Bump version (semver) and update lastUpdated.
  3. Run pnpm --filter @arcanea/router-spec validate.
  4. Surfaces pick up changes on next build / restart.

Surfaces that read this

  • claude-arcanea — Claude Code overlay
  • oh-my-arcanea — OpenCode overlay
  • arcanea-flow — workflow engine
  • arcanea-mcp — MCP tool server
  • apps/web/app/models/ — public arena page (auto-generated)
  • apps/web/app/blog/ai-model-arena-free-models-guide/ — blog post (section auto-generated)

Principle

Memory is historical. Config is authoritative. If this file disagrees with a surface's local config, this file wins — fix the surface.

Legal / disclaimer

This package is a routing specification. It does not execute models or process prompts. Downstream consumers (the dispatcher, overlays, web pages) exec or display based on these declarations.

  • MIT licensed, provided "AS IS", without warranty of any kind. See LICENSE.
  • Not affiliated with any model provider named in models.yaml. All trademarks belong to their respective owners.
  • Model benchmarks and metadata (SWE-Bench, context, speed, strengths) are aggregated from public vendor announcements and independent benchmarks. Accuracy is best-effort. Verify before relying on them for production decisions.
  • Tier classifications (free / sub / byok / premium) describe general availability at time of publish. Vendor pricing and availability change — re-check with the vendor before assuming cost.
  • Routing decisions encoded here are opinionated defaults. Consumers are free to override per-call.
  • No usage data is collected by this package. It contains only declarations.
  • Vendor Terms of Service apply to any runtime invocation downstream. This spec makes no claim about compliance on your behalf.