Showoff Saturday [Showoff Saturday] Serving 2.13M Singapore company register records sharded and gzipped from Cloudflare R2 behind a Cloudflare Worker
I put together Oxaide as a small engineering project to make Singapore's ACRA company register (2,131,548 entities, about 625k live, snapshot dated 16 Nov 2026) and GST status checks queryable by serving the corpus from object storage rather than a traditional database.
ACRA publishes the register as open data on data.gov.sg, while IRAS's official API is gated behind CorpPass onboarding. The core setup is a data pipeline that processes the 2,131,548-entity register snapshot, shards the corpus, gzips the shards, and writes them to Cloudflare R2. A Cloudflare Worker sits in front of R2 to handle lookups, search, and batch requests directly against the sharded static objects. Every API response includes the snapshot_date field so callers can see which register cut they are reading against.
On top of the Worker layer, I built a few developer and browser interfaces:
- Developer docs and REST API (https://oxaide.com/developers): GET /api/v1/sg/entity/:uen, GET /api/v1/sg/search, and POST /api/v1/sg/batch (up to 50 UENs per call)
- TypeScript SDK on npm: @leewenjie/oxaide
- MCP server package on npm: @leewenjie/oxaide-mcp
- Google Sheets formula: =OXAIDE_UEN
- Free browser tools with no sign-up: https://oxaide.com/tools/uen-check and https://oxaide.com/tools/gst-check
One practical constraint worth noting: this is strictly a screening and research tool built on the dated register snapshot, and statutory confirmation always belongs on BizFile and IRAS.
Interested in how others here approach sharding multi-million-row public datasets on object storage like R2, or handling updates cleanly when a new register snapshot drops.