Skip to content

Latest commit

 

History

History
92 lines (67 loc) · 3.41 KB

stack.md

File metadata and controls

92 lines (67 loc) · 3.41 KB

Stack detection

Flightcheck fingerprints the technology stack of a crawled site for handover docs and tooling. Results appear in analysis.stack in *-report.json and under Stack in the Markdown report.

Detection uses curated flightcheck rules in src/crawler/stackDetect.ts — not the full Wappalyzer / webappanalyzer database. Rules only fire on strong signals (script URLs, distinctive HTML markers, response headers, DNS). This avoids false positives from loose substring matches.

Categories

Category Examples
Platform PHP, Node.js, Ruby on Rails, Django, ASP.NET
Framework Next.js, Nuxt, Vue, Angular, Astro, Gatsby, Remix, SvelteKit
CMS WordPress, Sanity, Contentful, Storyblok, Shopify, Drupal, Webflow, Prismic
Search Algolia, Meilisearch, Typesense
Hosting Vercel, Netlify
CDN Cloudflare, AWS CloudFront

Tracking (Google Tag Manager, Google Analytics (GA4), Google Analytics (Universal), Facebook Pixel, Matomo, Plausible) is detected separately by the tracking crawl group and shown under Tracking (flightcheck crawl) in the stack section.

Signal sources

Source When collected Module
HTML crawl stack group (default on) detectStackFromHtml()
Response headers security-headers check detectStackFromHeaders()
DNS records dns check detectStackFromDns()
Tracking IDs tracking crawl group extractTracking() in src/crawler/tracking.ts

Without a headless browser, stack detection is limited to static HTML and infrastructure signals. Late-loaded scripts (GTM after consent, client-only frameworks) may be missed unless they appear in the initial HTML.

Crawl group

The stack group runs during crawl by default:

pnpm run flightcheck -- https://example.com --skip stack

Per-page detections are stored as stack.detections on each crawl record. Detections are tagged with detector: "flightcheck-v1" so older crawl JSON from the webappanalyzer era is ignored during analyze.

Analyze output

In *-report.json, stack detections live under analysis.stack (name, categories, confidence, evidence, pageCount). The Markdown report renders them as:

### Stack

- **Next.js** (JavaScript frameworks, high) — Next.js runtime markers in HTML
- **Vercel** (Hosting, high) — header: x-vercel-id

Tracking IDs from the crawl are still aggregated in the stack profile for tooling; the human Markdown report focuses on stack detections in the At a glance section.

Run with infra checks for the fullest picture:

pnpm run flightcheck -- https://example.com --checks crawl,security-headers,dns,robots-txt,analyze --parallel

Architecture

src/crawler/stackDetect.ts   (curated fingerprint rules)
        ↓
src/crawler/stack.ts         (re-exports detect helpers)
        ↓
src/crawler/runCrawler.ts    (per-page detect during crawl)
        ↓
src/analyze/stack.ts         (aggregate site-wide + analyze report)

Adding fingerprints

Add a rule to HTML_RULES, HEADER_RULES, or DNS_RULES in src/crawler/stackDetect.ts. Each rule must match on a specific signal — never run loose patterns against the full HTML document.

Use IMPLIED for safe parent technology inference (e.g. Next.js → Node.js). Use EXCLUDES to suppress redundant detections (e.g. Next.js excludes generic React).

Add tests in src/crawler/stackDetect.test.ts.