Scans

Lair reads your app's code and tells you what to fix, in plain words.

How a scan works

  1. 1Pick an appOne of the apps you host on Lair.
  2. 2Pick a scan and a levelDesign, Security, Performance or Mobile; Quick, Polished or Deep.
  3. 3Get the fixesAbout a minute later, up to two for big apps: each problem, the exact line, and a prompt to paste into your AI tool.

Three levels

  • Quick

    A first look. The things most likely to bite, found fast.

    5 to 20 credits, by app size

  • Polished

    A fuller pass before you share the link.

    10 to 30 credits, by app size

  • Deep

    Everything we look at.

    15 to 50 credits, by app size

What you get

Each problem the scan finds comes back as one block: what the code does, the exact line, what goes wrong there, and a fix.

When the fix is one paste, the prompt is written for you. Copy it into the AI tool that built the app.

When it is bigger than a paste, you get numbered steps, with the safe thing to do today first.

OpenAI key and premium password sit in the page

Secret keys

budget-buddy.html, line 89. Also line 243.

const OPENAI_KEY = 'sk-proj-JrZS…';

Line 89 stores a secret OpenAI key in OPENAI_KEY, and aiTip on line 195 sends it from the visitor's browser to OpenAI. Anyone who opens the page can read the key and spend on your account.

Paste this into your AI tool

Remove the OpenAI key from budget-buddy.html. Make aiTip call a small server function that holds the key instead, and have the page call that function. Also remove the premium password on line 243 and…

Why this matters

Anyone who opens the page can see the key, use it, and run up a bill on your account.

Questions

Who can run a scan?
Pro and Max members. A scan costs credits, and both get credits every month.
What does the scan read?
The code files of one of your hosted apps: pages, styles and scripts. It does not run the app or see your data.
Does it fix the app for me?
No. It tells you what to fix and writes the prompt. You paste the prompt into the tool that built the app, then upload the new version.
How long does it take?
About a minute, up to two for big apps. You can leave the page.

Scan your first app