← Back to project
Architecture & implementation plan
How it's built.
Self-Hosted · License-Independent · API-First · LLM-Integrated
A fully self-hosted geospatial infrastructure built on open-source software. The stack is intentionally lean, reproducible, and portable — all outputs are exportable and deployable to external platforms without licensing restrictions.
Hardware
Server
| Model | Lenovo ThinkCentre M90n-1 (Type 11AD) |
| Processor | Intel Core i7-8665U vPro (4-core / 8-thread) |
| Memory | 16 GB DDR4-2666 |
| Storage | 512 GB NVMe PCIe SSD |
| Network | Wired Gigabit Ethernet |
| OS | Ubuntu Server 24.04 LTS |
Network
- TP-Link TL-SG105 (Gigabit switch)
- Campus LAN → Switch → Server + Workstation
Software stack
| Data layer | PostgreSQL + PostGIS |
| Tile serving | pg_tileserv |
| API layer | FastAPI |
| Web server | Caddy |
| Frontend | MapLibre / Leaflet |
Objectives
- Eliminate proprietary dependencies
- Enable unrestricted publishing
- Centralize spatial data
- Support multi-user workflows
- Expose spatial APIs
- Ensure portability
Capabilities
Data & GIS
- Concurrent editing via PostGIS MVCC
- Spatial indexing (GiST)
- Scales to large datasets
Web & publishing
- Static + interactive maps
- Vector tile serving
- Storymap-style publishing
AI & LLM integration
- Nearest feature queries
- Radius queries
- Bounding box queries
- Containment queries
Architecture
PostGIS → FastAPI / pg_tileserv → Caddy → Browser (MapLibre / Leaflet)
Implementation plan
Infrastructure
Multi-user GIS
Web & tiles
API
Basemap
Export
Public access
Key properties
Self-hosted
Multi-user
License-independent
API-first
LLM-integrated
Portable
Reproducible