How qeeqbox/social-analyzer works
Purpose and entry points
Social Analyzer is a local OSINT tool that searches and analyzes possible social-media/web profiles for one or more usernames. It supports a Node.js CLI/web app and a Python CLI/package interface. Primary entry points are app.js, app.py, and the browser UI at public/app.html; the Node web app is served on port 9005 per the README.
Orchestration and execution modes
The core Node orchestration layer selects scan mode, applies user options (site, country, type, ranking, filters, workers, timeout), and aggregates profile results. modules/engine.js is the central execution boundary; app.js is the Node command/server entry point. The Python implementation provides a parallel user-facing interface through app.py, packaged by setup.py.
Site catalog and target selection
Search scope is data-driven. The site catalog contains profile URL patterns and site metadata used to select targets by explicit names, country, category/type, or top ranking. Core datasets are data/sites.json, data/countries.json, and data/dict.json. This is the boundary between static target intelligence and active network scanning.
Profile discovery pipeline
Discovery is split into scan strategies:
• Fast HTTP-oriented profile checks: modules/fast-scan.js
• Slower browser/WebDriver-based checks and richer evidence collection: modules/slow-scan.js
• Provider-specific detection paths, including Google/Facebook/Gmail cases: modules/special-scan.js
These stages evaluate candidate profile URLs and produce detection state/rating rather than treating HTTP success alone as proof. They may use proxies, custom headers, concurrency controls, retries, and configurable timeouts.
Analysis, scoring, and enrichment
Username inputs can be expanded and evaluated through string/name analysis before or alongside scanning. modules/string-analysis.js and modules/name-analysis.js support permutations, name origins/similarity, language/common-word signals, and limited age-oriented analysis. Scan outcomes are normalized into ratings and profile statistics through modules/stats.js; callers can then filter good/maybe/bad and detected/unknown/failed results.
Extraction, metadata, and visualization
For found or requested profiles, extraction collects profile text, URLs, patterns, and metadata. modules/extraction.js is the enrichment boundary, while modules/visualize.js prepares data for metadata/pattern visualization. The UI surface includes public/app.html for investigation controls/results and public/graph.html for force-directed graph output.
External dependencies and runtime infrastructure
Node.js is the principal web/CLI runtime (package.json), with Python support declared in requirements.txt and setup.py. Active scans depend on external websites and may use Selenium WebDriver with installed Firefox/Chrome; OCR/screenshot capabilities require browser and Tesseract-related dependencies. Optional external search integrations include Google and DuckDuckGo APIs, represented by modules/external-apis.js. Container deployment is defined by Dockerfile and docker-compose.yml; compose can provide grid-oriented faster checking. Output artifacts can be written to logs/ and JSON consumed by CLI, integrations, or the local UI.
Main entry points: engine.js Scan orchestrator · stats.js Result scoring · app.js Node CLI & web server · fast-scan.js Fast profile checks
Components 21
Interfaces
- Node CLI & web server · Serves the local web app on port 9005.
app.js - Investigation UI
public/app.html - Graph viewer
public/graph.html - Python CLI/package · Parallel user-facing interface.
app.py
Node execution
- Scan orchestrator · Applies options, selects modes, and aggregates results.
modules/engine.js - Node runtime
package.json - Container deployment · Compose can provide grid-oriented faster checking.
docker-compose.yml
Target intelligence
- Site catalog · Profile URL patterns and site metadata.
data/sites.json - Country data
data/countries.json - Language dictionary
data/dict.json
Discovery pipeline
- Fast profile checks
modules/fast-scan.js - Browser profile checks · Collects richer evidence through browser checks.
modules/slow-scan.js - Provider-specific checks · Handles Google, Facebook, and Gmail cases.
modules/special-scan.js - Search integrations · Optional Google and DuckDuckGo integrations.
modules/external-apis.js - External websites
Analysis & output
- Username analysis · Builds and evaluates username permutations.
modules/string-analysis.js - Name analysis · Provides origin, similarity, and language signals.
modules/name-analysis.js - Result scoring · Produces ratings, profile statistics, and filter states.
modules/stats.js - Profile enrichment · Collects text, URLs, patterns, and metadata.
modules/extraction.js - Visualization prep
modules/visualize.js - Scan artifacts · Logs and JSON results for CLI, integrations, and UI.
Connections 26
- Investigation UI → Node CLI & web server: requests scans
- Node CLI & web server → Scan orchestrator: invokes
- Python CLI/package → Scan orchestrator: parallel scan interface
- Node runtime → Node CLI & web server: runs
- Container deployment → Node CLI & web server: deploys
- Scan orchestrator → Site catalog: selects targets
- Scan orchestrator → Country data: filters by country
- Scan orchestrator → Username analysis: expands inputs
- Username analysis → Language dictionary: uses language signals
- Scan orchestrator → Name analysis: evaluates names
- Scan orchestrator → Fast profile checks: fast mode
- Scan orchestrator → Browser profile checks: slow mode
- Scan orchestrator → Provider-specific checks: provider paths
- Scan orchestrator → Search integrations: optional search
- Fast profile checks → External websites: checks profiles
- Browser profile checks → External websites: checks profiles
- Provider-specific checks → External websites: checks providers
- Search integrations → External websites: queries
- Fast profile checks → Result scoring: detection outcomes
- Browser profile checks → Result scoring: evidence and outcomes
- Provider-specific checks → Result scoring: detection outcomes
- Result scoring → Profile enrichment: found profiles
- Profile enrichment → Visualization prep: metadata and patterns
- Visualization prep → Graph viewer: graph data
- Result scoring → Investigation UI: filtered results
- Result scoring → Scan artifacts: writes results