zwischen
v0.1.2
Published
AI-augmented security scanning for vibe coders. Zero-config secrets detection and vulnerability scanning.
Downloads
610
Maintainers
Readme
Zwischen npm Package
Node.js wrapper for Zwischen, an AI-augmented security scanning CLI. This package exposes a JavaScript implementation of the core workflow for Node users.
The Ruby gem in the repository root is currently the canonical implementation. This wrapper has a smaller command surface and may not match every Ruby feature.
Installation
npm install -g zwischenFor local development:
cd packages/npm
npm install
node bin/zwischen.js --helpCommands
zwischen init
zwischen scan
zwischen scan --ai ollama
zwischen scan --ai openai --api-key "$OPENAI_API_KEY"
zwischen scan --format json
zwischen scan --pre-push
zwischen doctorSupported scan flags:
--ai:ollama,openai, oranthropic--api-key: provider API key--format:terminalorjson--pre-push: compact hook mode
--format json prints only a JSON document to stdout (no banners), matching the Ruby gem's shape: a summary object (total plus by_severity counts) and a findings array. File paths are relative to the project root, and ignore: globs from .zwischen.yml are applied.
Not currently supported in this wrapper:
zwischen uninstallzwischen scan --only ...zwischen scan --changedzwischen scan --format sarif(exits with code 2 and an error message; use the Ruby gem)- Ruby's changed-file filtering for
--pre-push
Behavior
The package postinstall script attempts to install Gitleaks into ~/.zwischen/bin. zwischen init retries that install if needed, creates .zwischen.yml, checks whether Semgrep is available, and installs or appends a Git pre-push hook when run inside a Git repository.
Semgrep is optional:
pip install semgrepConfiguration
The npm wrapper creates this shape:
ai:
enabled: true
pre_push_enabled: false
provider: ollama
model: llama3
blocking:
severity: high
scanners:
gitleaks: true
semgrep: trueBlocking severities are high, critical, or none.
License
MIT
