How tiagozip/asn-data works
This repository is a static ASN directory: clients fetch per-ASN PeeringDB records and can fetch corresponding website favicons. Weekly refreshes retrieve PeeringDB data, update changed JSON files, and fetch favicon images for changed networks with websites. The README also describes resolving the record’s logo field to PeeringDB’s media host. The refresh implementation is sampled; static hosting behavior and the documented media URL handling are represented only at the level supported by the README.
Main entry points: build.js Refresh process · asn ASN records · logos Favicon images
Components 9
Data refresh
- Refresh process
build.js
Static catalog
- ASN records
asn - Favicon images
logos
Other components
- Weekly trigger
- PeeringDB API
- Favicon service
- Static hosting
- Directory client
- PeeringDB media
Connections 9
- Weekly trigger → Refresh process: starts weekly
- Refresh process → PeeringDB API: fetches records
- Refresh process → ASN records: updates JSON
- Refresh process → Favicon service: requests icons
- Refresh process → Favicon images: writes icons
- Static hosting → ASN records: serves files
- Static hosting → Favicon images: serves files
- Directory client → Static hosting: requests record or icon
- Directory client → PeeringDB media: may resolve logo URL