How elm1nst3r/ghost-osint-crm works
GHOST is a self-hosted OSINT investigation CRM. Investigators sign in, enter a project, and manage people, cases, businesses, locations, networks, assets, wallets, and transactions; they can then search, map, visualize relationships, and produce reports. Projects provide the documented data-isolation and access-control boundary. The graph emphasizes the frontend-to-API workflow and major product capabilities; some feature links are based on README documentation because their implementation excerpts were not provided.
Main entry points: server.js HTTP server · App.js Application shell · database.js PostgreSQL · api.js API client
Components 27
Investigator interface
- Application shell
frontend/src/App.js - Project context
frontend/src/contexts/ProjectContext.js - API client
frontend/src/utils/api.js - Record management
frontend/src/components/PeopleList.js - Advanced search
frontend/src/components/AdvancedSearch.js - Relationship manager
frontend/src/components/visualization/RelationshipManager.js - Relationship diagram
frontend/src/components/RelationshipDiagram.js - Global map
frontend/src/components/GlobalMap.js - Reports
frontend/src/components/ReportGenerator.js
API and access
- HTTP server
backend/server.js - Authentication
backend/routes/auth.js - Project access control
backend/utils/projectAccess.js
Investigation records
- People and travel
backend/routes/people.js - Cases and tasks
backend/routes/cases.js - Projects and membership
backend/routes/projects.js - Business intelligence
backend/routes/businesses.js - Assets and properties
backend/routes/assets.js - Transactions and ledger
backend/routes/transactions.js - Crypto wallets
backend/routes/cryptoWallets.js - Wireless intelligence
backend/routes/wirelessNetworks.js
Analysis and intelligence
- Entity relationships
backend/routes/relationships.js - Search service
backend/routes/search.js - Geocoding service
backend/services/improvedGeocodingService.js
Persistence and integrations
- PostgreSQL
backend/config/database.js - Geocoding providers
backend/services/geocodingProviders.js
Other components
- Investigator
- Geocoding providers
Connections 33
- Investigator → Application shell: uses
frontend/src/App.js - Application shell → Project context: uses
frontend/src/App.js - Application shell → Record management: renders
frontend/src/App.js - Application shell → API client: imports
frontend/src/App.js - Record management → API client: requests data
- Advanced search → API client: queries
frontend/src/components/AdvancedSearch.js - Relationship manager → API client: loads data
frontend/src/components/visualization/RelationshipManager.js - Relationship manager → Relationship diagram: renders
frontend/src/components/visualization/RelationshipManager.js - Application shell → Global map: presents
frontend/src/App.js - Application shell → Reports: presents
frontend/src/App.js - API client → HTTP server: HTTP requests
- HTTP server → Authentication: mounts
backend/server.js - HTTP server → People and travel: mounts
backend/server.js - HTTP server → Cases and tasks: mounts
backend/server.js - HTTP server → Projects and membership: mounts
backend/server.js - HTTP server → Business intelligence: mounts
backend/server.js - HTTP server → Assets and properties: mounts
backend/server.js - HTTP server → Transactions and ledger: mounts
backend/server.js - HTTP server → Crypto wallets: mounts
backend/server.js - HTTP server → Wireless intelligence: mounts
backend/server.js - HTTP server → Entity relationships: mounts
backend/server.js - HTTP server → Search service: mounts
backend/server.js - Authentication → PostgreSQL: queries
backend/routes/auth.js - People and travel → Project access control: checks scope
backend/routes/people.js - Search service → Project access control: checks scope
backend/routes/search.js - Wireless intelligence → Project access control: checks scope
backend/routes/wirelessNetworks.js - Project access control → PostgreSQL: reads membership
backend/utils/projectAccess.js - People and travel → PostgreSQL: reads and writes
backend/routes/people.js - Wireless intelligence → PostgreSQL: reads and writes
backend/routes/wirelessNetworks.js - Entity relationships → PostgreSQL: reads and writes
- Geocoding service → Geocoding providers: uses provider config
backend/services/improvedGeocodingService.js - Geocoding service → PostgreSQL: caches coordinates
backend/services/improvedGeocodingService.js - Geocoding service → Geocoding providers: geocodes addresses