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

@squareexperience/loop

v0.2.0

Published

Loop Engineering Language CLI — structured task files for AI agents

Downloads

106

Readme

@squareexperience/loop

Command-line tool for the Loop Engineering Language. Write .loop files to give AI agents a structured contract instead of a chat prompt.

Install

npm install -g @squareexperience/loop

This downloads a prebuilt binary for your platform. If no binary is available, it falls back to building from source with cargo install (requires Rust).

Quick start

loop init             # create workspace structure
loop check Goal.loop  # validate your .loop file
loop run Goal.loop    # run with an AI agent
loop verify Goal.loop # check if verification passes
loop status           # show current state

What is a .loop file?

A .loop file describes a task for an AI agent. It defines seven blocks:

Goal [
    What you want, in plain language.
]

Memory {
    project_path: "./myapp"
    notes: []
}

Task {
    "First specific thing to build"
    "Second specific thing to build"
}

Discovery {
    scan: ["src/**/*.ts", "package.json"]
    find: [
        "What already exists?"
        "What's missing?"
    ]
}

Planning {
    steps: [
        "Run discovery"
        "Implement tasks"
        "Verify"
    ]
    max_iterations: 5
}

Execution {
    tools: [
        read_file(path: string) -> string
        write_file(path: string, content: string) -> bool
        run_command(cmd: string) -> string
    ]
    strategy: "Execute steps in order. Read before writing."
}

Verification {
    checks: [
        "npm test passes"
        "The feature described in Goal works as expected"
    ]
    on_fail: retry
    max_retries: 3
}

Bracket rules are enforced by the compiler:

  • Goal uses [ ] — everything else uses { }
  • Tool parameters use ( )
  • Wrong brackets cause a syntax error with a clear message

Commands

loop init [dir]           Create .loop/skills, Memory/, and Goal.loop
loop check <file>         Validate the file — shows per-block status
loop scaffold <file>      Generate Goal.md, Memory/, skills/, .loop/state.json
loop run <file>           Run with an AI agent (--provider claude|gemini|ollama)
loop verify <file>        Run verification checks, update state and memory
loop status [dir]         Show .loop/state.json (iteration, failures, history)
loop inspect <file>       Print the parsed AST

How it works

  1. Write a .loop file describing what you want built
  2. Run loop init to create the workspace structure
  3. Run loop run Goal.loop --provider claude
  4. The agent reads the file, runs Discovery, executes Planning steps using the declared tools, and checks Verification after each step
  5. Run loop verify Goal.loop when you think it's done
  6. If all checks pass, Memory is updated and Goal.loop is marked complete

Failure tracking

Every failed tool call and failed check is recorded in .loop/state.json. The agent reads this on each iteration and avoids repeating the same failures.

{
  "status": "running",
  "iteration": 3,
  "failed_tools": [
    { "tool": "write_file", "error": "permission denied: src/config.rs" }
  ],
  "failed_checks": [
    "POST /auth/login returns 200 with a JWT"
  ],
  "tool_history": [
    "[iter 1] read_file(src/main.rs) → fn main() {...",
    "[iter 2] write_file(src/auth.rs) → true"
  ]
}

VS Code extension

Install the Loop Engineering Language extension for syntax highlighting, completions, and snippets.

Source

github.com/squareexp/loop