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

@igorbrito.ti/smag

v0.1.2

Published

SMAG is a modular control plane for AI agents and coding agents.

Downloads

277

Readme

SMAG

SMAG is a modular control plane for AI agents and coding agents.

The repository now includes validated local boundaries for the runner, governance, routing, Service API, external observability, MVP CLI/package flow, and a .NET client adapter. See docs/CURRENT-STATE.md for the compact factual snapshot.

Official Direction

SMAG should build the governance and coordination capabilities that are specific to SMAG, while reusing mature open source projects for execution, orchestration, sandboxing, workflow, GitHub automation, and related capabilities when evidence shows they fit.

Directional target:

  • TARGET_OSS_REUSE: about 70-80%.
  • TARGET_SMAG_SPECIFIC: about 20-30%.

These numbers are guardrails against unnecessary reinvention. They are not artificial quotas.

Architecture Model

SMAG does not seek a single mandatory framework or harness. The architecture direction is composition by responsibility.

Current prioritized candidates and expected roles:

| Candidate | Expected Role | | --- | --- | | Agent Orchestrator | Coding-agent orchestration, parallel execution, worktrees, branches, PRs, CI/review loop, multi-agent lifecycle. | | Omnigent | Meta-harness, abstraction between coding agents, executor switching, policies, useful sandbox abstractions. | | OpenHands Software Agent SDK | Agent runtime, software-engineering execution, tools, sandbox/runtime, lifecycle, multi-LLM integration. | | GitHub Agentic Workflows | GitHub-native workflows, Actions, CI, events, permissions, guardrails, post-execution automation. | | Microsoft Agent Framework | Workflow, state/session, multi-agent primitives, multi-provider support, tools/MCP, approvals, telemetry, .NET/Python reference. |

No candidate is adopted definitively by this README.

SMAG-Owned Responsibilities

SMAG should concentrate on:

  • Work Unit Contract;
  • Policy / Authorization;
  • Risk Decision;
  • Budget Governance;
  • Evidence Model;
  • Human Approval Model;
  • Supervisor State Machine;
  • executor/model routing;
  • adapter contracts;
  • recovery policy;
  • unified audit trail.

Evidence Principle

Technical claims must remain classified as DOCUMENTED, EXECUTED, MEASURED, INFERRED, or NOT VERIFIED. Do not promote documented or inferred capability into executed or measured capability without real execution and evidence.

Benchmark Status

Benchmarks have not started. The benchmark model is capability validation, not a five-way framework ranking.

The protocol is documented in docs/testing/HARNESS-BENCHMARK-PROTOCOL.md, and result recording is prepared in docs/testing/BENCHMARK-RESULTS.md.

Documentation Map

MVP Operability Layer

The MVP operator flow is:

  1. install the package;
  2. optionally create a config file with smag init;
  3. validate the config with smag config validate;
  4. start the service with smag serve;
  5. check health with smag health;
  6. run a WorkUnit with smag run.

Quickstart:

npm install
npm run smag -- init
npm run smag -- config validate
npm run smag -- serve

In another terminal:

npm run smag -- health
npm run smag -- run examples\work-units\hello.json --json

The default config is safe on loopback, free-first, and does not require paid provider credits or OTLP.

Engineering Harness

Reusable agent rules live in skills/. The harness commands reduce repeated prompt text and produce factual baseline/evidence output:

npm run smag -- harness baseline --json
npm run smag -- harness verify --manifest examples\work-units\engineering-harness.json --fast --json
npm run smag -- harness current-state

WorkUnit manifests are JSON data only. They reference allowlisted command keys and do not execute arbitrary shell strings.

.NET Client

The .NET client is a transport-only consumer of the same Service API. It does not embed the SMAG control plane.

var httpClient = new HttpClient { BaseAddress = new Uri("http://127.0.0.1:3000") };
var client = new Smag.Client.SmagClient(httpClient, new Smag.Client.SmagClientOptions
{
    BaseAddress = new Uri("http://127.0.0.1:3000"),
});

var health = await client.GetHealthAsync();
var run = await client.RunAsync(new Smag.Client.SmagWorkUnit
{
    Id = "wu-hello",
    Objective = "Return a factual hello-world execution result.",
    AllowedPaths = ["src"],
    ForbiddenPaths = ["secrets"],
});