Skip to content

About

Is your AI-built app safe to launch? A grade from A to F for Lovable, Bolt, v0 and Replit apps, with a fix prompt for every problem.

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Greenlit

Is your AI-built app safe to launch? Greenlit grades a deployed app from A to F for what a stranger can use against it. It explains each problem in plain words and gives you a prompt to paste back into Lovable, Bolt, v0, Replit or Emergent that fixes it. Run it again after the fix, and it shows what got fixed.

Greenlit checks a Lovable app: grade F with a leaked Stripe key and a Supabase service_role key in the page, a fix prompt to paste back, then grade A

In the browser: greenlit.priberry.com. Paste your app's address. Nothing to install.

On your computer:

npx greenlitlab myapp.lovable.app

Runs on Mac, Windows and Linux (Node 20+).

What it checks

Check Where it runs
Secret keys in the JavaScript every visitor downloads: 32 kinds, including Stripe, OpenAI, Anthropic, OpenRouter, Gemini, AWS, GitHub, Supabase secret keys, Telegram bots, private keys and service-account JSON everywhere
A Supabase service_role key in the browser everywhere
Source maps that hand out your source code everywhere
Clickjacking (no frame-ancestors or X-Frame-Options) and no Content-Security-Policy everywhere
Supabase tables anyone can read with the public key your own app: --mine
Supabase storage buckets that list their files to anyone your own app: --mine
Supabase sign-up open to anyone without email confirmation your own app: --mine
A public .env file or .git folder your own app: --mine
Firebase Realtime Database and Firestore open to everyone your own app: --mine

Greenlit reads all of the app's own scripts, including lazy-loaded pages and the app's own CDN, and tells you if a check ran out of room or couldn't read the code. Grades follow the danger: one critical problem is an F whatever else is right, one high problem means C at best, and small things such as missing headers take 20 points at most. What your host controls and you can't change is shown but costs nothing.

The database checks run on your own computer. (The website version is paused until it can confirm you control the database itself, not only the web page.)

Supabase no longer lists a project's tables for the public key, so the database check tests the tables your app's code names, tells you how many it tested, and says so plainly when it could test none.

The owner-only checks ask for a row count (Supabase), one file or document name (storage, Firebase), or the sign-up settings, never for data, and never write anything. They run only when you say the app is yours, because testing someone else's database without permission isn't OK.

Launch readiness, beyond leaks

Check Where it runs
A page that loads from a developer-only address, plain-http content, Stripe in test mode, a default title, "noindex", AI calls from the browser, a test email sender, unlocked sign-in cookies everywhere
Plain http that doesn't redirect to https; an app that lets any website read a signed-in visitor's data everywhere
No DMARC record or a broken SPF record on your own domain everywhere, custom domains only
Personal columns (email, phone, password…) in tables strangers can read; backend functions listed for review your own app: --mine
Rules that are too loose, tables strangers can change: Supabase's Security Advisor in plain words advisor, with your advisor results
Always-true policies (and read rules that hand out emails, phones or addresses), tables without Row Level Security, unverified payment webhooks, secrets behind a public prefix scan, on your project's files
Backups, spending limits, a separate test database, outage alerts questions: only you know, never graded

Only what Greenlit confirmed moves the grade. What it couldn't see is said out loud, and what only you know is asked. Greenlit never signs in, never reads your users' data and never writes to your database.

Commands

npx greenlitlab <url>                 # grade an app
npx greenlitlab <url> --mine          # your own app: database checks too
npx greenlitlab <url> --prompt 1      # print fix prompt 1 only (pipe it to pbcopy)
npx greenlitlab <url> --prompt all    # every fix in one prompt, worst first
npx greenlitlab <url> --json          # the full result
npx greenlitlab <url> --fail-on high  # exit 1 if anything this serious is found, for CI
npx greenlitlab questions             # seven things only you know, with a fix for each gap
npx greenlitlab scan [folder]         # read your project's files before you deploy
npx greenlitlab scan . --fail-on high # for CI: see the exit codes below
npx greenlitlab advisor results.json  # Supabase's Security Advisor, in plain words

With --fail-on <level>, scan exits with 1 when it finds anything at that level or above, and with 3 when it couldn't check everything (a file that matters couldn't be read, or too many files). A 3 is never a pass. Otherwise it exits with 0.

scan reads migrations statement by statement, in order. SQL run inside a DO $$ … $$ block or built for EXECUTE isn't read, so a policy created, dropped or changed that way doesn't count (for the always-true policy checks and the read rules that hand out contact columns alike). Rules changed in the Supabase dashboard never show up in files: check the live app with --mine.

The last result for each app is kept in ~/.greenlit/sites/ (grade, finding ids and titles only, never keys) so the next run can show what changed.

In Claude, Cursor, VS Code and other agents

Add Greenlit as an MCP server:

{ "mcpServers": { "greenlit": { "command": "npx", "args": ["-y", "greenlitlab@0.6.1", "mcp"] } } }

Then ask your agent to check the app it just deployed and apply the fixes. The greenlit_check tool returns the grade, every finding and its fix prompt.

Made by Priberry

Greenlit comes from Priberry, the crash-test lab for AI agents. Priberry makes six free, open-source tools:

  • Launch Blockers: the leaks AI-built apps ship, checked in your code. npx launch-blockers check
  • Rolelock: can your users raise their own role? Finds two holes in Supabase apps: signed-in users who can raise their own role, and edge functions that use the secret key with an id from the request. npx rolelock@0.1.1 ./my-app
  • Greenlit: what a stranger can see in your live app. npx greenlitlab yourapp.com
  • Crumple: a crash-test lab for AI coding agents. npx crumplelab attack
  • Tare: where your coding agent's tokens go. npx tarelab
  • MarkOS: an AI exec team on your own computer. git clone https://github.com/priberry-data/markos && cd markos && ./install.sh

Apache-2.0. Found a problem? Open an issue, or see SECURITY.md.

About

Is your AI-built app safe to launch? A grade from A to F for Lovable, Bolt, v0 and Replit apps, with a fix prompt for every problem.

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages