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

opencode-mirasim-auth

v0.5.0

Published

Mirasim relay subscription in OpenCode and magpie

Readme

magpie-mirasim-plugin

Mirasim 的订阅,作为 OpenCode / magpie 的插件使用,独立于 magpie 本体。

仓库:https://github.com/Fim98/magpie-mirasim-plugin

  • 浏览器登录(GitHub / Google),或邮箱验证码登录
  • 请求按官方桌面客户端的方式签名(Ed25519 设备密钥 + X25519/ChaCha20-Poly1305 密封)
  • 模型列表与 reasoning 档位来自账号自己的 catalog / roster,并过滤 roster 下架的模型
  • 用量(额度窗口)来自 relay 的 limits 路由
  • Claude/DeepSeek/GLM/Kimi/Gemini 走 Anthropic Messages,GPT 走 OpenAI Responses
  • 所有 relay 模型标注为支持图片输入
  • Kimi 用中继自己的 id kimi-k3;旧写法 kimi-code/k3 仍可用,转发时改写回 kimi-k3
  • DeepSeek 用中继自己的 id deepseek-flash;另发布 deepseek-v4.1-flash(与 aliyun 等同名,便于 magpie 路由分组),转发时改写回 deepseek-flash
  • 中继以 503 明确表示「排队未开始」时自动等待后重发(间隔取 Retry-After,1–60 秒,缺省 5 秒,单次最多约 4 分钟,调用方取消即停止);中继以 401 拒绝旧 ticket 时换新 ticket 重发一次

安装

# 本机已有仓库
git clone [email protected]:Fim98/magpie-mirasim-plugin.git ~/Documents/magpie-mirasim-plugin
magpie plugin add ~/Documents/magpie-mirasim-plugin

本地路径安装的插件不会自动更新;改了 index.mjs 后在 magpie 里重启插件(或重启 magpie)即可生效,git pull 后同理。也可以发布成 npm 包后 magpie plugin add <包名>。

测试

node test.mjs    # 与 magpie Go 实现的字节级交叉验证(cross-check.json 里的向量)
node e2e.mjs     # 假 Mirasim 服务器驱动的端到端测试,392 项

(本机装了 bun 时用 bun 也行;两个脚本只用标准 Web API 与 node: 内置模块。)

cross-check.json 的向量由 magpie 源码仓库里 internal/mirasim/cross_check_test.go 生成(go test ./internal/mirasim -run TestCross,可用 MIRASIM_CROSS_FILE 指回本目录);协议无改动时无需重新生成。

与上游参考仓库(~/Documents/cpa-plugin-mirasim)的同步记录见 UPSTREAM.md:哪次同步到哪个 commit、哪些改动适用、哪些刻意跳过,都在那里。

协议移植自 magpie 的 internal/mirasim(其又移植自 CLIProxyAPI 的 mirasim 支持与 Mirasim 桌面客户端)。

许可

MIT License。