Skip to main content

stygian_graph/
adapters.rs

1//! Adapter implementations - infrastructure concerns
2//!
3//! Concrete implementations of port traits:
4//! - HTTP client with anti-bot features
5//! - AI providers (Claude, GPT, Gemini, Ollama, Copilot)
6//! - Storage backends
7//! - Cache backends
8
9/// HTTP scraping adapter with anti-bot capabilities
10pub mod http;
11
12/// AI provider adapters
13pub mod ai;
14
15/// Storage adapters (file, S3, database)
16pub mod storage;
17
18/// Cache adapters (memory, Redis)
19pub mod cache;
20
21/// Resilience adapters (circuit breaker, retry)
22pub mod resilience;
23
24/// No-op service for testing
25pub mod noop;
26
27/// JavaScript rendering adapter (headless browser via stygian-browser)
28#[cfg(feature = "browser")]
29pub mod browser;
30
31/// Multi-modal content extraction (CSV, JSON, XML, images, PDFs)
32pub mod multimodal;
33
34/// Mock AI provider for testing
35pub mod mock_ai;
36
37/// GraphQL API adapter — generic ScrapingService for any GraphQL endpoint
38pub mod graphql;
39
40/// Proactive cost-throttle management for GraphQL APIs
41pub mod graphql_throttle;
42
43/// Distributed work queue and executor adapters
44pub mod distributed;
45
46/// GraphQL target plugin implementations (one file per API target)
47pub mod graphql_plugins;
48
49/// WASM plugin adapter (feature = "wasm-plugins")
50pub mod wasm_plugin;
51
52/// Output format helpers — CSV, JSONL, JSON
53pub mod output_format;