This directory contains runnable examples for evaluating Pompelmi in real application flows.
demo/: Small end-to-end upload demo with a browser form and JSON scan response.
express/production.ts: Express upload endpoint with fail-closed policy and production scanner composition.quarantine-workflow.ts: End-to-end quarantine and review flow usingpompelmi/quarantineandpompelmi/audit.stream-scan-example.ts: Streaming-oriented scan usage pattern.remote-yara-server.ts: Remote YARA integration pattern.cli-presets-demo.mjs: Policy presets in CLI workflows.
express-minimal/express-multer-presets/nestjs-app/next-app-router/next-demo/nextjs-presets-demo/nuxt-nitro/
- Run
scan-one-file.tsto verify local setup. - Run
express/production.tsto validate endpoint behavior. - Run
quarantine-workflow.tsto evaluate review/approval operations. - Adapt policy values to your real upload profile.
Most TypeScript examples can be run with:
npx tsx examples/<example-file>.tsFor framework app folders, check each folder's own README for setup commands.