Using DAG-CBOR to store and lookup geoip data with IPFS
summary
Rewrites a GeoLite IP-to-city dataset as a B-tree DAG using DAG-CBOR on IPFS, exposing a single-function lookup (ESM) that fetches only the leaf blocks for an IP via a public gateway — no JS IPFS node required. The dataset shrinks from ~400 MB to ~270 MB by removing protobuf wrappers and using CBOR; hot ranges self-replicate via regular caching; immutable CIDs let new versions reuse most old blocks. Uses CID tag 42 for link semantics.
AI-written summary · about
