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

@lifeascode/cli

v2.0.3

Published

Life-as-Code v2 CLI — create, advance, build, fill, lint, migrate

Readme

@lifeascode/cli

CLI and programmatic API for Life-as-Code v2.

Install

npm install -g @lifeascode/cli

Commands

lac init [dir]                        Create lac.config.json in a project
lac create <type> <title>             Scaffold a new node.json
  --domain <domain>                   Required
  --parent <id>                       Link to parent node
  --owner <name>

lac advance <id> <status>             Transition status with validation
  --reason <reason>                   Required for frozen→active, any→deprecated
  --dry-run                           Preview without writing

lac fill [id]                         Show missing fields
  --all                               Scan all nodes below threshold
  --threshold <n>                     Completeness % ceiling (default: 80)
  --target-status <status>            Show what is required for a specific transition
  --prompt                            Output a Claude fill prompt

lac build [dir]                       Build .lac/graph.json, index.json, DOMAINS.md
  --strict                            Exit 1 if any node fails validation

lac lint [dir]                        Validate all nodes
  --strict                            Exit 1 on any error

lac search <query>                    Full-text search
  --status / --type / --domain        Filters

lac status [dir]                      Project health summary
  --domain / --type                   Filters

lac export <dest>                     Copy .lac/ artifacts to a target directory

Programmatic API

import {
  // File system
  findLacConfig,        // walk up to find lac.config.json
  scanNodes,            // recursively find all node.json files
  readAndValidateNode,  // read + Zod-validate a single node

  // Config
  loadConfig,           // load + resolve lac.config.json with @lifeascode/core merge

  // Lifecycle
  advanceNode,          // validate + apply a status transition
  getMissingForTransition, // fields required for a given transition
  computeCompleteness,  // 0-100 score for a node

  // Fill
  identifyGaps,         // all empty fields, split blocking/recommended
  buildFillPrompt,      // Claude fill prompt for a node
  applyFieldUpdates,    // write dot-path updates, respecting locks

  // Graph
  buildGraph,           // full graph.json from scanned nodes
  buildIndex,           // lean index.json
  buildDomainsMd,       // DOMAINS.md content

  // Write
  writeNode,            // write node.json to disk
  createNode,           // scaffold new node in correct location
  generateId,           // generate next id for project+type

  // Utilities
  getNestedValue,       // read dot-path from object
  isEmpty,              // check if a value is empty
} from '@lifeascode/cli'

Node types (from @lifeascode/core)

feature bug decision epic research runbook faq release

Custom types can be added in lac.config.json.