SignalTrace

Real-time OSINT intelligence dashboard for NatSec, crisis response, and
situational-awareness workflows. SignalTrace aggregates geopolitical, military,
environmental, infrastructure, maritime, aviation, and humanitarian signals
into a single map-based briefing surface.

Built with React + Leaflet on the frontend and Hono on Cloudflare Workers for the API.
Project overview · Quick start
At a glance
| Area |
Details |
| Frontend |
React, Leaflet, Tailwind, Cloudflare Pages |
| API |
Hono on Cloudflare Workers with Durable Objects and KV caching |
| Signals |
OSINT, ACLED, FIRMS, AIS, ADS-B, USGS, IODA, RIPEstat, GDELT, ReliefWeb, Copernicus, KiwiSDR |
| Use cases |
Conflict monitoring, crisis response, situational awareness, intelligence briefings |
Features
| Layer |
Source |
Update Cadence |
| OSINT Feed (Telegram + X) |
Telegram public channels, optional X bridge |
~4 min |
| Armed Conflict Events |
ACLED |
10 min |
| Thermal Hotspots |
NASA FIRMS |
2 min |
| Ship Tracking (AIS) |
AISStream.io via Durable Object WebSocket |
Real-time |
| Military Aircraft |
ADS-B Exchange (RapidAPI) |
25 sec |
| Missile / Rocket Alerts |
Israel Home Front Command (Oref) |
10 sec |
| Earthquakes |
USGS |
2 min |
| Radiation Monitoring |
Safecast + GMCMap |
5 min |
| Internet Outages (IODA) |
Georgia Tech / CAIDA |
5 min |
| BGP Anomalies |
RIPEstat |
5 min |
| Reported Incidents |
GDELT |
5 min |
| Humanitarian Reports |
ReliefWeb |
15 min |
| Satellite Observations |
Copernicus Data Space |
20 min |
| Emergency Activations |
Copernicus EMS |
20 min |
| KiwiSDR Receivers |
Public KiwiSDR network |
5 min |
| Sanctions Screening |
OFAC / UN / UK lists |
On-demand |
| Live Cameras |
Public RTSP/HLS streams |
Live |
Architecture
signaltrace/
packages/
web/ Vite + React + Tailwind SPA (Cloudflare Pages)
api/ Hono API + Durable Object (Cloudflare Workers)
.env.example Environment variable template
packages/api/wrangler.toml.example Workers config template
scripts/ Utility scripts (demo recorder)
The frontend is a single-page app deployed to Cloudflare Pages. The API is a Cloudflare Worker with a Durable Object for persistent ship-tracking WebSocket connections and a KV namespace for caching upstream data. A cron trigger refreshes OSINT and radiation data every 15 minutes.
Prerequisites
Quick Start
1. Clone and install
git clone https://github.com/allsmog/SignalTrace.git
cd SignalTrace
npm install
Copy the configuration template and fill in your keys:
cp .env.example .env.local
Edit .env.local with your API credentials. All keys are optional – layers with missing keys will show a “missing_key” status in the data-health panel and degrade gracefully.
For the Cloudflare Workers API, also create a local dev vars file:
cp .env.example packages/api/.dev.vars
See Configuration below for details on each key.
3. Set up Cloudflare Workers config
Copy the Wrangler template and create a KV namespace:
cp packages/api/wrangler.toml.example packages/api/wrangler.toml
cd packages/api
wrangler kv namespace create DATA_CACHE
Paste the printed namespace ID into packages/api/wrangler.toml under [[kv_namespaces]].
4. Run locally
In separate terminals:
npm run dev:api # Starts Worker on http://localhost:8787
npm run dev:web # Starts Vite on http://localhost:5173 (proxies /api to Worker)
Configuration
All configuration is done through environment variables. The .env.example file at the repository root is the authoritative template.
| Variable |
Required |
Description |
Registration |
FIRMS_MAP_KEY |
No |
NASA FIRMS thermal hotspot API key |
firms.modaps.eosdis.nasa.gov |
ACLED_CLIENT_ID |
No |
ACLED OAuth client ID (preferred) |
acleddata.com |
ACLED_CLIENT_SECRET |
No |
ACLED OAuth client secret (preferred) |
Same |
ACLED_EMAIL |
No |
ACLED email (fallback auth) |
Same |
ACLED_PASSWORD |
No |
ACLED password (fallback auth) |
Same |
AISSTREAM_API_KEY |
No |
AISStream ship tracking key |
aisstream.io |
ADSB_EXCHANGE_API_KEY |
No |
ADS-B Exchange (RapidAPI) key |
rapidapi.com |
OSINT_X_BRIDGE_URL |
No |
X/Twitter OSINT bridge URL |
Self-hosted |
OSINT_X_BRIDGE_TOKEN |
No |
X/Twitter OSINT bridge bearer token |
Self-hosted |
USAJOBS_API_KEY |
No |
USAJobs API key |
developer.usajobs.gov |
USAJOBS_EMAIL |
No |
USAJobs account email |
Same |
RELIEFWEB_APPNAME |
No |
ReliefWeb app identifier |
reliefweb.int |
VITE_API_BASE_URL |
No |
Override API origin (see API routing) |
– |
All upstream APIs listed above offer free registration.
Local development
- Frontend: reads
VITE_* vars from .env.local at the repo root.
- API Worker: reads all other vars from
packages/api/.dev.vars (Wrangler dev vars).
Production (Cloudflare)
Set secrets on the Worker:
cd packages/api
wrangler secret put FIRMS_MAP_KEY
wrangler secret put ACLED_CLIENT_ID
wrangler secret put ACLED_CLIENT_SECRET
wrangler secret put AISSTREAM_API_KEY
wrangler secret put ADSB_EXCHANGE_API_KEY
# ... etc.
Set VITE_API_BASE_URL as a Cloudflare Pages environment variable if your frontend and API are on different origins.
Deployment
Deploy API Worker
npm run deploy:api
Deploy Web (Pages)
npm run deploy:web
Or connect the repository to Cloudflare Pages with build command npm run build:web and output directory packages/web/dist.
API URL Routing
The web app resolves API requests via VITE_API_BASE_URL.
Option A – Same-origin (recommended for custom domains)
- Pages serves
https://yourdomain.com
- Worker route handles
https://yourdomain.com/api/*
- Leave
VITE_API_BASE_URL unset. Update the [[routes]] block in packages/api/wrangler.toml.
Option B – Separate origins
- Pages on
*.pages.dev, Worker on *.workers.dev or a custom API subdomain
- Set
VITE_API_BASE_URL to the Worker origin (e.g., https://signaltrace-api.<you>.workers.dev)
- CORS is already enabled on
/api/*.
Data Health
Hit GET /api/data-health to see the status of every upstream source. The response includes live, stale, missing_key, error, and other states per source, making it easy to verify which keys are configured correctly.
Project Structure
packages/web/
src/
components/ React components (map layers, panels, feeds)
services/ Frontend data fetchers
lib/ Shared utilities, store, constants
index.html Entry point
packages/api/
src/
routes/ Hono route handlers (one per data source)
services/ Upstream data fetching logic
do/ Durable Object (ShipTracker)
lib/ Shared utilities (caching, HTTP, geo)
data/ Static data files
types.ts Shared TypeScript types
wrangler.toml.example Cloudflare Workers config template
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature)
- Commit your changes
- Push to your branch and open a Pull Request
License
MIT
评论