AI and store security JavaScript

storeguardFree security scanner for vibe-coded online stores

storeguard scans a live store or its code for leaked API keys in JavaScript bundles, open Supabase tables, exposed .env and .git files, missing security headers and payment keys in the browser, the mistakes AI-built stores make most often.

npx npx vibe-storeguard https://your-store.com

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

How storeguard works

AI app builders make it possible to launch a store in a weekend. They also ship the same security mistakes again and again: OpenAI and Stripe keys sitting inside the JavaScript every visitor downloads, Supabase tables with Row Level Security switched off, and .env files anyone can open.

storeguard checks for exactly these problems. Point it at your live store and it reads your JavaScript bundles, lazy-loaded chunks and source maps for secret keys, tries the usual places a .env or .git folder leaks, and checks your security headers and cookies. If you own the store, add --authorized and it tests which database tables answer without a login. It reads at most one row and only ever prints table and column names, never your customers’ data.

Run it on your project folder before you deploy and it also finds secrets behind NEXT_PUBLIC_ and VITE_ variables, .env files missing from .gitignore, and Supabase migrations that create tables without RLS.

Every finding comes with a plain fix. Secret values are always masked.

Try it

npx vibe-storeguard https://your-store.com

Free and open source under the MIT license. Want this done for your store, or need help with the findings? Book a call.

Agent skill included

Let your AI coding agent run storeguard for you

The storeguard-audit skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/storeguard --skill storeguard-audit

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about storeguard

Is the Supabase anon key a secret?

No, it is meant to be public. It only becomes dangerous when a table has no Row Level Security, because then that public key can read the table. storeguard tests exactly that when you use --authorized.

Does storeguard send my code anywhere?

No. Folder scans run fully offline on your computer. URL scans only talk to the store you are scanning.

Can I scan any website?

The passive checks only read what a browser already downloads. The --authorized database test goes further, so only use it on stores you own or have written permission to test.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.