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

autoresearcher

v0.1.8

Published

Benchmark-driven autonomous research CLI for post-quantum and blockchain R&D

Readme

autoresearcher

autoresearcher is a standalone terminal CLI for benchmark-driven autonomous research loops.

It runs this cycle repeatedly:

  1. Run one internal headless agent iteration.
  2. Run your benchmark command.
  3. Parse metric with a regex.
  4. Keep iteration only if metric improved.

Quick Start

npm i -g autoresearcher

# In your research repo:
cd /path/to/your/new-repo
autoresearcher wizard
autoresearcher run --iterations 20

Commands

autoresearcher init
autoresearcher wizard
autoresearcher run [--iterations N]

Important Config

The init command creates .autoresearcher/config.json:

{
  "agentMode": "internal",
  "agentPromptFile": "program.md",
  "agentPrompt": "Improve the benchmark metric while preserving correctness, test behavior, and safety.",
  "agentCommand": "./scripts/agent-step.sh",
  "backendAgent": "",
  "backendModel": "",
  "backendMaxIterations": 1,
  "benchmarkCommand": "./scripts/benchmark.sh",
  "metricRegex": "score=([0-9.]+)",
  "direction": "max",
  "iterations": 20,
  "finalReportPath": ".autoresearcher/reports/final-report-{run_id}.md",
  "researchReportPath": "RESEARCH.md",
  "autoCommit": false,
  "onRejectCommand": "",
  "onKeepCommand": "",
  "onCompleteCommand": "",
  "stopOnAgentFailure": true,
  "streamAgentOutput": true,
  "commitMessageTemplate": "research: improved metric to {metric} (iter {iteration})"
}

agentMode: "internal" is the default. For a fully custom step command, set agentMode to "command" and edit agentCommand. In internal mode, backend output is streamed through a status-focused relay so users only see clean autoresearcher loop logs.

Example Configs

Default internal mode:

{
  "agentMode": "internal",
  "agentPromptFile": "program.md",
  "agentPrompt": "Improve benchmark with safe, minimal changes.",
  "backendAgent": "amp",
  "backendModel": "claude-sonnet-4-5-20250929",
  "backendMaxIterations": 1,
  "benchmarkCommand": "./scripts/benchmark.sh",
  "metricRegex": "score=([0-9.]+)",
  "direction": "max",
  "iterations": 40,
  "finalReportPath": ".autoresearcher/reports/final-report-{run_id}.md",
  "researchReportPath": "RESEARCH.md",
  "onCompleteCommand": "",
  "autoCommit": false,
  "streamAgentOutput": true
}

Custom command mode:

{
  "agentMode": "command",
  "agentCommand": "./scripts/agent-step.sh",
  "benchmarkCommand": "./scripts/benchmark.sh",
  "metricRegex": "score=([0-9.]+)",
  "direction": "max",
  "iterations": 40,
  "finalReportPath": ".autoresearcher/reports/final-report-{run_id}.md",
  "researchReportPath": "RESEARCH.md",
  "onCompleteCommand": ""
}

Typical Real Setup

  1. Start with internal mode and tailor agentPrompt to your objective.
  2. Set one provider key (ANTHROPIC_API_KEY, OPENAI_API_KEY, or OPENROUTER_API_KEY).
  3. Optionally pin backendAgent and backendModel.
  4. Edit program.md with your experiment objective and constraints.
  5. Replace ./scripts/benchmark.sh so it prints one numeric metric, like score=0.8123.
  6. Set direction to max or min.
  7. Optionally switch to agentMode: "command" and customize agentCommand.
  8. Optionally set onRejectCommand to revert non-improving changes.
  9. Optionally set onCompleteCommand to post-process generated reports (for example, convert markdown to PDF).

Logs

Every run writes JSONL logs in .autoresearcher/runs/<timestamp>.jsonl. Every run also writes a markdown final report using finalReportPath (supports {run_id} template token). Every run writes a synthesized research result markdown using researchReportPath (default: RESEARCH.md).

onCompleteCommand template variables include {run_id}, {report_path}, {research_report_path}, {best_metric}, and {best_iteration}.