The problem. AI reverse-engineering agents (like REA) can read your shipped JS/Electron bundle — no source, without running the app — and rebuild a feature: modules, routes, IPC channels, strings. Anything that ships, ships.
REAShield. Run npm i -D reashield && npx reashield build and you get a hardened client plus a generated server skeleton. The real win isn't obfuscation (LLMs erode that) — it's relocation: the secret function body moves off-device, and the client ships only an opaque remote-call stub. The only truly unrecoverable code is code you don't ship.
Where Vercel comes in. The web adapter emits a standard Request → Response handler — the exact signature of a Vercel Function. So the relocated secret logic drops straight into /api as a serverless (or edge) function:
// api/__s.js — generated server skeletonexport default async function handler(request) { // real licenseCheck / pricing body lives HERE, never in the client bundle return Response.json(await handle(await request.json()));}Your secret never reaches the browser. A static agent reading the bundle finds a stub pointing at one endpoint and nothing to recover.
Don't trust the claim — reproduce it. It ships a harness that runs the real REA against your before/after build: npx reashield test --rea scores what REA actually recovers. Measured on the bundled sample (rea-agents 6.8.0, logs committed in evidence/): 6 protected tokens → 0 recovered. Also 0 against webcrack as a stress test.
Honest limits. Offline code can never be made unbreakable — if a machine runs it, it has it. REAShield defeats the automated attack and raises a human analyst's cost from minutes to days. Defensive-only, behavior-preserving, no phone-home. It hardens code you own and ship.
Also ships an MCP server (npx -y reashield-mcp) so Claude Code / Cursor can harden and measure a project from chat.
⭐ GitHub: https://github.com/HMAKT99/reashield 📦 npm: https://www.npmjs.com/package/reashield
Feedback on the threat model and the relocation boundary very welcome!