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

@modeloslab/modelcode

v0.1.12

Published

modelOS-native AI coding agent CLI — remembers like Hermes, codes like Claude Code, runs on modelOS (pay-per-use in MDL, no rate limits). Knowledge-graph memory, subagents, MCP, vision, spend caps.

Readme

modelcode

The AI coding agent that runs on modelOS. Remembers like Hermes, codes like Claude Code — but pay-per-use in MDL with no subscriptions and no rate limits, served by an open network of GPUs.

npm install -g @modeloslab/modelcode
modelcode

Requires Node ≥ 22.5 (uses the built-in node:sqlite — zero native dependencies).

Why modelcode

  • Pay-per-use, no limits — every request is priced in MDL and shown after each turn. No monthly cap, no throttling.
  • Real memory — cross-session facts, a per-repo knowledge graph (symbols + relationships), and session recall, all auto-injected as relevant context. It doesn't re-read your whole repo every session.
  • Learns your style — after you reach for the same stack 3× (Tailwind, Next.js, …) it asks once to save the preference, then defaults to it everywhere.
  • Agentic — subagents + multi-agent teams (free/uncapped), MCP tools (stdio + HTTP/OAuth), a full LSP client, knowledge-graph impact analysis before edits, web, browser automation, kanban, cron.
  • Safe by default — permission prompts with per-tool/per-path "always allow", plan mode, checkpoints/undo, hooks, auto code-review, and spend caps (/budget) — a guardrail subscription tools structurally can't offer.
  • Reliable for long sessions — auto-compaction sized to each model's context window, resumable sessions (--continue / --resume), streaming tool output.

Getting started

modelcode                 # opens the REPL; pick: paste an API key, or create a wallet + key
modelcode login           # set/replace your API key any time
modelcode tui             # the rich Ink TUI
modelcode -p "explain this repo"   # one-shot / scriptable
modelcode --continue      # resume your most recent session  (--resume to pick from a list)

Funding credits (if you created a wallet): send MDL to your wallet, then

modelcode credits fund 5  # signs → broadcasts → waits for confirmation → claims as credits

Models

modelOS serves multiple models; pick with /model (or let /route auto-pick the best per task): Gemini 2.5 Flash/Pro, DeepSeek V4, Qwen3 MoE, Kimi K2, GLM-4.7, gpt-oss-120b, and more.

Key commands

| | | |---|---| | /model /route | choose the build model / toggle the auto-router | | /plan | plan mode (read-only until /exit-plan) | | /budget <mdl> | per-session spend cap (subagents free) | | /context | context-window usage (auto-compacts before overflow) | | /memory /preferences | saved facts · learned style/stack preferences | | /index /impact <symbol> | (re)index the codebase graph · who-references-this before an edit | | /trust | manage always-allow tools | | /resume | list past sessions | | /help | everything |

Project context

Drop a MODELCODE.md (or CLAUDE.md / AGENTS.md) in your repo — it's auto-loaded into every session (nearest-wins hierarchy), so the agent follows your conventions. modelcode can generate one with the /init skill.

Configuration

State lives in ~/.modelcode/ (config, memory db, skills, sessions). Relocate with MODELCODE_HOME. MCP servers: .modelcode/mcp.json. Hooks: .modelcode/hooks.json. Skills: .modelcode/skills/<name>/SKILL.md.

Development

bun install
bun run dev        # run from source
bun test           # 77 tests
bun run build      # bundle → dist/cli.mjs (Node target)

Built with Bun, ships to Node. MIT licensed.