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

@idevelopers/agentlock

v0.1.1

Published

Local permission firewall for AI coding agents and MCP tools.

Readme

AgentLock

Stop AI coding agents from touching secrets, running unsafe commands, or overusing MCP tools without explicit policy.

AgentLock is a local MCP server plus Claude Code and Codex plugin packaging. It gives each agent task a permission capsule for files, shell commands, secret reads, network egress, MCP tools, and actions that require approval.

Install

Install the MCP server directly from npm in Claude Code:

claude mcp add agentlock -- npx -y @idevelopers/agentlock

Or install the Claude Code plugin from the public installer marketplace:

/plugin marketplace add https://github.com/manish-1988/agentlock-installer
/plugin install agentlock@agentlock-marketplace

For local source development from this private repository:

npm install
npm run build
node dist/index.js

Polar handles paid licenses; npm distributes the runtime package. The public installer repository contains only plugin metadata and points Claude/Codex at npx -y @idevelopers/agentlock.

Free, Pro, Team

Free is the local AgentLock scanner and starter policy generator. The source repository remains private; the public installer repository only contains plugin metadata that points to the public npm runtime.

| Capability | Free | Pro | Team | | --- | --- | --- | --- | | Local AI-agent/MCP risk scan | Yes | Yes | Yes | | Starter policy generation | Yes | Yes | Yes | | Action checks against policy | No | Yes | Yes | | Guarded command execution | No | Yes | Yes | | Redacted local audit log | No | Yes | Yes | | Shared policies, signed bundles, seats | No | No | Yes |

Pro is intended for $19/dev/month or local INR equivalent. Team is intended for $99/team/month with seats.

The AgentLock live checkout URL is added after the Polar product is created. Until then, set AGENTLOCK_CHECKOUT_URL locally during sandbox or live payment validation.

Policy

Create agentlock.policy.json in your repo. Start from agentlock.policy.example.json or call agentlock_generate_policy.

{
  "version": 1,
  "defaultCapsule": "default",
  "capsules": [
    {
      "id": "default",
      "allowedFiles": ["**"],
      "deniedFiles": [".env", ".env.*", "~/.aws/**", "~/.ssh/**"],
      "allowedCommands": ["npm test", "npm run", "git status", "git diff"],
      "deniedCommands": ["rm", "sudo", "npm publish", "git push"],
      "approvalRequired": ["secret-read", "package-publish", "git-push"]
    }
  ]
}

For smoke tests or nonstandard filenames, point AgentLock at a specific policy:

export AGENTLOCK_POLICY=agentlock.policy.example.json

Tools

  • agentlock_scan_environment: free local risk scan for secret-adjacent files and agent/MCP config.
  • agentlock_generate_policy: free starter permission capsule generator.
  • agentlock_check_action: Pro policy decision for file, command, network, and MCP actions.
  • agentlock_run_guarded_command: Pro command runner using child_process.spawn with shell:false.
  • agentlock_audit_log: Pro redacted local audit log.
  • agentlock_activate_license: store and verify a Polar license key.

License Activation

AgentLock uses Polar license keys and caches successful validation in ~/.agentlock/license.json with a 72-hour offline grace window for Pro and Team licenses.

For sandbox checks, set both values:

export POLAR_ENVIRONMENT=sandbox
export POLAR_ORGANIZATION_ID="your_sandbox_org_id"
export AGENTLOCK_CHECKOUT_URL="your_sandbox_checkout_url"

Then call agentlock_activate_license with the Polar license key. By default the activation label is agentlock-local; override it with AGENTLOCK_ACTIVATION_LABEL if you want a more specific device label in Polar.

Security

AgentLock runs locally and does not upload files or secrets to an AgentLock server. The scanner reports file presence and risky surfaces, not secret values. Reports, command output tails, and audit entries are redacted.

Guarded commands run with shell:false and a sanitized environment that strips secret-like variables. Treat agentlock.policy.json like a CI or firewall file: review it before trusting an agent task.

Development

npm install
npm run build
npx vitest run
npm pack --dry-run

The package binary is agentlock, mapped to dist/index.js.