Project · Open source · MIT · npm package

@deepwissen/preflight-core

The shared, zero-dependency TypeScript engine powering both tools. Secret, trap-file, instruction-integrity, and MCP-config scanners you can build on.

Install npm i @deepwissen/preflight-core

Part of the AI Preflight family — one detection engine, two surfaces: a VS Code extension, a CLI, and this shared engine they’re both built on.

What it is — The shared engine both tools are built on — extracted so one detection codebase serves many frontends.

What it does

  • A composable pipeline of analyzers — secret scanner (4-layer: provider prefixes, keyword, Shannon entropy, connection strings + credential lifetime), trap-file scanner, instruction-integrity scanner, MCP-config scanner, plus token/budget/risk/waste analysis.
  • Pure TypeScript, zero platform dependencies — no vscode, no Node-only APIs in the core — so it runs in an editor, a CLI, or anywhere else.
  • Extensively tested — hundreds of unit tests, adversarial corpora, false-positive guards.

Install

Add it to your project:

npm i @deepwissen/preflight-core      # npm
pnpm add @deepwissen/preflight-core   # pnpm
yarn add @deepwissen/preflight-core   # yarn

Then import the analyzers you need:

import { scanSecrets } from '@deepwissen/preflight-core';

Uninstall

npm uninstall @deepwissen/preflight-core

Zero dependencies, so removing it leaves nothing else behind.

Tech: TypeScript (ESM + types), zero dependencies.

← All projects