How yh3rcul3sy/naplanta works
NaPlanta collects public launch listings from property developers, validates and enriches them, preserves daily snapshots and change/status data, then publishes a static map and listing for users. The main path is daily collection → normalization and enrichment → JSON publication → browser filtering and map/list rendering. The README documents nearby amenities, change tracking, transparency, and generated detail/city pages. Some browser and infrastructure connections are documented rather than shown in sampled implementation; those limits are noted with dashed edges.
Main entry points: main.js Browser coordinator · coleta_diaria.py Daily collection · __init__.py Developer adapters · config.py Published JSON
Components 26
Collection
- Collection entry
coleta/coletar.py - Daily collection
coleta/naplanta/app/coleta_diaria.py - Developer adapters
coleta/naplanta/fontes/__init__.py - Robots-aware network
coleta/naplanta/infra/rede.py
Domain and enrichment
- Listing validation
coleta/naplanta/dominio/empreendimento.py - Change tracking
coleta/naplanta/dominio/mudancas.py - Geocoding
coleta/naplanta/infra/geo.py - Nearby amenities
coleta/naplanta/infra/arredores.py - Photo thumbnails
coleta/naplanta/infra/fotos.py
Publication
- JSON repository
coleta/naplanta/infra/repositorio.py - Published JSON
coleta/naplanta/config.py - Detail and city pages
coleta/naplanta/publicacao/paginas.py
Map experience
- Data loader
site/js/dados.js - Browser coordinator
site/js/main.js - Search filters
site/js/nucleo/filtros.js - Interactive map
site/js/ui/mapa.js - Results list
site/js/ui/lista.js - Cards and popups
site/js/ui/modelos.js
Status and discovery
- Changes and status
site/js/nucleo/situacao.js - Recent changes panel
site/js/ui/novidades.js - Data transparency
site/js/transparencia.js
Other components
- Daily scheduler
- Developer websites
- Nominatim
- Overpass
- Site visitor
Connections 28
- Daily scheduler → Collection entry: starts daily run
- Collection entry → Daily collection: runs
coleta/coletar.py - Daily collection → Developer adapters: collects from
coleta/naplanta/app/coleta_diaria.py - Developer adapters → Developer websites: reads listings
- Developer adapters → Robots-aware network: uses client
- Robots-aware network → Developer websites: requests allowed pages
coleta/naplanta/infra/rede.py - Daily collection → Listing validation: normalizes listings
coleta/naplanta/app/coleta_diaria.py - Daily collection → Change tracking: compares snapshots
coleta/naplanta/app/coleta_diaria.py - Daily collection → Geocoding: completes locations
coleta/naplanta/app/coleta_diaria.py - Geocoding → Nominatim: queries
- Daily collection → Nearby amenities: enriches surroundings
coleta/naplanta/app/coleta_diaria.py - Nearby amenities → Overpass: queries
- Daily collection → Photo thumbnails: completes thumbnails
coleta/naplanta/app/coleta_diaria.py - Daily collection → JSON repository: reads and writes
coleta/naplanta/app/coleta_diaria.py - JSON repository → Published JSON: stores snapshots
coleta/naplanta/infra/repositorio.py - Published JSON → Data loader: loads JSON
- Published JSON → Detail and city pages: supplies page generation
coleta/naplanta/publicacao/paginas.py - Site visitor → Browser coordinator: uses site
- Browser coordinator → Data loader: loads data
site/js/main.js - Browser coordinator → Search filters: filters results
site/js/main.js - Browser coordinator → Interactive map: renders results
site/js/main.js - Browser coordinator → Results list: renders results
site/js/main.js - Browser coordinator → Cards and popups: builds content
site/js/main.js - Browser coordinator → Changes and status: summarizes status
site/js/main.js - Browser coordinator → Recent changes panel: shows changes
site/js/main.js - Browser coordinator → Data transparency: offers data details
- Results list → Cards and popups: renders cards
site/js/ui/modelos.js - Interactive map → Cards and popups: renders popups
site/js/ui/modelos.js