PreShip Scan

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:

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.

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.

  1. Go to nodejs.org and download the version marked LTS (long-term support). PreShip Scan needs version 20 or newer.
  2. Run the installer and accept the defaults.
  3. 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
Terminal output of PreShip Scan: a box saying 'Fix before you ship' with 9 findings, then one block per finding with severity, rule id, plain-English title, location and a short explanation, and at the end the path of the full report.
The terminal summary (Free plan, example project with fake keys). The last lines show where the full report was saved.

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.

Top of the HTML report: project name, date, version and plan; the switch between 'For vibe coders' and 'For developers'; section links; the verdict with a traffic light; counts by severity; and the 'Fix these first' list.
The top of the report.
  1. Header: your project name, the date, the PreShip Scan version and your plan.
  2. View switch: "For vibe coders" or "For developers" (see the next section).
  3. 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.
  4. Counts by severity: critical (fix before anything else), high (fix before you ship), medium (fix soon), low and info.
  5. Fix these first: the three most serious problems in plain words. Click one to jump to it.
  6. 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).
  7. What was scanned: how many files were checked, what PreShip Scan does not check, and its limits.
  8. 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.

A finding card in the Free plan: severity Critical, rule SUPA002, title 'A database rule lets anyone change or delete data', the plain-English explanation, and a note that Pro shows the file and line, the fix and the AI prompt.
A finding whose details are part of Pro.

The report follows your system's light or dark setting and works on phones too.

The report in dark mode.
Dark mode.
The report on a phone-sized screen.
On a phone.

Two views: for vibe coders and for developers

Every finding is written twice, and one switch at the top changes all of them:

A finding in the 'For vibe coders' view with numbered steps, a copyable AI prompt and checks.
"For vibe coders".
The same finding in the 'For developers' view with CWE and OWASP tags, remediation code and references.
"For developers".

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

  1. Start with "Fix these first".
  2. 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.
  3. 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.
  4. 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

Command options
OptionWhat it does
--no-openSave the HTML report but do not open the browser.
--no-reportOnly print the terminal summary.
--verboseAlso print fix steps, code and checks in the terminal.
--audience developerStart in the developer view (terminal and HTML).
--format html --out report.htmlWrite the HTML report to a file you choose.
--format jsonMachine-readable output for scripts (contains both views' text).
--no-colorPlain 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

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.cmd instead of npx: npx.cmd preshipscan scan .
  • Or allow scripts for your user once: run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned, answer Y, 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 with cd and 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.