Getting started with PreShip Scan
You built an app with Lovable, Bolt, Cursor, Claude Code, v0 or a similar tool. Before you put it online, PreShip Scan checks your project folder for the security mistakes these tools often leave behind. This guide takes about ten minutes, and you do not need to be a security expert or a terminal expert.
Free version available now. PreShip Scan is on npm, so the commands below work as shown. Everything on this page describes version 0.3.0. Pro is built into the released version and unlocks with a licence key; online checkout opens after our payment provider's merchant review.
What it checks, and why
AI coding tools are fast, but they often take shortcuts that are fine for a demo and dangerous in a real app. PreShip Scan looks for the most common ones:
- Secrets and keys: API keys typed into code,
.envfiles that could end up on GitHub, secret keys sent to the browser, keys inside your built website files. - Database (Supabase / Firebase): tables without Row Level Security, rules that let anyone change data, the all-powerful
service_rolekey in browser code, Firebase rules open to everyone. - Payments (Stripe): webhooks that accept fake "payment completed" messages.
- Web (CORS): API settings that let any website use your visitors' logins.
Each of these can cost you money, leak your users' data or let people use paid features for free. The full list is in the rules table.
PreShip Scan is a quick check for common mistakes, not a full security audit. A clean report is a good sign, not a guarantee.
Get your project onto your computer
PreShip Scan checks a folder on your computer. If you built your app in the browser, download its code first. Menus in these tools change from time to time; if a name differs slightly, look for the closest match.
- Cursor, Claude Code, VS Code: your project is already on your computer. Go to step 1.
- Lovable: connect your project to GitHub (Lovable's GitHub integration). Then, on GitHub, open the repository and choose Code → Download ZIP, or clone it with
git clone. - Bolt: use the project's download or export option to get a ZIP file.
- v0: use the download option for the generated code to get a ZIP file.
- Another tool: if it can sync to GitHub, download the repository from GitHub as a ZIP. Otherwise look for "Download", "Export" or "Download code".
Unzip the file (on Windows: right-click → Extract All; on macOS: double-click it). The folder you get, the one with package.json in it, is the folder to scan.
Install Node.js
PreShip Scan runs on Node.js, the same program many AI-built apps use. If you have built or run your app on your own computer, you probably have it already.
- Go to nodejs.org and download the version marked LTS (long-term support). PreShip Scan needs version 20 or newer.
- Run the installer and accept the defaults.
- To check it worked, open a terminal (next step) and type:
node --version
You should see something like v22.12.0. Any number from 20 up is fine.
Open a terminal in your project folder
A terminal is a window where you type commands. You need one that is "inside" your project folder, the folder with your app's package.json.
Windows
Open the project folder in File Explorer, right-click an empty area and choose Open in Terminal. On Windows 10: hold Shift, right-click and choose Open PowerShell window here.
macOS
Open the Terminal app, type cd and a space, drag the project folder into the window and press Enter.
Linux
Right-click the folder in your file manager and choose Open in Terminal, or cd into it.
Using Cursor, VS Code or another editor? Open your project and choose Terminal → New Terminal. It already starts in the right folder.
Run the scan
Type this and press Enter. The dot means "this folder".
npx preshipscan scan .
The first time, npx asks whether to install the package: type y and press Enter. The scan takes a few seconds. You will see a short summary in the terminal, and the full report opens in your web browser.
Windows: if PowerShell says that npx.ps1 cannot be loaded because running scripts is disabled, see the first question at the end of this page.
You can also scan a folder by its path from anywhere:
Windows (PowerShell)
npx preshipscan scan C:\Users\you\projects\my-app
macOS
npx preshipscan scan ~/projects/my-app
Linux
npx preshipscan scan ~/projects/my-app
The browser did not open? Copy the path after Full report: and paste it into your browser's address bar, or double-click the file. Reports are saved in your user folder (on Windows %APPDATA%\preshipscan\reports, elsewhere ~/.config/preshipscan/reports), never inside your project, so they cannot be committed by accident.
Read the report
The report is a single file that works offline. It has the same parts every time.
- Header: your project name, the date, the PreShip Scan version and your plan.
- View switch: "For vibe coders" or "For developers" (see the next section).
- Verdict: a traffic light. Red "Fix before you ship" means there is at least one critical or high finding. Amber means "review" (or that some files could not be checked). Green means nothing was found by these checks.
- Counts by severity: critical (fix before anything else), high (fix before you ship), medium (fix soon), low and info.
- Fix these first: the three most serious problems in plain words. Click one to jump to it.
- Findings, grouped into Secrets and keys, Database, Payments and Web. Buttons let you hide severities, switch to a compact view, or print the report (choose "Save as PDF" in the print window to get a PDF).
- What was scanned: how many files were checked, what PreShip Scan does not check, and its limits.
- Glossary: short explanations of words like RLS, service_role key, webhook signature and CORS. Words used in a finding link straight to it.
Each finding
A finding card shows the severity, a plain-English title, what this means, what could happen, where it is (file and line), how to fix it, step by step, a prompt for your AI coding tool with a Copy button, and how to check it is fixed.
Free and Pro in the report
In the Free plan, the first three high or critical findings are shown in full. The others show their title, severity and what they mean, with a note that the location and fix are part of Pro.
The report follows your system's light or dark setting and works on phones too.
Two views: for vibe coders and for developers
Every finding is written twice, and one switch at the top changes all of them:
- For vibe coders (the default): everyday words, what could really happen, the exact clicks in the Supabase dashboard, Firebase console, Stripe dashboard or your host's settings (Vercel, Netlify, Lovable, Bolt), a ready prompt to paste into your AI coding tool, and how to check the fix worked.
- For developers: short and technical. Rule ID, CWE and OWASP pointers, location and evidence, exact remediation with code, SQL or commands, verification steps and references.
The report remembers your choice in that browser. To open reports in the developer view from the start, add --audience developer. Printing or saving as PDF uses the view you selected. If scripts are turned off in your browser, both views are shown one after the other.
Fix and scan again
- Start with "Fix these first".
- Follow the steps in the card. For code changes, click Copy prompt and paste it into Lovable, Bolt, Cursor, Claude Code or v0. Read what the AI changed before you deploy.
- If a key may have been exposed, always make a new key in the provider's dashboard and switch off the old one. Deleting it from your code is not enough.
- Run
npx preshipscan scan .again. Fixed findings disappear.
Findings marked heuristic are based on patterns and can be false alarms. Look at the file and line before you change anything.
Useful options
| Option | What it does |
|---|---|
--no-open | Save the HTML report but do not open the browser. |
--no-report | Only print the terminal summary. |
--verbose | Also print fix steps, code and checks in the terminal. |
--audience developer | Start in the developer view (terminal and HTML). |
--format html --out report.html | Write the HTML report to a file you choose. |
--format json | Machine-readable output for scripts (contains both views' text). |
--no-color | Plain terminal output without colours (NO_COLOR works too). |
Run npx preshipscan --help for the full list.
Activate Pro
Online checkout for Pro opens after our payment provider's merchant review. After buying it, you see your licence key once on the confirmation page. Save it, then run:
npx preshipscan activate PSS1.your-key-here
The key is checked on your computer and stored in your user folder. From then on every scan shows full details. Check the status with npx preshipscan license; remove the key with npx preshipscan deactivate.
Run it in CI (Pro)
With --ci, PreShip Scan exits with code 1 when it finds a high or critical problem, so your pipeline stops before a risky deploy. In CI it never opens a browser. Store your key as a secret named PRESHIPSCAN_LICENSE. Example for GitHub Actions:
name: PreShip Scan
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npx preshipscan scan . --ci
env:
PRESHIPSCAN_LICENSE: ${{ secrets.PRESHIPSCAN_LICENSE }}
Privacy
- PreShip Scan runs 100% on your computer. No network calls, no telemetry, no account, no upload of your code.
- It reads files only. It never runs, imports or builds your code. Besides your local
git(read-only), the only program it starts is your default browser, through your system's opener, to show the report (--no-openturns that off). - In a terminal, it saves the HTML report in your user folder, never in your project (
--no-reportturns that off). The report remembers your chosen view in your browser'slocalStorage(keypreshipscan-view). - Reports never copy your code. A key is shown only as its type and a 4-character prefix, for example
sk_l************. - The HTML report loads nothing from the internet. Links to documentation open only when you click them.
Questions
Windows: "npx.ps1 cannot be loaded because running scripts is disabled on this system"
PowerShell, the terminal Windows opens by default, blocks script files unless you allow them, and npx starts through one. Use any one of these:
- Type
npx.cmdinstead ofnpx:npx.cmd preshipscan scan . - Or allow scripts for your user once: run
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned, answerY, then run the scan again. - Or use Command Prompt instead of PowerShell: press the Windows key, type
cmd, press Enter, go to your project folder withcdand run the same command.
"npx" or "node" is not recognized
Node.js is not installed, or the terminal was opened before you installed it. Install the LTS version from nodejs.org, then close and reopen the terminal.
It found nothing. Is my app secure?
Not necessarily. PreShip Scan checks a short list of common mistakes in your files. It does not test your live site, your login flows or your dependencies (use npm audit for those), and it cannot see settings that exist only in dashboards.
Where are my reports?
In your user folder: %APPDATA%\preshipscan\reports on Windows, ~/.config/preshipscan/reports on macOS and Linux (or $XDG_CONFIG_HOME/preshipscan/reports). The path is printed after every scan. You can delete old reports at any time.
Can I share the report?
Yes, it is one file. It contains file names, line numbers and short descriptions of what was found, but never your code or full keys. Still, it describes weaknesses in your app, so share it only with people you trust.
The AI tool changed more than I expected
Undo the change and paste the prompt again, adding "change only what is needed for this fix". Always review AI changes before you deploy.