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

charterarc

v0.2.7-experimental.0

Published

Declarative project maintenance for Taskflow: observe reality, reconcile drift, and run an existing Taskflow.

Readme

CharterArc

CharterArc keeps declared project promises true by selecting an existing Taskflow from observed reality:

  1. observe one explicit project snapshot;
  2. return immediately when reality is satisfied or unknown;
  3. for confirmed drift, select the Flow whose key matches the observed target;
  4. bind the target, desired promise, and snapshot into that ordinary Taskflow;
  5. execute one bounded Run, then observe reality again.
import { defineProject } from "charterarc";
import type { Taskflow } from "taskflow-core";

declare const repairTypes: Taskflow;
declare const repairTests: Taskflow;

export default defineProject({
  desired: {
    types: "TypeScript contracts stay valid",
    tests: "Acceptance tests stay green",
  },
  observe: ({ cwd, signal }) => observeReality(cwd, signal),
  maintain: {
    types: repairTypes,
    tests: repairTests,
  },
});

The observer returns:

{
  status: "drifted",
  target: { desired: "types" },
  facts: { diagnostic: "TS2322" },
  summary: "packages/example.ts no longer typechecks"
}

facts is the explicit snapshot. A drifted snapshot must target one declared desired key. An unbound or malformed target becomes unknown and starts no Run. The selected Flow receives:

args.charterarc = {
  selection: { desired: "types", flow: "repair-types" },
  desired: "TypeScript contracts stay valid",
  snapshot: observation,
};

For a genuinely large project, an optional Module narrows the same mechanism:

defineProject({
  desired: {},
  maintain: {},
  modules: {
    docs: {
      desired: { catalog: "The phase catalog is complete" },
      maintain: { catalog: repairDocs },
    },
  },
  observe,
});

A Module is only a declaration scope. CharterArc adds no phase kind, DAG engine, FlowIR, scheduler, host process, daemon, persistence model, or model planner. Every selected Flow is statically verified and remains independently executable through Taskflow.

The application injects the existing Taskflow runtime:

import { runProject } from "charterarc";
import { discoverAgents } from "taskflow-core";
import { grokSubagentRunner } from "taskflow-hosts/grok";
import project from "./project.js";

const cwd = process.cwd();
const outcome = await runProject(project, {
  taskflow: {
    cwd,
    agents: discoverAgents(cwd, "both").agents,
    runTask: grokSubagentRunner.runTask,
    usageAccounting: grokSubagentRunner.usageAccounting,
  },
});

CharterArc itself uses Grok Build for self-evolution. The package remains host-neutral: other projects can inject any existing Taskflow runner.

outcome.status is the latest observed reality. outcome.selection records which Flow was chosen, while outcome.run is the ordinary Taskflow result. outcome.ok is true only when the latest observation is satisfied and the Run, if one occurred, succeeded.

Healthy and unknown observations are fail-closed with respect to mutation: neither starts a Run. Three retained external projects remain migration candidates; none counts as active adoption until it uses this multi-Flow surface in an ordinary maintenance cycle.

Install a pre-stable build with npm install charterarc@experimental. This dist-tag does not promise stable compatibility; publication remains paused until the M1 product contract passes and a fresh execution checklist is approved.