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

@aiacta-org/ai-attribution-lint

v1.0.14

Published

CLI validator for ai-attribution.txt files. The AIACTA open standard for AI content attribution and publisher rights (AIACTA Proposal 4, §5.7)

Downloads

764

Readme

@aiacta-org/ai-attribution-lint

CLI validator for ai-attribution.txt files. The AIACTA open standard for AI content attribution (Proposal 4, §5.7).

npm version License AIACTA Spec


What is this?

@aiacta-org/ai-attribution-lint validates your ai-attribution.txt file — the plain-text file publishers place on their website to declare their preferences to AI systems. It checks syntax, required fields, valid values, SPDX licence identifiers, and webhook reachability.

Think of it as the eslint for the AIACTA standard.


Install

# Run once without installing (recommended for quick checks)
npx @aiacta-org/ai-attribution-lint https://yourdomain.com --json

# Install globally
npm install -g @aiacta-org/ai-attribution-lint

# Install as a dev dependency in a project
npm install --save-dev @aiacta-org/ai-attribution-lint

Usage

Check a live website

npx @aiacta-org/ai-attribution-lint https://yourdomain.com --json

The linter automatically fetches /.well-known/ai-attribution.txt (and falls back to /ai-attribution.txt).

Check a local file

npx @aiacta-org/ai-attribution-lint ./ai-attribution.txt

JSON output (for CI pipelines)

npx @aiacta-org/ai-attribution-lint https://yourdomain.com --json

Output format:

{
  "errors": [],
  "warnings": [
    "Schema-Version is missing — defaults to 1.0"
  ],
  "info": []
}

Exit codes:

  • 0 — Passed (no errors)
  • 1 — Failed (one or more errors, or warnings in --strict mode)
  • 2 — Could not fetch or parse the file

Strict mode (treat warnings as errors)

npx @aiacta-org/ai-attribution-lint https://yourdomain.com --strict

What it checks

| Rule | Severity | |------|----------| | Schema-Version is present and is "1.0" | Warning if missing | | Contact field is present | Warning if missing | | Allow-Purpose / Disallow-Purpose values are valid enum values (training, rag, index, quality-eval) | Error | | Content-License is a valid SPDX identifier or All-Rights-Reserved | Error | | Citation-Webhook URL is reachable (HTTP HEAD request) | Warning if unreachable | | Reward-Tier is a valid enum value | Error | | robots.txt conflicts with Allow-Purpose | Warning | | Unknown fields are silently ignored (forward-compatibility per §5.6) | — |


Use in CI/CD

Add to your GitHub Actions workflow to validate your ai-attribution.txt on every deploy:

- name: Validate ai-attribution.txt
  run: npx @aiacta-org/ai-attribution-lint https://yourdomain.com --json

Or validate a local file during build:

- name: Validate ai-attribution.txt
  run: npx @aiacta-org/ai-attribution-lint ./public/.well-known/ai-attribution.txt

Node.js API

const { lint } = require('@aiacta-org/ai-attribution-lint');

const result = await lint('https://yourdomain.com');
// or: await lint('./ai-attribution.txt')

console.log(result.errors);   // string[] — blocking issues
console.log(result.warnings); // string[] — advisory issues
console.log(result.info);     // string[] — informational notes

if (result.errors.length > 0) {
  process.exit(1);
}

Example ai-attribution.txt

Schema-Version: 1.0
Contact: [email protected]
Preferred-Attribution: Your Publication Name (yourdomain.com)
Allow-Purpose: rag
Allow-Purpose: index
Disallow-Purpose: training
Require-Citation: true
Require-Source-Link: true
Citation-Format: title-and-url
Citation-Webhook: https://yourdomain.com/webhooks/ai-citations
Recrawl-After: 24h
Reward-Tier: standard
Content-License: All-Rights-Reserved

Place this file at https://yourdomain.com/.well-known/ai-attribution.txt.


Related packages

| Package | Purpose | |---------|---------| | @aiacta-org/ai-citation-sdk | Receive and verify citation webhook events | | @aiacta-org/crawl-manifest-client | Query AI providers' crawl history for your domain |


License & Copyright

Copyright © 2026 Eric Michel, PhD. Licensed under the Apache License 2.0.

AIACTA™ is part of the AIACTA open standard.