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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@arcsight-ai/cli

v0.3.3

Published

ArcSight CLI - Deterministic Platform Skeleton

Readme

ArcSight CLI - Deterministic Platform Skeleton

Contract Compliance

Purpose

This is the deterministic platform skeleton for the ArcSight CLI. This skeleton provides the structural foundation for ArcSight's deterministic UX platform and follows strict wedge-aligned engineering rules.

What ArcSight Is

ArcSight reports deterministic architectural signals.

It surfaces only provable structural issues and prefers silence to uncertainty.

It does not enforce policy, block CI, or suggest fixes.

Details are always opt-in.

⚠️ Important: NO BUSINESS LOGIC YET

This skeleton contains ONLY structural elements:

  • Type definitions and interfaces
  • Placeholder function signatures
  • Command routing structure
  • Formatter skeletons
  • Documentation

NO business logic has been implemented. NO wedge imports or dependencies. NO analysis behavior.

Determinism Philosophy

The ArcSight CLI is designed around core determinism principles:

  1. No Mutation: Envelopes and data structures are immutable
  2. Stable Output: All outputs are deterministic and reproducible
  3. Wedge Isolation: The CLI platform is isolated from wedge implementation details
  4. Safety First: Safety ledger tracks all safety-related decisions
  5. Versioned Contracts: Envelope schema is versioned and backward-compatible

Project Structure

arcsight-cli/
├── src/
│   ├── index.ts                 # CLI entrypoint (commander setup)
│   ├── envelope.ts              # AnalysisEnvelope contract
│   ├── envelopeVersioning.ts    # Schema versioning map
│   ├── runtime/                 # Runtime context
│   ├── errors/                  # Error classification
│   ├── determinism/             # Determinism utilities (placeholders)
│   ├── stability/               # Stability utilities (placeholders)
│   ├── safety/                  # Safety ledger
│   ├── lifecycle/               # Lifecycle hooks
│   ├── startup/                 # Startup checks (placeholders)
│   ├── formatters/              # Output formatters (placeholders)
│   ├── commands/                # Command handlers (placeholders)
│   └── types/                   # Type definitions
├── tests/                       # Test suite
├── demos/                       # Demo scenarios
└── docs/                        # Documentation

Folder Responsibilities

src/envelope.ts

Defines the AnalysisEnvelope contract - the deterministic structure for all CLI output.

src/formatters/

Formatter modules for different output profiles:

  • human.ts - Human-readable output
  • json.ts - JSON output
  • ci.ts - CI/CD output
  • cycles.ts - Cycle detection output
  • graph.ts - Dependency graph output
  • silent.ts - Silent mode output
  • determinism.ts - Determinism verification output
  • profile.ts - Profile routing

src/commands/

Command handlers:

  • analyze.ts - Main analysis command
  • demo.ts - Demo command
  • explainCycle.ts - Cycle explanation command
  • utils.ts - Command utilities

src/determinism/

Determinism utilities (placeholders):

  • deepFreeze.ts - Immutability enforcement
  • stableSort.ts - Deterministic sorting
  • stableKeys.ts - Deterministic key extraction
  • stableJson.ts - Deterministic JSON encoding

src/safety/

Safety ledger for tracking safety-related decisions and warnings.

src/lifecycle/

Lifecycle hooks for CLI execution phases.

src/startup/

Startup validation checks (environment, node version, wedge compatibility).

CLI Contract

See docs/cli-contract.md for the complete CLI contract documentation, including:

  • Deterministic design principles
  • No-mutation rules
  • Envelope architecture
  • Error handling rules
  • Formatter constraints
  • Extension boundaries
  • Versioning scheme

Wedge Isolation Rules

CRITICAL: This CLI skeleton must NOT:

  • Import @arcsight/wedge or any wedge dependencies
  • Implement analysis logic
  • Call wedge functions
  • Assume wedge shapes or structures
  • Mutate "raw" outputs (placeholders only)

The CLI platform is a deterministic framework that will eventually consume wedge output, but the skeleton maintains strict isolation.

Development

Prerequisites

  • Node.js >= 18.0.0 (see .nvmrc)
  • TypeScript 5.0+

Build

npm run build

Test

npm test

Future Implementation

When implementing business logic:

  1. Maintain determinism guarantees
  2. Follow the CLI contract
  3. Implement formatters without mutation
  4. Use the safety ledger for all safety decisions
  5. Preserve envelope immutability

License

Apache License 2.0. See LICENSE.