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

ara-generate

v2.0.0

Published

Generates ARA manifests and schemas from existing website metadata (JSON-LD, Microdata, OpenGraph, sitemap)

Readme

ara-generate

Generate ARA manifests + schemas from any website. Zero dependencies.

Part of the ARA Standard — Agent-Ready Architecture.

Install & Run

# No install needed — run directly with npx
npx ara-generate https://yoursite.com

# Or install globally
npm install -g ara-generate
ara-generate https://yoursite.com

What it does

The generator analyzes your website and produces:

Layer 1 — Manifest (always generated)

  • Extracts identity from <title>, OpenGraph, JSON-LD Organization data
  • Detects site type (ecommerce, blog, restaurant, saas, etc.)
  • Detects language, contact info, branding
  • Analyzes sitemap.xml to detect resource patterns
  • Checks for OpenAPI/Swagger endpoints

Layer 2 — Schemas (when structured data is present)

  • Converts JSON-LD <script type="application/ld+json"> to ARA schemas
  • Converts Microdata (itemscope, itemprop) to ARA schemas
  • Generates search_hints (filterable_by, sortable_by, text_searchable)
  • Adds semantic annotations (schema:name, schema:price, etc.)

Usage

# Basic: outputs manifest JSON to stdout
npx ara-generate https://yoursite.com

# Save to .well-known/ara/ directory (manifest.json + schemas/)
npx ara-generate https://yoursite.com --output .well-known/ara/

# Layer 1 only (skip schema detection)
npx ara-generate https://yoursite.com --layer 1

# Crawl internal pages to find more structured data
npx ara-generate https://yoursite.com --crawl 10

# Full generation with crawling
npx ara-generate https://yoursite.com --crawl 10 --output .well-known/ara/

When does Layer 2 work?

Layer 2 schemas are auto-generated when your site has structured data:

| Source | Confidence | Example | |--------|-----------|---------| | JSON-LD (<script type="application/ld+json">) | HIGH | Most modern e-commerce, news sites, recipe sites | | Microdata (itemscope, itemprop) | MEDIUM | Older sites, some WordPress themes | | OpenAPI/Swagger | Protocol detection | API-first sites |

Supported Schema.org types

Product, Article, NewsArticle, BlogPosting, Recipe, Event, Restaurant, LocalBusiness, Course

When Layer 2 cannot be auto-generated

  • Site has no structured data (plain HTML only) → Layer 1 only, with guidance on what to add
  • Content is rendered client-side (SPA without SSR) → Generator sees empty HTML
  • Data is behind authentication → Generator can only access public pages

In these cases, the generator produces Layer 1 and prints instructions on how to enable Layer 2.

Output structure

.well-known/ara/
├── manifest.json          ← Always generated
└── schemas/               ← Generated when structured data found
    ├── product.json
    ├── article.json
    └── ...

Example output

  ARA Generator v2.0.0
  Target: https://myshop.com
  Mode: Layer 1 + Layer 2 (schemas)
  ─────────────────────────────────────────

  ✓ Fetched main page (45.2 KB)
  ✓ Extracted metadata: "MyShop"
  ✓ Detected type: ecommerce
  ✓ Found 3 JSON-LD block(s): Product, Organization, BreadcrumbList
  ✓ sitemap.xml (1,250 URLs, 4 pattern(s))

  ── Layer 2: Schema Detection ──────────────────
  ✓ Generated 1 schema(s) from JSON-LD

  ── Results ───────────────────────────────────
  ✓ Generated ARA manifest (Layer 2)
    Identity: MyShop (ecommerce)
    Resources: 5
    Schemas: 1

  ✓ Saved .well-known/ara/manifest.json
  ✓ Saved .well-known/ara/schemas/product.json

Links

License

MIT