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

@act-spec/cli

v0.2.0-rc.1

Published

PRD-409 standalone CLI (binary: actree) for the ACT (Agent Content Tree) v0.1 reference implementation. Framework-free generator orchestration: loads act.config.{ts,mts,mjs,cjs,js,json}, instantiates adapters + the PRD-400 pipeline (via @act-spec/generato

Downloads

43

Readme

@act-spec/cli

Standalone CLI for ACT (Agent Content Tree). Framework-free orchestration of the ACT generator pipeline (@act-spec/generator-core): loads act.config.{ts,mts,mjs,cjs,js,json}, instantiates adapters, runs the pipeline, and writes the static file set. The binary is actree (renamed from act in v0.2 to avoid colliding with nektos/act on PATH; the package name @act-spec/cli is unchanged).

Status

ACT v0.1 internal hand-test candidate. Public release lands at v0.2.

Install

Unpublished in v0.1. Consume via the workspace:

// package.json
{ "devDependencies": { "@act-spec/cli": "workspace:*" } }

For out-of-tree hand-test, run pnpm pack inside packages/cli and install the resulting tarball locally; the actree binary is exposed via the package's bin field.

Usage

act.config.ts:

import { defineConfig } from '@act-spec/cli';
import { markdown } from '@act-spec/adapter-markdown';

export default defineConfig({
  output: { dir: 'public/act' },
  manifest: { site: { name: 'Tinybox' } },
  conformanceTarget: 'standard',
  adapters: [markdown({ rootDir: './content' })],
});

CLI:

actree build                # one-shot build
actree build --watch        # rebuild on adapter source changes
actree init tinybox ./site  # scaffold a starter project
actree flatten <url>        # walk an ACT site and dump an llms-full.txt-style render

actree flatten <url>

Discover the manifest at <url>/.well-known/act.json, walk the index, fetch every node envelope, and concatenate them as a single llms-full.txt-style markdown document on stdout. Useful for: feeding an entire ACT site to an LLM, debugging a deployed site end-to-end, or smoke-testing that a remote producer's manifest + index + nodes line up.

# Print to stdout
actree flatten https://docs.example.com

# Pick a non-default locale
actree flatten https://docs.example.com --locale fr

# Cap the output size and write to a file
actree flatten https://docs.example.com --max-bytes 200000 --out dump.md

Example output (truncated):

# Example Docs

> A sample site

_locale: en_

---

---
id: intro
type: doc
title: "Introduction"
---

# Introduction

A short summary of the intro page.

Welcome to the Example Docs.

---

...

Failure modes (exit code 1): unreachable manifest, non-JSON manifest, unsupported act_version, missing index_url / node_url_template. Usage errors (missing <url>, malformed --max-bytes) exit 2.

Programmatic:

import { runBuild, watchBuild, loadConfig } from '@act-spec/cli';

const config = await loadConfig(process.cwd());
const report = await runBuild(config, { logger: 'json' });

Conformance / what's tested

Every public API has a citing test in the package's test suite, including config-file resolution order (CONFIG_SEARCH_ORDER), profile shorthand application, output-dir conflict detection, host-framework field detection (warns when act.config is used in a project that should use the framework's plugin instead), the duration-flag parser, the watch re-entry guard, and the build-timeout error path. The conformance gate runs @act-spec/validator against the emitted file set.

pnpm -F @act-spec/cli conformance

Configuration

GeneratorConfig is re-exported from @act-spec/generator-core so developers import everything they need from @act-spec/cli alone. CLI flags layer on top:

| Flag | Maps to | Notes | | --- | --- | --- | | --config <path> | explicit config path | overrides CONFIG_SEARCH_ORDER. | | --watch | watchBuild | requires a TTY-friendly logger. | | --profile <name> | applyProfileOverride | profile shorthand. | | --timeout <duration> | runBuild({ timeout }) | parsed by parseDuration. | | --logger <mode> | selectLoggerMode | 'tty' \| 'plain' \| 'json'. |

Compatibility

No host-framework peer dependency. For framework-aware integrations, prefer the dedicated generator (@act-spec/plugin-astro, @act-spec/plugin-eleventy, @act-spec/plugin-nuxt, etc.).

Links