infrastructure tier

infrastructure-web-tech-detector

Tech-stack/CMS fingerprinting with confidence-scored evidence, implementing foundation-web-analysis::Analyzer -- CMS, analytics, chat widget, booking system, JS framework, marketing, and form-tool detection from fetched HTML + response headers

Tech-stack/CMS fingerprinting with confidence-scored evidence, implementing foundation-web-analysis::Analyzer -- CMS, analytics, chat widget, booking system, JS framework, marketing, and form-tool detection from fetched HTML + response headers

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/web-tech-detector
Edition2021
Targetsinfrastructure_web_tech_detector
Public items42 across 2 modules
Tests64

What it is for

# infrastructure-web-tech-detector

Tech-stack/CMS fingerprinting analyzer implementing foundation_web_analysis::Analyzer. Fetches a page and matches its HTML plus Server/X-Powered-By response headers against known signatures for CMS platforms, JS frameworks, analytics tools, chat widgets, booking systems, marketing tools, and form tools -- each detection carrying a DetectionConfidence (High/Medium/Low) and, for CMS, the evidence strings that produced it. An undetected CMS is always flagged for manual review via ManualReviewItem.

Lifted from plumber/src/analyzers/tech_detector.rs and plumber/src/models/technology_stack.rs (sprint 3.46, wave 2 -- see CHANGELOG.md for provenance).

Capabilities

detector (other)

Technology-stack / CMS fingerprinting analyzer.

Item
pub const DEFAULT_MAX_BYTES: usize

TechDetector

Technology-stack / CMS fingerprinting analyzer.

Item
pub struct TechDetector
TechDetector :: fn new() -> std::result::Result <Self, infrastructure_fetcher::SafeHttpError>
TechDetector :: fn with_max_bytes(mut self, max_bytes : usize) -> Self
TechDetector :: fn default() -> Self
TechDetector :: fn name(& self) -> & 'static str
TechDetector :: async fn analyze(& self, organization_id : Uuid, website_url : & str) -> Result <AnalysisResult>
TechDetector :: fn requires_link_graph(& self) -> bool
TechDetector :: fn cache_ttl_days(& self) -> u32

AnalyticsSignatures

Technology-stack data model.

Item
pub struct AnalyticsSignatures
AnalyticsSignatures :: fn google_analytics() -> Vec <& 'static str>
AnalyticsSignatures :: fn google_tag_manager() -> Vec <& 'static str>
AnalyticsSignatures :: fn facebook_pixel() -> Vec <& 'static str>
AnalyticsSignatures :: fn hotjar() -> Vec <& 'static str>

AnalyticsTool

Technology-stack data model.

Item
pub struct AnalyticsTool

ChatSignatures

Technology-stack data model.

Item
pub struct ChatSignatures
ChatSignatures :: fn intercom() -> Vec <& 'static str>
ChatSignatures :: fn drift() -> Vec <& 'static str>
ChatSignatures :: fn zendesk() -> Vec <& 'static str>
ChatSignatures :: fn livechat() -> Vec <& 'static str>
ChatSignatures :: fn tawk() -> Vec <& 'static str>
ChatSignatures :: fn hubspot() -> Vec <& 'static str>

ChatWidget

Technology-stack data model.

Item
pub struct ChatWidget

CmsDetection

Technology-stack data model.

Item
pub struct CmsDetection

CmsSignatures

Technology-stack data model.

Item
pub struct CmsSignatures
CmsSignatures :: fn wordpress() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn wix() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn squarespace() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn shopify() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn godaddy_website_builder() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn weebly() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn joomla() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn drupal() -> Vec <(& 'static str, & 'static str)>

DetectionConfidence

Technology-stack data model.

Item
pub enum DetectionConfidence
DetectionConfidence :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

DetectionEvidence

Technology-stack data model.

Item
pub struct DetectionEvidence

EvidenceType

Technology-stack data model.

Item
pub enum EvidenceType

TechnologyStack

Technology-stack data model.

Item
pub struct TechnologyStack
TechnologyStack :: fn default() -> Self
TechnologyStack :: fn new(organization_id : Uuid) -> Self
TechnologyStack :: fn add_evidence(& mut self, evidence : DetectionEvidence)
TechnologyStack :: fn uses(& self, tech_name : & str) -> bool

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

infrastructure_web_tech_detector

flowchart TD
  n_infrastructure_web_tech_detector["infrastructure_web_tech_detector"]
  n_infrastructure_web_tech_detector --> n_detector["detector"]
  n_infrastructure_web_tech_detector --> n_models["models"]

Public surface

`detector`

ItemWhat it is
pub const DEFAULT_MAX_BYTES: usizeResponse body byte cap for a fetched page (Gate 1.5.6 input limit).
pub struct TechDetectorAnalyzer for detecting technology stack (CMS, frameworks, analytics, chat widgets, booking systems, marketing tools, form tools)
TechDetector :: fn new() -> std::result::Result <Self, infrastructure_fetcher::SafeHttpError>Build a detector with the default byte cap (DEFAULT_MAX_BYTES) and timeout (infrastructure_fetcher::safe_http::DEFAULT_TIMEOUT, 30s).
TechDetector :: fn with_max_bytes(mut self, max_bytes : usize) -> SelfOverride the response body byte cap.
TechDetector :: fn default() -> Self# Panics Panics if the underlying SafeHttpClient cannot be built (TLS backend init failure) -- matches the source's expect-on-construction posture (Client::builder()...expect("Failed to build HTTP client")).
TechDetector :: fn name(& self) -> & 'static str
TechDetector :: async fn analyze(& self, organization_id : Uuid, website_url : & str) -> Result <AnalysisResult>
TechDetector :: fn requires_link_graph(& self) -> bool
TechDetector :: fn cache_ttl_days(& self) -> u32

`models`

ItemWhat it is
pub struct TechnologyStackDetected technology stack for an organization's website.
pub struct CmsDetectionA detected CMS, with the confidence level and the evidence strings that produced it.
pub enum DetectionConfidenceHow certain a detection is, from the strength/count of matching signals.
DetectionConfidence :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result
pub struct AnalyticsTool
pub struct ChatWidget
pub struct DetectionEvidenceOne piece of raw evidence behind a detection -- carried in the model so a future detector pass can attach the specific signal it matched, not just the summary conclusion
pub enum EvidenceType
TechnologyStack :: fn default() -> Self
TechnologyStack :: fn new(organization_id : Uuid) -> Self
TechnologyStack :: fn add_evidence(& mut self, evidence : DetectionEvidence)
TechnologyStack :: fn uses(& self, tech_name : & str) -> boolCheck whether a named technology was detected anywhere in the stack (CMS name, JS frameworks, analytics tools, or chat widgets), matched case-insensitively as a substring.
pub struct CmsSignaturesReference catalog of common CMS signatures, as (location, pattern) pairs
CmsSignatures :: fn wordpress() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn wix() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn squarespace() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn shopify() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn godaddy_website_builder() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn weebly() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn joomla() -> Vec <(& 'static str, & 'static str)>
CmsSignatures :: fn drupal() -> Vec <(& 'static str, & 'static str)>
pub struct AnalyticsSignaturesReference catalog of common analytics-tool signatures
AnalyticsSignatures :: fn google_analytics() -> Vec <& 'static str>
AnalyticsSignatures :: fn google_tag_manager() -> Vec <& 'static str>
AnalyticsSignatures :: fn facebook_pixel() -> Vec <& 'static str>
AnalyticsSignatures :: fn hotjar() -> Vec <& 'static str>
pub struct ChatSignaturesReference catalog of common chat-widget signatures
ChatSignatures :: fn intercom() -> Vec <& 'static str>
ChatSignatures :: fn drift() -> Vec <& 'static str>
ChatSignatures :: fn zendesk() -> Vec <& 'static str>
ChatSignatures :: fn livechat() -> Vec <& 'static str>
ChatSignatures :: fn tawk() -> Vec <& 'static str>
ChatSignatures :: fn hubspot() -> Vec <& 'static str>

Re-exports. Exported here, defined elsewhere.

ExportDefined in
{AnalyticsSignatures,AnalyticsTool,ChatSignatures,ChatWidget,CmsDetection,CmsSignatures,DetectionConfidence,DetectionEvidence,EvidenceType,TechnologyStack,}models::{AnalyticsSignatures,AnalyticsTool,ChatSignatures,ChatWidget,CmsDetection,CmsSignatures,DetectionConfidence,DetectionEvidence,EvidenceType,TechnologyStack,}
{TechDetector,DEFAULT_MAX_BYTES}detector::{TechDetector,DEFAULT_MAX_BYTES}

Boundary

Reaches into foundation.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/infrastructure/web-tech-detector
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_infrastructure["infrastructure"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-web-analysis`foundationnoalways
`infrastructure-fetcher`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
chrono^0.4serdenoalways
regex^1noalways
reqwest^0.12rustls-tlsnoalways
scraper^0.20noalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
url^2noalways
uuid^1v4, v7, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1full, full, test-utilnoalways
tokio-test^0.4noalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["infrastructure-web-tech-detector"]
  SELF -->|runtime| n_foundation_web_analysis["foundation-web-analysis"]
  SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libinfrastructure_web_tech_detector`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimenone detected
database accessnone detected
network I/Oyes
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests64
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
detector200
models1000

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc1342
Public modules with a //! block22
pie showData
    title Public items with rustdoc
    "Documented" : 13
    "No rustdoc detected" : 29

Metrics

MetricValue
Rust source files3
Source lines1530
Code lines1183
Public API items42
Public modules2
Tests64
Examples0
Cargo features0
Direct runtime dependencies12
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "constant" : 1
    "enum" : 2
    "method" : 30
    "struct" : 9
pie showData
    title Rust source composition
    "Code" : 1183
    "Blank or comment" : 347

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All infrastructure · Manual