Opendatacache
caching and compression for socrata open data portals
Install / Use
/learn @talos/OpendatacacheREADME
Socrata's open data portal doesn't support gzip compression of bulk file
downloads. It also tends to be very slow in serving these large downloads, as
if a large, slow, SELECT * FROM ... was sitting between you and your
download...
The solution
___ ____ _ ____ _
/ _ \ _ __ ___ _ __ | _ \ __ _| |_ __ _ / ___|__ _ ___| |__ ___
| | | | '_ \ / _ \ '_ \| | | |/ _` | __/ _` | | / _` |/ __| '_ \ / _ \
| |_| | |_) | __/ | | | |_| | (_| | || (_| | |__| (_| | (__| | | | __/
\___/| .__/ \___|_| |_|____/ \__,_|\__\__,_|\____\__,_|\___|_| |_|\___|
|_|
Basically, we do the compression and caching Socrata's open data portals don't do.
(Socrata) --> (nginx gzip) --> (AWS S3) --> (you)
Take a look
An Opendatacache is available already at http://www.opendatacache.com. Some example URLs:
Deploying
Using docker
You should build the image locally, then you can run it:
$ ./build.sh
$ WARM=1 APP_TOKEN=[Your Socrata App Token] ./run.sh
OpenDataCache makes a lot of API requests, so you'll need to sign up for an application token.
A note on cache warming
If you don't specify WARM=1 as above, the image will start & serve, but will
not cache any new datasets. Its listings will be based on prior caching progress
in the log/ folder.
Thanks
Thank you to OpenPrism for its list of Socrata portals, which is here.
TODO
- Licensing
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
