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

@jianmu-plugins/agent-junie

v0.1.0

Published

Junie CLI with Magpie's full model catalog, launch defaults and ECO preferences

Readme

@jianmu-plugins/agent-junie

Junie CLI through Magpie's OpenAI-compatible gateway, without LiteLLM or a background plugin runtime. This follows the community Cowork package: an ordinary agent module plus an explicit catalog seed script.

Install and connect

Install from Magpie's Plugins tab, or with the CLI:

magpie plugin add @jianmu-plugins/agent-junie

After installation, seed.mjs is at ~/.config/magpie/plugins/node_modules/@jianmu-plugins/agent-junie/seed.mjs. If XDG_CONFIG_HOME is set, replace ~/.config with that directory. The seed command requires Node.js 18 or later. With Junie closed, connect a model and seed the catalog before starting Junie:

magpie junie <provider/model>
JUNIE_SEED="${XDG_CONFIG_HOME:-$HOME/.config}/magpie/plugins/node_modules/@jianmu-plugins/agent-junie/seed.mjs"
node "$JUNIE_SEED" --eco on
junie

The commands below use JUNIE_SEED set above. magpie junie <provider/model> writes ~/.junie/magpie/connection.json: its id is Magpie's selected model ID, baseUrl ends in /v1/chat/completions, and apiKey is the Junie agent's gateway key. This connection file is outside Junie's model discovery folders.

The seed script reads that connection's endpoint and key, fetches /v1/models with Junie's User-Agent, and writes one native JSON profile per advertised model into ~/.junie/magpie/models/. Stable profile IDs are derived from the gateway IDs; the original wire IDs are preserved inside the profiles. Their display names end in · Magpie in Junie's /model picker.

The script adds its discovery directory to config.json's model-locations. On every seed it sets settings.json's modelForLaunch to the ordinary profile for Magpie's selected model, clears an incompatible remembered provider/Mix, and marks default-model onboarding complete. Junie stores these settings as strings. The picker contains exactly the advertised models, without an additional selected-model alias.

To choose an individual catalog model as the launch default:

node "$JUNIE_SEED" --model provider/model --eco on

You can also choose an individual model in Junie's /model. Running the seed again copies Magpie's current selection back to the launch default, unless you explicitly override it with --model.

Refresh and remove

Run the seed script again when Magpie's catalog changes, then restart Junie. Junie discovers the local profiles; it does not poll Magpie itself. There is no background refresh process. Missing catalog entries are removed only if the seed script owns their files. The new launch default must exist in the catalog. An empty, invalid, partial or unavailable catalog leaves the existing files in place. A user edit to a generated profile is reported instead of overwritten.

node "$JUNIE_SEED"
node "$JUNIE_SEED" --remove
magpie junie default

--remove removes generated profiles and restores unchanged settings using ~/.junie/magpie/seed-state.json. Unrelated settings, native profiles and new discovery folders remain. ECO cleanup deletes only the generated models' preference entries, preserving later edits to native models across repeated seeds. Run one seed command at a time, with Junie closed, to avoid concurrent settings writes. The journal and generated profiles contain gateway credentials and are created with private permissions.

Magpie restores the separate connection file's managed keys when disconnected. That file is not a model profile and does not appear in Junie's picker. Disconnecting Magpie alone leaves the seeded profiles and discovery directory installed. Run seed.mjs --remove first to remove them and restore the launch settings.

ECO mode and limitations

--eco on|off saves per-model preferences in ecoModePerModel and acpEcoModePerModel, preserving other models' preferences. Without this option, existing preferences are kept and new profiles get an on preference.

Native ECO is unavailable for custom profiles in Junie 3893.6. Saving on does not enable it, and it is not equivalent to lowering reasoning effort. In that build, ModelOption.Custom inherits an empty ecoModeEfforts set, so the ECO availability gate rejects it. The ACP model picker confirms that a custom model has no ECO option. This is a Junie capability limit, not a setting the plugin can override.

The agent module uses Junie's default ~/.junie paths, including Library instructions, MCP and skills. The seed script honors JUNIE_HOME; when using a relocated Junie home, provide its magpie/connection.json first. Project configuration and CLI flags can override user defaults. Keep Magpie running while using the generated models.

Validation

bun test packages/junie/junie.test.mjs

References: custom models, configuration, Cowork seed, and the agent contract. The agent uses the official Junie website icon.