Quickstart Guide
Get from zero to your first successful audit in under 5 minutes.Prerequisites
Node.js 16+
Check:
node --versionA Node.js Project
Any project with
package.jsonYour First Audit
Run the Audit
Execute StackProbe with a single command:You’ll see output like:
First run may take a few seconds as
npx downloads StackProbe. Subsequent runs are instant.Understand the Results
StackProbe runs 5 checks and reports:
- ✅ PASS: Everything looks good
- ⚠ WARN: Issues to review (won’t fail CI by default)
- ✗ FAIL: Critical issues that need fixing
- — SKIP: Check not applicable to this project
- Status icon and name
- Duration in milliseconds
- Detailed messages with → info, ⚠ warnings, ✗ errors
Common First Commands
Run All Checks (Default)
deps, env, license, engine, circular
Run Specific Checks Only
JSON Output for CI
Understanding Check Results
Dependencies (deps)
Dependencies (deps)
Checks npm packages against the registry.Example output:What to do:
- Update packages 2+ major versions behind (security risk)
- Review new major versions for breaking changes
- Check your
package.jsonand runnpm update
StackProbe checks up to 20 packages to avoid npm rate limiting. For full audits, use
npm audit or yarn audit.Environment (env)
Environment (env)
Compares What to do:
.env and .env.example for drift.Example output:- Add missing keys to
.env.example(without real values) - Add missing keys to
.env(ask team for values) - Keep both files in sync for team onboarding
License
License
Checks for a LICENSE file in your project root.Example output:What to do:
- Visit choosealicense.com to pick a license
- Add a
LICENSEfile to your project root - Common choices: MIT (permissive), Apache 2.0 (patent protection), GPL (copyleft)
Node Engine
Node Engine
Validates your What to do:
package.json engines field.Example output:- Update
engines.nodeinpackage.json: - Test your app on the new Node version
- Update your CI/CD to use Node 18+
Circular Dependencies
Circular Dependencies
Detects import cycles in your source code.Example output:What to do:
- Refactor to break the cycle:
- Extract shared code to a new file
- Use dependency injection
- Move types to separate files
- Circular deps can cause:
- Runtime errors (undefined imports)
- Hard-to-debug initialization bugs
- Module load order issues
Exit Codes
StackProbe returns exit codes for CI/CD integration:All checks passed or warned (warnings don’t fail by default)
One or more checks failed (status:
fail)What to Do With Results
Fix Critical Issues (FAIL)
Address any checks with ✗ FAIL status immediately:
- Circular dependencies
- Incompatible Node versions
- Missing critical environment variables
Review Warnings (WARN)
Warnings won’t fail your build but should be addressed:
- Outdated dependencies (security updates)
- Missing LICENSE file (legal issues)
- Env file drift (team onboarding pain)
Add to CI/CD
Once your project passes, add StackProbe to your CI:See CI Integration for more.
.github/workflows/audit.yml
Configure for Your Workflow
Customize which checks run and when they fail:See Configuration for all options.
stackprobe.config.js
Real-World Example
Here’s a typical first-time audit on a real project:- Break the circular dependency in Header.tsx ↔ auth.ts
- Add
STRIPE_SECRET_KEYto.env.example - Schedule React/Next.js upgrade (breaking changes expected)
- Re-run audit after fixes:
stackprobe audit
Next Steps
Configuration
Customize StackProbe for your project
CI Integration
Add to GitHub Actions, GitLab CI, etc.
Check Reference
Deep dive into each check type
CLI Reference
All commands and options