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

mcoda

v0.1.94

Published

Local-first CLI for planning, documentation, and execution workflows with agent assistance.

Readme

mcoda

mcoda is a local-first CLI for planning, documentation, and execution workflows with agent assistance.

Install

  • Requires Node.js >= 20.
  • Global install: npm i -g mcoda
  • Interactive installs show the bundled mswarm data collection terms and require acceptance before setup can continue.
  • If install cannot prompt, complete the same mandatory consent flow with mcoda setup before other commands.
  • Verify: mcoda --version

Quick start

mcoda setup
mcoda set-workspace --workspace-root .
mcoda docs pdr generate --workspace-root . --project WEB --rfp-path docs/rfp/web.md --agent codex

Docdex & QA

  • mcoda depends on the docdex CLI for doc search and context stitching.
  • Run docdex setup (or docdexd browser install) to install the headless Chromium browser used for web enrichment.
  • Docdex stores state under ~/.docdex; mcoda does not create repo-local .docdex folders.
  • If ~/.docdex/agents.md exists, it is prepended to every agent run.

Workspace layout

  • ~/.mcoda/workspaces/<fingerprint>/config.json for defaults (docdex URL, branch metadata, telemetry preferences).
  • ~/.mcoda/workspaces/<fingerprint>/mcoda.db for backlog, jobs, and telemetry.
  • ~/.mcoda/workspaces/<fingerprint>/docs/ for generated artifacts.

Common commands

  • Docs: mcoda docs pdr generate, mcoda docs sds generate
  • Specs: mcoda openapi-from-docs
  • Planning: mcoda create-tasks, mcoda task-sufficiency-audit, mcoda refine-tasks, mcoda order-tasks
  • Execution: mcoda add-tests, mcoda work-on-tasks, mcoda code-review, mcoda qa-tasks
  • Backlog: mcoda backlog, mcoda task
  • Jobs/telemetry: mcoda jobs, mcoda tokens, mcoda telemetry
  • Owner-local GPU jobs: mcoda gpu list, mcoda gpu ops, mcoda job artifact upload|run|status|logs|events|artifacts|cancel|retry
  • Self-hosted agents: mcoda self-hosted agent list, mcoda self-hosted agent details, mcoda self-hosted agent sync
  • Agents: mcoda test-agent, mcoda agent-run
  • Updates: mcoda update --check

mcoda work-on-tasks auto-runs the same test-harness bootstrap logic as mcoda add-tests when selected tasks require tests but no runnable harness exists. mcoda create-tasks auto-runs a sufficiency pass (same engine as mcoda task-sufficiency-audit) to compare SDS coverage against generated backlog items and fill obvious planning gaps. If that sufficiency pass errors, create-tasks continues (fail-open) and records audit failure details in job checkpoints/logs.

Configuration

Environment variables are optional overrides for workspace settings:

  • MCODA_DOCDEX_URL to point at a docdex server.
  • MCODA_API_BASE_URL or MCODA_JOBS_API_URL for job APIs.
  • MCODA_MSWARM_NODE_BASE_URL, MCODA_MSWARM_NODE_ID, and MCODA_MSWARM_NODE_SIGNING_SECRET for owner-local generic GPU job commands.
  • MCODA_TELEMETRY set to off to disable telemetry.
  • MCODA_STREAM_IO=1 to emit agent I/O lines to stderr.

Self-hosted mswarm agents

mcoda self-hosted agent list reads direct self-hosted agents and opt-in load-balanced aliases from mswarm when the configured API key allows it. Direct entries stay pinned to one server. Load-balanced aliases are saved as auto routes and let mswarm choose an eligible upgraded node for the requested model or capability.

Use direct slugs for rollback or pinned-server workloads. Use auto aliases only when the product should allow mswarm to route around busy, drained, stale, or incompatible nodes.

Programmatic usage

import { McodaEntrypoint } from "mcoda";

await McodaEntrypoint.run(["--version"]);

Documentation

Full docs live in the repository:

  • README: https://github.com/bekirdag/mcoda
  • Usage guide: https://github.com/bekirdag/mcoda/blob/main/docs/usage.md
  • Quality gates: https://github.com/bekirdag/mcoda/blob/main/docs/quality_gates.md

License

MIT - see LICENSE.