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

agent-ready-client

v0.2.0

Published

Official JavaScript/TypeScript client SDK for the Agent Ready API — scan any URL for AI agent-readability (Vercel Agent Readability Spec, llmstxt.org, agent-protocol manifests).

Downloads

257

Readme

agent-ready-client

Official JavaScript / TypeScript client SDK for the Agent Ready API — scan any public URL for AI agent-readability against the Vercel Agent Readability Spec, the llmstxt.org standard, and agent-protocol manifests (MCP server cards, A2A, agents.json, agent-permissions.json, UCP, x402, NLWeb).

Zero runtime dependencies — uses the global fetch, so it runs on Node 18+, Deno, Bun, edge runtimes, and browsers.

Prefer the terminal? Use the agent-ready-scanner CLI. Want MCP-native tools? See agent-ready-mcp. This package is for calling the API from your own code. A Python SDK is also available.

Install

npm install agent-ready-client

Quick start

import { AgentReady } from "agent-ready-client";

const ar = new AgentReady({ apiKey: process.env.AGENT_READY_API_KEY });

// Start a scan and wait for the result:
const scan = await ar.scan("https://example.com");
console.log(scan.vercelScore, scan.vercelRating); // 96 "excellent"

// Inspect failing checks:
for (const check of scan.siteChecks.filter((c) => c.status === "fail")) {
  console.log(check.checkId, check.name, "→", check.howToFix);
}

Authentication

scan, startScan, getScan, and listScans require a Pro API key (issue one at https://agent-ready.dev/dashboard/api-keys). Pass it explicitly or set AGENT_READY_API_KEY in the environment:

const ar = new AgentReady();                       // reads AGENT_READY_API_KEY
const ar = new AgentReady({ apiKey: "ar_live_…" }); // or pass it in

ask is public and needs no key.

API

new AgentReady({ apiKey?, baseUrl?, timeoutMs? })

| Method | Returns | Notes | | --- | --- | --- | | scan(url, { pageLimit?, pollIntervalMs?, timeoutMs? }) | Promise<Scan> | Start and poll to completion. | | startScan(url, { pageLimit? }) | Promise<StartScanResponse> | Queue only; returns the id immediately. | | getScan(id) | Promise<Scan> | Fetch a scan (running or finished). | | listScans({ limit?, cursor? }) | Promise<ScanListResponse> | Your scans, newest first. | | ask(query, { itemType?, mode? }) | Promise<AskResponse> | NLWeb doc search. No key required. |

Fire-and-forget + poll later

const { id } = await ar.startScan("https://example.com", { pageLimit: 25 });
// …later…
const scan = await ar.getScan(id);
if (scan.status === "completed") console.log(scan.vercelScore);

Errors

Every failure throws an ApiError with a stable code and (when from a response) an HTTP status:

import { ApiError } from "agent-ready-client";

try {
  await ar.scan("https://example.com");
} catch (err) {
  if (err instanceof ApiError && err.code === "rate_limited") {
    // back off and retry
  }
}

Common codes: missing_api_key, unauthorized, subscription_required, rate_limited, invalid_request, timeout, network_error.

Types

Scan, CheckResult, ScanSummary, ScanListResponse, StartScanResponse, CheckStatus, ScanStatus, VercelRating, and ApiError are all exported.

Links

License

MIT © Agent Ready