🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@czap/audit

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@czap/audit

Audit a LiteShip project's structure, integrity, and public surface: a downstream-installable engine that builds a model of the repository and runs configurable checks over it.

latest
Source
npmnpm
Version
0.10.0
Version published
Maintainers
1
Created
Source

@czap/audit

Runs structure, integrity, and surface checks over @czap/* packages and reports findings as structured data — against the LiteShip monorepo or against the packages installed in your own app.

Install this directly when you want to run the audit passes programmatically. Most projects run it through czap audit from @czap/cli instead, which wraps the same engine in a JSON receipt.

Install

pnpm add -D @czap/audit

No peer dependencies. It depends on @czap/canonical, @czap/error, and @czap/gauntlet (it builds the triangulated RepoIR the gauntlet defines, and injects the LiteShip oracles — ADR-0012/ADR-0023) plus typescript.

30 seconds

import { consumerDevopsProfile, runAuditPasses } from '@czap/audit';

const result = runAuditPasses(consumerDevopsProfile(process.cwd()));

console.log(result.counts); // { error, warning, info }
for (const f of result.findings) {
  console.log(f.severity, f.rule, f.title);
}

In a repo with @czap/* packages installed, this logs the merged counts and one line per finding. consumerDevopsProfile(cwd) audits what is actually installed in node_modules (every czap package publishes src/ alongside dist/, so source-level checks run on shipped artifacts); inside the LiteShip monorepo itself, call runAuditPasses() with no argument to glob packages/* instead.

Rule ids

Every finding carries a rule id — the key you use in a profile's allowlists: console-call, default-export, export-target-missing, fallback-laundering, host-surface, missing-manifest-dependency, missing-manifest-dependency-dynamic, missing-runtime-capability, orphan-export-candidate, package-export-surface, package-topology, placeholder-content, stub-marker, suspicious-reimplementation, symbol-orphan-candidate, unknown-internal-package, unresolved-internal-import, virtual-module-surface.

Where it sits

Standalone — this package depends on no other @czap/* package, only fast-glob and the TypeScript compiler API, so you can install it without the rest of the stack. The czap audit verb in @czap/cli is the only adapter that wires the engine; @czap/command and @czap/mcp-server see a structured summary of the result, never the engine itself. LiteShip's repo-local scoring and report rendering are not in this package — they compose it from the monorepo's scripts. See the package surfaces map for the full layout.

If it does nothing

Consumer discovery walks node_modules; if no @czap/* packages are installed where you ran it, the audit finds zero packages and reports zero findings — a clean result that verified nothing. Before trusting a silent pass, check Object.keys(consumerDevopsProfile(cwd).packageRoots).length is what you expect.

Docs

Part of LiteShip — powered by the CZAP engine (Content-Zoned Adaptive Projection), distributed as @czap/* packages.

Keywords

czap

FAQs

Package last updated on 14 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts