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

@web-axag/axag-lint

v1.0.1

Published

Static linter for AXAG annotations in HTML, JSX, and TSX files

Readme

axag-lint

Homepage CLI Homepage

Static linter for AXAG annotations in HTML, JSX, and TSX files. Validates semantic contracts on interactive UI elements to ensure agent-ready markup is correct, complete, and consistent.

Install

npm install -g @web-axag/axag-lint

Or run without installing:

npx @web-axag/axag-lint ./src

Usage

# Lint a directory
axag-lint ./src

# Lint a single file
axag-lint index.html

# JSON output for CI
axag-lint ./src --format json

# GitHub Actions annotations
axag-lint ./src --format github

# Only show errors
axag-lint ./src --quiet

# Cross-reference against a manifest
axag-lint ./src --manifest axag-manifest.json

# Generate default config
axag-lint --init

Rules

| ID | Description | Default | |----|-------------|---------| | AXAG-LINT-001 | Interactive element missing axag-intent | error | | AXAG-LINT-002 | Element has axag-intent but missing axag-entity | error | | AXAG-LINT-003 | Element has axag-intent but missing axag-action-type | error | | AXAG-LINT-004 | Invalid axag-action-type value | error | | AXAG-LINT-005 | Invalid axag-risk-level value | error | | AXAG-LINT-006 | High/critical risk without confirmation-required | warning | | AXAG-LINT-007 | Write/delete without idempotent declaration | warning | | AXAG-LINT-008 | Parameter in both required and optional lists | error | | AXAG-LINT-009 | Invalid JSON in parameter attributes | error | | AXAG-LINT-010 | Intent not found in manifest | warning | | AXAG-LINT-011 | Role-based attributes without scope | warning | | AXAG-LINT-012 | approval-required without approval-roles | error | | AXAG-LINT-013 | Read action with critical risk level | error | | AXAG-LINT-014 | Write action with contradictory precondition | warning | | AXAG-LINT-015 | Navigate action with side effects | warning | | AXAG-LINT-016 | Tenant-specific role with non-tenant scope | warning | | AXAG-LINT-017 | Non-idempotent mutation without side effects | warning | | AXAG-LINT-018 | Global scope with personal entity | warning | | AXAG-LINT-019 | Superadmin role with tenant scope | warning | | AXAG-LINT-020 | Same entity with different scopes in same file | warning | | AXAG-LINT-021 | Delete action without scope declaration | warning | | AXAG-LINT-022 | Write user-scope with tenant-level entity | warning | | AXAG-LINT-023 | Write/delete without risk-level | error | | AXAG-LINT-024 | Delete action with risk below high | warning | | AXAG-LINT-025 | Read action with risk above low | info | | AXAG-LINT-026 | Safety metadata mismatch for risk level | warning |

Configuration

Create .axaglintrc.json in your project root (or run axag-lint --init):

{
  "include": ["**/*.{html,htm,jsx,tsx}"],
  "exclude": ["node_modules/**", "dist/**", "build/**"],
  "manifestPath": "./axag-manifest.json",
  "rules": {
    "AXAG-LINT-001": "error",
    "AXAG-LINT-007": "warning",
    "AXAG-LINT-025": "off"
  }
}

Rules can be set to "error", "warning", "info", or "off".

Programmatic API

import { lint } from '@web-axag/axag-lint';

const result = await lint('./src', {
  format: 'json',
  manifest: './axag-manifest.json',
});

console.log(`Errors: ${result.errorCount}`);
console.log(`Warnings: ${result.warningCount}`);

Links

License

MIT