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

@urielsh/prodify

v0.5.0

Published

> **A compiler that turns chaotic AI-generated code into production-grade systems**

Readme

🚀 Prodify

A compiler that turns chaotic AI-generated code into production-grade systems


⚡ TL;DR

AI writes messy code
↓
Prodify enforces structure, refactoring, validation, and scoring
↓
You get measurable production-grade improvement — or the run fails

💡 What is Prodify?

Prodify is not a coding agent.

It is a deterministic execution runtime that forces AI agents to:

  • understand a codebase
  • diagnose real structural problems
  • define architecture
  • plan safe refactors
  • execute real code changes
  • validate improvements
  • measure impact

Prodify is designed for messy, AI-generated, inconsistent, or fast-grown repositories that need to become production-grade.


🔥 Core Principle

Prodify does not win by giving better suggestions.

Prodify wins by enforcing a workflow where agents must:

  • change real files
  • satisfy stage contracts
  • pass validation
  • improve measurable quality

If the run does not produce meaningful change, it should fail.


🧠 The Pipeline

Prodify executes a strict staged workflow:

1. Understand
2. Diagnose
3. Architecture
4. Plan
5. Refactor
6. Validate

Each stage is:

  • contract-driven
  • validated
  • stateful
  • blocking

That means stages do not advance just because the agent “says it is done.”


💣 Enforcement

Prodify is built to prevent no-op runs.

Refactor must:

  • modify real files
  • follow the selected plan step
  • introduce meaningful structural improvement

Validate must:

  • verify actual code changes
  • verify contract compliance
  • verify impact/scoring improvement
  • fail low-impact runs

📊 Built-in Scoring

Scoring is required in the normal workflow.

A healthy run is expected to capture:

Baseline Score → When `$prodify-init` starts execution
Final Score    → Before a successful run completes
Delta          → Used in validation, status, and result interpretation

Example:

Baseline: 41
Final: 73
Delta: +32

Low or insignificant impact should not be treated as success.

If score artifacts are missing during a normal run, prodify status and prodify doctor should flag the repository as degraded until the run is repaired.


⚙️ Usage

1. One-time setup (per machine / per agent)

prodify setup-agent codex
# or
prodify setup-agent claude

This installs or registers the $prodify-* commands for that agent environment.


2. Initialize a repository

prodify init

This creates the .prodify/ workspace inside the repo.

Repo initialization stays agent-agnostic inside the repository.

That means:

  • the repo is not locked to a single agent
  • the same repo can be used with multiple supported agents
  • the active agent is resolved at runtime when $prodify-init runs

You can inspect the current runtime at any time with:

prodify status

3. Run inside the agent

$prodify-init
$prodify-execute

To continue later:

$prodify-resume

$prodify-init is the only normal bootstrap entrypoint inside the agent.

You should not need a separate manual bootstrap prompt as part of the primary flow.


🧱 Architecture

.prodify/
  contracts-src/   # human-readable source contracts
  contracts/       # compiled runtime contracts
  artifacts/       # stage outputs
  metrics/         # baseline/final scoring
  skills/          # product-owned skill definitions
  runtime/         # compact runtime bootstrap + context packs
  state.json
  version.json

⚡ Runtime Model

Prodify is designed to be token-efficient.

Runtime uses compact machine-readable files such as:

.prodify/runtime/bootstrap.json
.prodify/runtime/current-stage.json

.prodify/AGENTS.md is a compact human pointer into the runtime, while .prodify/runtime/bootstrap.json is the machine-readable bootstrap manifest.

The goal is to avoid forcing agents to repeatedly reload broad context from many files.

Runtime should rely on:

  • one compact bootstrap manifest
  • one stage-local context pack
  • compiled contracts
  • cached repo/skill/freshness metadata
  • validators as execution gates
  • scoring artifacts and score thresholds as execution gates
  • compact artifact summaries where possible
  • .prodify/skills/ for product-owned stage-bounded skills

Optional extension surfaces such as .prodify/tasks/, .prodify/rules/, and .prodify/templates/ can exist for repository-specific planning or overlays, but they are not primary runtime control inputs.

Contracts remain the execution input, runtime manifests/context remain the execution control plane, and validators plus scoring remain the execution gates.


🪞 Fresh Init vs Self-Hosted Repo

This repository keeps a checked-in root .prodify/ because Prodify is self-hosting here.

That workspace is not a byte-for-byte template for every new repository.

| View | What you should expect | Why it exists | | --- | --- | --- | | Fresh prodify init repo | Core runtime files such as .prodify/AGENTS.md, .prodify/runtime/, .prodify/contracts-src/, .prodify/contracts/, .prodify/state.json, .prodify/artifacts/, .prodify/metrics/, .prodify/skills/, and lightweight optional extension directories like .prodify/tasks/, .prodify/rules/, and .prodify/templates/. | This is the default product model users bootstrap into their own repo. | | This Prodify repository | The same canonical runtime core plus checked-in development artifacts, historical notes, and repository-local task/rule/template content used to build Prodify itself. | This repo is the self-hosting development workspace for the product, not just a fresh-init sample. |

If you are reading the checked-in .prodify/ tree in this repository, treat it as a self-hosting/dev workspace layered on top of the generic runtime model.


🤖 Agent-Agnostic by Design

Inside the repo, Prodify does not lock execution to one agent.

That means:

  • prodify init stays agent-neutral
  • multiple supported agents can be used on the same repo
  • agent-specific setup is global, not embedded in the repo
  • runtime behavior is resolved when the active agent runs $prodify-init
  • No root-level agent files are required
  • the root AGENTS.md is repository-local contributor guidance, not a second runtime bootstrap

🧠 Skills

Prodify supports stage-bounded skills.

Skills may improve execution quality by adding targeted expertise such as:

  • codebase scanning
  • TypeScript backend refactoring
  • architecture design
  • test hardening
  • maintainability review

But skills are not a second source of truth.

Contracts and validators remain authoritative.


🔁 State and Resume

Prodify persists execution state under .prodify/.

That allows:

  • resumable runs
  • deterministic stage progression
  • strict stage blocking
  • validation-aware continuation

Resume flow:

$prodify-resume

📦 Typical Outputs

After a run, you should expect artifacts such as:

.prodify/artifacts/
  01-understand.md
  02-diagnose.md
  03-architecture.md
  04-plan.md
  05-refactor.md
  06-validate.md

And metrics such as:

.prodify/metrics/
  baseline.json
  final.json

❌ What Prodify is NOT

Prodify is not:

  • a generic code generator
  • a linter
  • a formatter
  • a framework
  • a replacement for an agent

✅ What Prodify IS

Prodify is:

a deterministic runtime that forces AI agents to produce real, validated, measurable code transformation


🚀 Vision

Turn this:

AI output → chaotic code

into this:

AI execution → structured, validated, production-grade systems

⚡ One-liner

Prodify is a compiler for AI-driven software development.