You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tech detection: include first-party JS bundle contents, and run tech-detect locally when the cloud service isn't used #1254
Technology detection only sees each page's HTML, response headers, script URLs and the first KB of inline scripts. It never sees the contents of external JavaScript bundles. Single-page apps built with Vite, Lovable, Bolt, Next.js and similar tools ship a nearly empty HTML shell, and the libraries live in /assets/index-*.js or /_next/static/chunks/*. So stacks such as Supabase (createClient(...), *.supabase.co), Firebase, Clerk and others are undercounted exactly where they're most common. The 184 script-content fingerprints in tech-detect can never match bundle code today.
The CLI already downloads these bundles for the secret rules, so the bytes are in hand during every audit.
Also: tech detection runs through the credited cloud service. Signed-out and --offline audits get no technologies, although @squirrelscan/tech-detect is an MIT package in this repo.
Expected
Tech detection receives each page's first-party script bodies, the first 64 KB of each bundle (capped per page and per audit), from the bytes the crawl already fetched. It never refetches.
Run @squirrelscan/tech-detect locally when the cloud service is not used (signed out or --offline), so every report has a technologies section.
A Vite SPA fixture whose HTML is an empty shell and whose bundle calls createClient("https://x.supabase.co", ...) is detected as Supabase
A Next.js fixture with Firebase SDK and Clerk code only in chunks detects both
Signed-out and --offline audits include technologies from local detection; signed-in audits keep using the cloud service, with identical results on the same input
Bundle bytes passed to detection are capped (64 KB per bundle, configurable), and detection on a 1 MB hostile bundle finishes within the per-page budget
No additional network requests are made for tech detection (verified by a request-count test)
Activity
fix(tech-detect): find vendor config mid-bundle and at the end, mangl…
fix(tech-detect): skip repeated-char placeholder refs, document bundl…
fix(tech-detect): cut bundle windows at code boundaries, hint on pk_t…
feat(tech-detect): read first-party script bundles, run detection loc…