Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:0sec labs 0 Node js

From Leeroopedia
Knowledge Sources
Domains Security, LLM_Red_Team, MCP
Last Updated 2026-10-30 00:00 GMT

Overview

Node.js >= 24.0.0 with pnpm >= 9 for the 0sec-cli monorepo: LLM red-teaming, source code security review, MCP server, and report formatting.

Description

The root `package.json` declares `"node": ">=24.0.0"` and `"pnpm": ">=9"` with `packageManager` pinned to `pnpm@9.15.9`. The monorepo uses pnpm workspaces with packages under `packages/` (core, cli, db, templates, shared, llm-redteam, benchmark, docs). Key dependencies include `drizzle-orm` (SQLite ORM), `node-sqlite3-wasm`, `playwright` 1.60.0 (browser-based red-team targets), `tree-sitter` / `tree-sitter-c` (source code parsing for security review), and `pdfkit` (PDF report output). The CLI is bundled via esbuild into a single `dist/0.js` entry point.

Usage

Use this environment for all TypeScript/JavaScript implementations: LLM red-team campaign behaviors and strategies, target evaluation, response judging, campaign engine, source code security review (repository ingestion, deep review, harness reproduction), finding generation, report formatting, MCP server setup, scope/engagement configuration, tool exposure, workflow integration, and rate limiting.

System Requirements

Category Requirement Notes
OS Linux, macOS, Windows (WSL2) CI runs on Linux
Hardware 4+ CPU cores, 8GB RAM Playwright browser tests need headless display
Disk 5GB SSD node_modules + Playwright browser binaries

Dependencies

System Packages

  • `node` >= 24.0.0
  • `pnpm` >= 9 (pinned to 9.15.9 via packageManager)
  • `git`

NPM Packages

  • `drizzle-orm` ^0.45.2 (SQLite ORM for workflow/state persistence)
  • `node-sqlite3-wasm` ^0.8.55 (SQLite WASM driver)
  • `playwright` 1.60.0 (browser red-team targets)
  • `tree-sitter` 0.21.1 (vendored, source code parsing)
  • `tree-sitter-c` 0.21.4 (C language grammar for SAST)
  • `pdfkit` ^0.15.2 (PDF report generation)
  • `esbuild` ^0.28.1 (dev — CLI bundling)

Credentials

The following environment variables may be required depending on the workflow:

  • `ANTHROPIC_API_KEY`: Anthropic API key (LLM-driven deep review)
  • `OPENAI_API_KEY`: OpenAI API key (LLM providers)
  • `Z_AI_API_KEY`: z-ai/GLM API key
  • API keys are routed by model-id prefix or env-key priority ladder (see `llm/providers.ts`)

Quick Install

# Install pnpm
npm install -g pnpm@9.15.9

# Install all workspace dependencies
pnpm install

# Build everything
pnpm build

# Run the CLI
node dist/0.js

Code Evidence

Node engine requirement from `package.json:87-89`:

"engines": {
  "node": ">=24.0.0",
  "pnpm": ">=9"
},

Package manager pin from `package.json:91`:

"packageManager": "pnpm@9.15.9",

Bundled tree-sitter dependencies from `package.json:18-21`:

"bundledDependencies": [
  "tree-sitter",
  "tree-sitter-c"
],

Common Errors

Error Message Cause Solution
`ERR_PNPM_UNSUPPORTED_ENGINE` Node < 24 or pnpm < 9 Upgrade Node to 24+ and pnpm to 9+
Playwright browser not found Browser binaries not installed `npx playwright install`
`tree-sitter` native binding error Vendored tgz not extracted Run `pnpm install` to resolve vendored dependency

Compatibility Notes

  • Node < 24: Not supported — engine constraint enforced by pnpm.
  • pnpm < 9: Not supported — workspace protocol and lockfile format require pnpm 9+.
  • Playwright: Requires headless browser binaries; install via `npx playwright install`.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment