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

@dresnite/loops

v0.3.1

Published

CLI tool for creating reusable AI agent workflows

Readme

Loops

Reusable AI workflows for your codebase.

Loops turns ad-hoc agent prompts into durable, repeatable workflows. Define a loop once, run it on any repo, monitor active runs, and stop them like processes.

Providers: Cursor SDK today — Claude Code coming soon. See docs/providers.md.

Install

npm install -g @dresnite/loops

Or run without installing:

npx @dresnite/loops --help

Quick start

# 1. Save your Cursor API key
loops key set cursor cursor_...

# 2. Define a loop
loops add structure-agent --prompt "Improve project structure"

# 3. Run it on a repo (continuous by default)
#    --model composer-2.5  → standard tier (default; use composer-2.5-fast for faster inference)
#    --budget 10           → stop after ~$10 estimated model spend
#    --tasks 25            → stop after 25 agent turns
loops run structure-agent --repo ./my-app --budget 10 --tasks 25

# 4. Check what's running (or see failed runs)
loops ls
loops ls --all

# 5. See what a loop is doing
loops logs structure-agent
loops logs structure-agent --follow
loops prompt show structure-agent
loops prompt set structure-agent --prompt "focus on tests next"
loops model show structure-agent
loops model set structure-agent --model composer-2.5

# 6. Stop a run (by name or run-id)
loops stop structure-agent
loops stop a1b2

# 7. Remove the definition
loops rm structure-agent

--budget and --tasks are optional guardrails. Use either, both, or neither. Without limits, a continuous run keeps going until you stop it.

Commands

| Command | Description | | ---------------------------- | ---------------------------- | | loops key set cursor <key> | Save your Cursor API key | | loops key list | List configured keys | | loops add <name> | Create a loop definition | | loops run <name> | Start a loop on a repository | | loops ls | List running loops | | loops ls --all | List recent runs (incl. failed) | | loops logs <name> | View logs for a loop run | | loops prompt show <name> | View the prompt for a run | | loops prompt set <name> | Update the prompt for a run | | loops stop <name\|run-id> | Stop a running loop | | loops rm <name> | Delete a loop definition |

Documentation

Why Loops?

Instead of running the same prompt manually every time, you get a workflow that:

  • runs inside a repo
  • follows a prompt or preset file
  • runs continuously or once
  • starts and stops like a process
  • respects optional budget and task limits

Projects using Loops

Projects using Loops to run continuous AI workflows on their codebases:

  • Animoo — AI manga creation app. Runs Loops to improve stability, harden the codebase, and keep the product reliable as it evolves.

Support

If Loops is useful to you, one way to support its development is to buy a Cursor plan through my referral link. That gives me extra tokens to keep burning on real Loops runs.

I'm not paid or sponsored to post that link here — it's just my personal referral code, and you're supporting the tool's author, not a brand deal.

License

Copyright (c) 2026 Andres Arias

Licensed under the MIT License. See LICENSE for the full text.