
Self-hosting UK address lookup without paying per-query fees
UK address lookup APIs are convenient but they come with a cost - literally. Most services charge per query. If you're processing high volumes or just want predictable costs, those fees add up fast. If you already hold a Royal Mail PAF licence - or can get one - you have access to the full dataset of ~40 million UK delivery points. You just need something to serve it. That's what this project does. No magic, no nonsense. What it is paf-monorepo is a self-hosted UK postcode and address lookup API built on Royal Mail PAF data. It's a Node.js monorepo with two packages: @paf/builder - processes your Royal Mail PAF CSV files into compact binary files @paf/api - a Fastify REST API that loads those binary files into memory and serves fast postcode lookups There is no database. No Redis. No Postgres. Nothing to query at runtime except memory. Yes, really. The zero-database approach The interesting bit is trading RAM for speed. At startup, the builder output - a set of compact binary files - i
Continue reading on Dev.to
Opens in a new tab




