🌐 Atlas4D Base

May 15, 2026 Β· View on GitHub

License Version PyPI PostgreSQL PostGIS TimescaleDB Docker

Open-source public preview of Atlas4D - a PostgreSQL-native 4D spatiotemporal AI platform foundation

πŸ“° Featured: Why We Built Atlas4D β€” The problem with fragmented spatiotemporal data and how we solved it.

πŸ“Œ Project Status

Atlas4D Base is a public preview / tech preview.

It is the open-source foundation and reference implementation for Atlas4D concepts: PostgreSQL-native spatial + temporal data, H3 indexing, vector search, reference AI services, and a lightweight demo UI.

It is not the full production Atlas4D platform and is not production-ready out of the box. The production Atlas4D platform includes additional enterprise modules, hardened deployment patterns, governed evidence workflows, and operational surfaces that are not part of this public base repository.

The hosted demo below is a public preview demo, not an SLA-backed service.

πŸ† Recognition

Awesome Awesome PostgreSQL

As seen in:

Atlas4D Base is the open-source public foundation of the larger Atlas4D platform. This repository contains a compact 4D stack for learning, experimentation, and extension: database, reference services, demo UI, and observability. The full Atlas4D platform adds production hardening, governed evidence workflows, operator surfaces, and domain modules for critical infrastructure.

πŸ‘₯ Who Is This For?

  • Data Engineers building real-time spatiotemporal pipelines
  • GIS/Geo Developers needing time-series + vector search in one DB
  • Telecom Teams monitoring network infrastructure
  • Smart City Projects analyzing mobility and urban data
  • Research Labs working with 4D trajectory data

✨ What Makes Atlas4D Different

FeatureTraditional ApproachAtlas4D
Data ModelSeparate geo, time, vector DBsUnified PostgreSQL stack
Spatial IndexingR-tree onlyH3 hexagons + PostGIS
Time SeriesSeparate TSDBTimescaleDB integrated
Vector SearchExternal servicepgvector in-database
ML PipelineBuild from scratchReady anomaly/threat detection
Natural LanguageNot includedNLQ query interface
ObservabilityDIYPrometheus + Grafana + Alerts

πŸš€ Quick Start

# Clone and start
git clone https://github.com/crisbez/atlas4d-base.git
cd atlas4d-base
make demo

Or manually:

cp .env.example .env
docker compose up -d --build

⏱️ Time to first map: ~3 minutes

ServiceURL
Map UIhttp://localhost:8091
API Healthhttp://localhost:8090/health
API Statshttp://localhost:8090/api/stats

Demo Map

🌐 Public Preview Demo

Try the hosted Atlas4D Base preview without installing anything:

ServiceURL
Map UIOpen map
API HealthCheck health
API StatsView stats

πŸ’‘ This is a public preview demo for orientation and evaluation. It is not an SLA-backed production service. The demo dataset may be refreshed during maintenance; no daily refresh cadence is guaranteed.

🧱 Modular by Design

Atlas4D is built as a set of independent services around a shared 4D database core.

  • Add new domain modules without touching the core DB
  • Mix & match services (anomaly only, or anomaly + threat + NLQ)
  • Safe to extend: everything talks HTTP/JSON or SQL
  • Scalable: suitable for single-node labs and multi-service production clusters

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      Atlas4D Platform                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚  β”‚   Map   β”‚  β”‚   NLQ   β”‚  β”‚ Health  β”‚  β”‚  API    β”‚  UI    β”‚
β”‚  β”‚   UI    β”‚  β”‚  Chat   β”‚  β”‚Dashboardβ”‚  β”‚  Docs   β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜        β”‚
β”‚       β”‚            β”‚            β”‚            β”‚              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”        β”‚
β”‚  β”‚              API Gateway (FastAPI)              β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜        β”‚
β”‚       β”‚            β”‚            β”‚            β”‚              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”        β”‚
β”‚  β”‚ Anomaly β”‚  β”‚ Threat  β”‚  β”‚Embeddingβ”‚  β”‚ Public  β”‚Servicesβ”‚
β”‚  β”‚   Svc   β”‚  β”‚Forecast β”‚  β”‚   Svc   β”‚  β”‚   API   β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜        β”‚
β”‚       β”‚            β”‚            β”‚            β”‚              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”        β”‚
β”‚  β”‚     PostgreSQL + PostGIS + TimescaleDB          β”‚  Data  β”‚
β”‚  β”‚              + H3 + pgvector                    β”‚  Layer β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“¦ Core Components

Database Layer

  • PostgreSQL 16 - Rock-solid foundation
  • PostGIS 3.4 - Spatial operations and geometry
  • TimescaleDB - Time-series hypertables with compression
  • H3 - Uber's hexagonal hierarchical indexing
  • pgvector - Vector similarity search for embeddings

Services (Reference Implementation)

  • public-api - REST API for data ingestion and queries
  • anomaly-svc - Real-time anomaly detection (reference models)
  • threat-forecastor - ML-powered threat assessment (reference model)
  • trajectory-embedding - Trajectory vectorization with caching
  • nlq-svc - Natural language to SQL translation (Bulgarian + English)

Observability

  • Prometheus - Metrics collection
  • Grafana - Dashboards and visualization
  • Alert Rules - Pre-configured for ML pipeline and Redis

πŸ“Š Base Preview Scope

AspectStatus
MaturityPublic Preview / Tech Preview
ScopeCore 4D database, reference AI services, demo UI, observability
Not includedEnterprise modules, production hardening, Mission Control, Network Guardian, radar/ADS-B/vision GPU modules - see Full Edition

🎯 Use Cases & Example Modules

Atlas4D Base ships with the core 4D engine and generic AI services. On top of this core, domain-specific modules can be added:

Telecom & Networks

  • GPON / fiber anomaly detection
  • Capacity & congestion forecasting
  • Network Guardian-style risk scoring for critical infrastructure

Smart City & Mobility

  • Traffic & fleet analytics via trajectories
  • Movement anomalies (speed spikes, unusual routes)
  • High-risk zones (stadiums, events, gatherings)

Airspace & Airports

  • Trajectory monitoring for aircraft and drones
  • Conflict zones / separation violation detection
  • Safety dashboards for control rooms

Wildfires & Agriculture

  • Fire risk mapping (wind, temperature, drought, historical fires)
  • Crop yield forecasting on H3 grid
  • Early warning for extreme weather events

Defense & Security

  • Multi-sensor drone detection (radar + vision + RF)
  • Spatiotemporal analysis of suspicious objects and vehicles
  • Pattern-of-life analysis on 4D trajectories

Predictive Analytics

  • Time-series forecasting
  • Vector-based similarity: "find trajectories similar to this incident"

πŸ”’ Security & Hardening

Atlas4D Base ships with a developer-friendly demo configuration.
It is not production-ready out of the box.

Before exposing a deployment to the internet you should:

  • change all default passwords and secrets,
  • restrict exposed ports and put Atlas4D behind a reverse proxy (HTTPS),
  • use a dedicated DB user with least privilege,
  • protect observability (Grafana/Prometheus) and internal APIs.

See docs/SECURITY.md for a detailed hardening guide.

πŸ“š Documentation

πŸ”§ Configuration

# .env.example
POSTGRES_HOST=postgres
POSTGRES_DB=atlas4d
POSTGRES_USER=atlas4d_app
POSTGRES_PASSWORD=your_secure_password

# Optional: Enable ML features
ENABLE_ANOMALY_DETECTION=true
ENABLE_THREAT_FORECAST=true
ENABLE_NLQ=true

πŸ—ΊοΈ Roadmap

Atlas4D Base roadmap is directional. Dates are intentionally avoided until a release is actively being prepared.

  • Core spatiotemporal database schema
  • H3 hexagonal indexing
  • Anomaly detection pipeline
  • Embedding cache with Redis
  • Natural language queries (Bulgarian + English)
  • E2E demo test suite
  • Public preview refresh
  • Module packaging cleanup
  • Deployment hardening guide refresh
  • Kubernetes Helm charts
  • Real-time WebSocket feeds

See ROADMAP.md for the directional roadmap.

🀝 Atlas4D Full Edition

This repository is Atlas4D Base: the open-source foundation and reference implementation.

The full Atlas4D platform builds on this foundation with production and enterprise capabilities, including:

  • Mission Control for operator-facing case review and triage
  • Network Guardian for telecom and critical infrastructure monitoring
  • Radar, ADS-B, vision, and multi-sensor modules
  • Governed evidence workflows with lineage, review, and audit semantics
  • Advanced forecasting and risk scoring across multiple evidence sources
  • Deployment hardening, sizing, support, and integration guidance

Atlas4D Base is useful for learning the architecture and running the public demo stack. Full Atlas4D is designed for production operational environments.

Contact us for enterprise inquiries.

πŸ“Š Case Studies

Atlas4D is designed for multiple industries. Explore our use case outlines:

IndustryUse CaseKey Features
πŸ“‘ TelecomNetwork MonitoringSNMP, GPON, real-time alerts
πŸ™οΈ Smart CityMunicipal IoT PlatformTraffic, parking, air quality
πŸ›‘οΈ DefenseCounter-Drone SystemRadar fusion, swarm detection
πŸ”₯ EmergencyWildfire MonitoringRisk prediction, satellite hotspots
🌾 AgricultureHarvest ForecastingNDVI tracking, yield prediction

Each case study includes architecture diagrams, NLQ examples (Bulgarian + English), and expected results.

🀝 Contributing

We welcome contributions! See our Contributing Guide.

Ways to contribute:

  • πŸ› Report bugs
  • πŸ“ Improve documentation
  • πŸ’» Submit code
  • πŸ’‘ Propose new modules

Check out our Good First Issues for beginner-friendly tasks.

πŸ“„ License

Apache 2.0 - See LICENSE for details.

πŸ™ Built On

Atlas4D stands on the shoulders of giants:


Our vision: Atlas4D aims to become the "Linux of 4D spatiotemporal data platforms" - a stable, open foundation for location-aware, time-sensitive AI applications.

⭐ Star this repo if you find it useful!

πŸ’¬ Ask Your Data in Natural Language

Atlas4D supports natural language queries in Bulgarian and English:

Bulgarian:

  • "Какво Π΅ Π²Ρ€Π΅ΠΌΠ΅Ρ‚ΠΎ Π² Бургас?"
  • "ПокаТи Π·Π°ΠΏΠ»Π°Ρ…ΠΈ ΠΎΠΊΠΎΠ»ΠΎ Бофия"
  • "ПокаТи Π°Π½ΠΎΠΌΠ°Π»ΠΈΠΈ ΠΎΡ‚ послСдния час"

English:

  • "Show threats near the airport"
  • "What anomalies happened today?"

See NLQ Usage Guide for full examples.

πŸ”— After the Local Stack is Up

ServiceURL
Map UIhttp://localhost:8091
API Healthhttp://localhost:8090/health
API Statshttp://localhost:8090/api/stats

For the hosted public preview, use the Public Preview Demo section above.


πŸ‘©β€πŸ’» For Developers

New to Atlas4D Base? Start here:

Quick Dev Commands

# Start stack
docker compose up -d

# View logs
docker compose logs -f api-gateway

# Connect to database
docker compose exec postgres psql -U atlas4d_app -d atlas4d

# Rebuild after changes
docker compose build api-gateway && docker compose up -d api-gateway

πŸ—ΊοΈ Roadmap

See ROADMAP.md for upcoming features and releases.

Current public preview: v0.3.x | Next focus: public preview refresh, module packaging, and deployment hardening