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

@acdl/cli

v0.1.6

Published

Initialize AI Context Docs in any project

Readme

@acdl/cli

Initialize and maintain AI Context Docs in any project.

Requirements

  • Node.js 18+

Install

Run with npx (recommended, no global install):

npx @acdl/cli init

Or install globally:

npm install -g @acdl/cli
acdl --help

Quick Start

From the root of your target project:

# 1) Initialize .acdl/ and generate managed files
npx @acdl/cli init --yes

# Optional: pre-generate docs templates (default is no docs)
npx @acdl/cli init --yes --with-docs architecture,api

# 2) Preview managed updates (dry-run by default)
npx @acdl/cli update

# 3) Apply managed updates
npx @acdl/cli update --apply

# 4) Verify config, markers, and managed file integrity
npx @acdl/cli doctor

After init, the CLI creates:

  • .acdl/config.toml
  • .acdl/templates/
  • .acdl/content/ (full methodology scaffold)
  • AGENTS.md
  • docs/ files (only when --with-docs is used)

Commands

init

Initialize .acdl/ control plane and render managed files.

npx @acdl/cli init [options]

Options:

  • --with-docs <docs>: Comma-separated docs to enable.
    • Supported values: architecture,api,auth,data_model,scripts
    • Default: none (AI agent can create docs using guides)
  • --force: Re-initialize over an existing .acdl/
  • --yes: Skip confirmation prompts and use defaults

Example:

npx @acdl/cli init --yes --with-docs architecture,api

update

Compare managed blocks against templates and show/apply changes.

npx @acdl/cli update [options]

Options:

  • --apply: Apply managed changes (without this, update is dry-run)
  • --verbose: Show full diff output in dry-run mode

Examples:

# Dry-run summary
npx @acdl/cli update

# Apply changes to managed blocks
npx @acdl/cli update --apply

doctor

Validate .acdl/ setup and managed file integrity.

npx @acdl/cli doctor

What it checks:

  • .acdl/ exists
  • .acdl/config.toml is valid
  • .acdl/templates/ exists
  • expected managed files exist
  • managed markers are present and valid

Managed Markers

Generated content is wrapped in managed markers. update --apply only patches content inside these markers and preserves user content outside of them.

Local Development

From packages/cli:

npm install
npm run build
npm test

Run the local built CLI:

node dist/bin.js --help
node dist/bin.js init --yes