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

@razroo/iso-migrate

v0.1.0

Published

Deterministic project migrations for AI-agent workflow packages: plan, apply, check, and explain JSON/text file upgrades without model calls.

Readme

@razroo/iso-migrate

Deterministic project migrations for AI-agent workflow packages.

iso-migrate answers: what local project-owned files need to change for this package upgrade? It plans and applies idempotent JSON/text migrations without model calls, MCP servers, shell-specific patch scripts, or a mandatory migration history database.

It is:

  • Content-based: a migration is complete when files already match the target state.
  • Dry-run first: plan shows pending edits, check fails when drift remains.
  • Domain-neutral: JobForge examples are included, but the package only knows files, JSON pointers, lines, replacements, and writes.

Install

npm install @razroo/iso-migrate

CLI

iso-migrate plan --config migrations.json --root .
iso-migrate apply --config migrations.json --root .
iso-migrate check --config migrations.json --root .
iso-migrate explain --config migrations.json

check exits 1 when changes are still pending, which makes it useful in CI.

JobForge-Style Example

iso-migrate plan \
  --config examples/jobforge-consumer-migrations.json \
  --root /path/to/jobforge-consumer

iso-migrate apply \
  --config examples/jobforge-consumer-migrations.json \
  --root /path/to/jobforge-consumer

The bundled example adds job-forge index:* npm scripts, bumps a job-forge dependency range, and ensures generated local state paths are ignored.

Config Shape

{
  "version": 1,
  "migrations": [
    {
      "id": "add-index",
      "description": "Add artifact-index commands.",
      "operations": [
        {
          "type": "json-merge",
          "path": "package.json",
          "pointer": "/scripts",
          "value": {
            "index:status": "job-forge index:status"
          }
        },
        {
          "type": "ensure-lines",
          "path": ".gitignore",
          "lines": [".jobforge-index.json"]
        }
      ]
    }
  ]
}

Operations

  • json-set: set a JSON pointer to a JSON value.
  • json-merge: deep-merge an object at a JSON pointer.
  • ensure-lines: ensure exact text lines exist, optionally near an after or before anchor.
  • replace: replace exact text, once or globally.
  • write-file: write a file, with optional overwrite protection.

All operation paths are relative to --root; absolute paths and path traversal are rejected.

Library

import {
  loadMigrationConfig,
  runMigrations,
} from "@razroo/iso-migrate";

const config = loadMigrationConfig(JSON.parse(configText));
const plan = runMigrations(config, { root: process.cwd(), dryRun: true });
if (plan.changed) {
  runMigrations(config, { root: process.cwd(), dryRun: false });
}

Boundary

iso-migrate does not decide when a domain package should run migrations, and it does not replace semantic versioning. Domain packages own migration ordering, release policy, and any domain-specific validation after files change.