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

@airtrafficcontrol/checklist

v0.0.1

Published

Landing checklist runner for the ATC system. Defines checklist items as named async validation steps, executes them sequentially, and aggregates pass/fail results. When any item fails, the craft must perform a go-around.

Readme

@airtrafficcontrol/checklist

Landing checklist runner for the ATC system. Defines checklist items as named async validation steps, executes them sequentially, and aggregates pass/fail results. When any item fails, the craft must perform a go-around.

Installation

pnpm add @airtrafficcontrol/checklist

This is an internal workspace package (workspace:*).

API Reference

Types

ChecklistItem

A named async validation step. See RULE-LCHK-4.

| Property | Type | Description | |---|---|---| | name | string | Display name (e.g., "Tests", "Lint") | | validate | () => Promise<ChecklistItemResult> | Async function that runs the validation |

ChecklistItemResult

Result of a single checklist item. See RULE-LCHK-2.

| Property | Type | Description | |---|---|---| | name | string | Name of the checklist item | | passed | boolean | Whether the validation passed | | message | string? | Optional human-readable message |

ChecklistResult

Aggregate result of the full checklist run. See RULE-LCHK-2, RULE-LCHK-3.

| Property | Type | Description | |---|---|---| | passed | boolean | True only if ALL items passed | | items | readonly ChecklistItemResult[] | Results for every item, in execution order | | failedItems | readonly ChecklistItemResult[] | Subset where passed is false |

Functions

createChecklistItem(name: string, validate: () => Promise<ChecklistItemResult>): ChecklistItem

Creates a frozen checklist item from a name and an async validation function. See RULE-LCHK-4.

runChecklist(items: readonly ChecklistItem[]): Promise<ChecklistResult>

Runs every item sequentially and aggregates results. All items are always executed regardless of individual pass/fail — the full picture is always reported.

Throws ChecklistError if items is empty.

See RULE-LCHK-1, RULE-LCHK-2, RULE-LCHK-3.

createDefaultChecklist(): readonly ChecklistItem[]

Creates the default landing checklist with 4 placeholder validators (Tests, Lint, Documentation, Build). Each placeholder always passes — projects override these with real implementations.

See RULE-LCHK-4.

Usage

import { runChecklist, createChecklistItem, createDefaultChecklist } from "@airtrafficcontrol/checklist";

// Run the default checklist
const defaults = createDefaultChecklist();
const result = await runChecklist(defaults);
console.log(result.passed); // true (all placeholders pass)

// Create a custom checklist item
const testsItem = createChecklistItem("Tests", async () => {
  const passed = await runTestSuite();
  return { name: "Tests", passed, message: passed ? "All tests pass" : "3 failures" };
});

// Run a custom checklist
const customResult = await runChecklist([testsItem]);
if (!customResult.passed) {
  console.log("Go-around required:", customResult.failedItems);
}

Specification Rules

| Rule | Description | |---|---| | RULE-LCHK-1 | Checklist is executed by the pilot holding controls | | RULE-LCHK-2 | passed is true only if every item passed | | RULE-LCHK-3 | A false result means a go-around is required | | RULE-LCHK-4 | The checklist is project-configurable |

Dependencies

| Package | Purpose | |---|---| | @airtrafficcontrol/types | Domain types | | @airtrafficcontrol/errors | ChecklistError |

Related Packages