Status: This project has been archived as of January 6, 2026. It served its purpose as a Go learning project and prototype for semantic search over environmental data. See ARCHIVE.md for full context, lessons learned, and salvageable patterns.
Quick Links:
EdgeSight was a polyglot system for semantic search over environmental, economic, and sensor data. It combined Go (HTTP API), Python (embeddings + LLM), and .NET (frontend) to answer questions like "How is air quality affecting my location?"
EdgeSight/
├── go-ingest/ # Data ingestion & REST API
│ ├── cmd/
│ │ ├── ingest/ # Data collection service
│ │ └── api/ # REST API server
│ ├── internal/
│ │ ├── clients/ # API clients (OpenAQ, NASDAQ, EIA, etc.)
│ │ ├── models/ # Data models
│ │ ├── store/ # SQLite persistence
│ │ ├── canonicalizer/ # Data unification
│ │ └── semantic/ # LLM-ready summaries (for Phase 2)
│ └── edgesight.db # SQLite database
│
└── edgesight-ui/ # Frontend dashboard
├── index.html
├── app.js
└── styles.css
cd go-ingest
# Set API keys (optional - some services work without keys)
$env:OPENAQ_API_KEY="your-key-here"
$env:ALPHAVANTAGE_API_KEY="your-key-here"
$env:NASDAQ_API_KEY="your-key-here"
$env:EIA_API_KEY="your-key-here"
$env:NASS_API_KEY="your-key-here"
# Run data ingestion (this populates edgesight.db)
.\bin\ingest.execd go-ingest
# Start API on port 8080 (default)
.\bin\api.exe
# Or specify custom port
$env:API_PORT="3000"
.\bin\api.execd edgesight-ui
# Option 1: Python simple server
python -m http.server 8000
# Option 2: PHP server
php -S localhost:8000
# Option 3: Node.js http-server (install: npm i -g http-server)
http-server -p 8000
# Then open: http://localhost:8000GET /health
GET /api/v1/snapshots/latest?location=Los%20Angeles
GET /api/v1/snapshots/range?location=Los%20Angeles&start=2025-12-07T00:00:00Z&end=2025-12-08T23:59:59Z
GET /api/v1/snapshots?location=Los%20Angeles&hours=24
GET /api/v1/metrics/series?metric=temp_c&location=Los%20Angeles&start=2025-12-01T00:00:00Z&end=2025-12-08T23:59:59Z
Available metrics:
- Weather:
temp_c,humidity,wind,cloud_cover - Environment:
pm25,pm10,ozone,no2,so2,co - Energy:
grid_load,renewable_percent,carbon_intensity_gco2_kwh - Finance:
nasdaq_index,stock_price - Health:
flu_cases,ili_percent,hospital_admissions - Agriculture:
crop_yield,price_per_bushel,production_bushels
- OpenMeteo - Weather data
- OpenAQ - Air quality sensors
- AlphaVantage - Stock prices
- NASDAQ Data Link - Market index
- Ember Climate - Carbon intensity & generation mix
- Grid Monitoring - Power grid status (mock data)
- EIA - US Energy Information Administration
- USDA NASS - Agricultural statistics
- FEMA - Disaster declarations (static JSON)
- CDC FluView - Influenza surveillance
- Movebank - Animal migration tracking
CityBikes(replaced with more relevant energy/ag data)
- Real-time dashboard with auto-refresh (60s)
- 8 data categories displayed
- Responsive design (mobile-friendly)
- Dark theme UI
- Location selection
- Error handling & loading states
- CORS-enabled for local development
- Vector Database: Add SQLite vector extension (
sqlite-vec) - Embeddings: Generate embeddings from semantic summaries
- LLM Service: Integrate Ollama with Mistral 7B or Llama 3.2
- Natural Language Queries:
- "What's the air quality trend in LA?"
- "How does renewable energy correlate with carbon intensity?"
- "Show me disaster patterns over the last month"
# Build ingestion service
go build -o bin/ingest.exe cmd/ingest/main.go
# Build API server
go build -o bin/api.exe cmd/api/main.goSQLite database with single snapshot table containing all metrics:
- Timestamp-indexed for fast queries
- 50+ columns covering all data domains
- Supports time-series analysis
- Ready for vector extension (Phase 2)
- REST with JSON responses
- CORS-enabled for web frontends
- Query parameters for filtering
- RFC3339 timestamps
- Error responses with descriptive messages
- Ingest data: Run
ingest.exeto populate database - Verify database: Check
edgesight.dbwas created - Start API: Run
api.exe, should see "EdgeSight API Server starting on port 8080" - Test endpoint:
curl http://localhost:8080/health - Launch UI: Start web server in
edgesight-ui/ - View dashboard: Open browser to
http://localhost:8000
API not starting?
- Check port 8080 isn't in use
- Set
$env:API_PORT="3001"to use different port
No data showing?
- Run
ingest.exefirst to collect data - Check
edgesight.dbexists - Verify API is running (
curl http://localhost:8080/health)
CORS errors?
- API has CORS enabled by default
- Make sure you're accessing frontend via http server (not
file://)
Frontend not updating?
- Check browser console for errors
- Verify API URL in
app.jsmatches your API server - Check network tab for failed requests