Hi all š Sharing an open-source project that leans on Vercel Functions as its strongest defense layer.
The problem
AI reverse-engineering agents (like REA) can read your shipped JS/Electron bundle ā no source, no running the app ā and rebuild a feature: modules, routes, IPC channels, strings. Anything that ships, ships.
REAShield
npm i -D reashield && npx reashield build produces 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 itIt ships a harness that runs the real REA against your before/after build:npx reashield test --rea # scores what REA actually recoversMeasured 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 limitsOffline 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/reashieldFeedback on the threat model and the relocation boundary very welcome!