AbsorbingChaos / unmuteable-com

UN ✕ MUTE ✕ ABLE
https://unmuteable.com
0 stars 0 forks source link

Update cmc-api #56

Open whoabuddy opened 4 years ago

whoabuddy commented 4 years ago

The current code only pulls new information after a hugo build operation, which is not ideal for displaying up to date information to visitors.

Need to create a new way to update cmc-api more frequently, cloudflare workers could be a middleware option to prevent flooding the main API.

Return JSON: https://developers.cloudflare.com/workers/examples/return-json

Fetch JSON: https://developers.cloudflare.com/workers/examples/fetch-json

Cache using Fetch: https://developers.cloudflare.com/workers/examples/cache-using-fetch

Cloudflare could keep a copy of the API at a set interval, and site could load latest data from the worker on page load.

whoabuddy commented 3 years ago

Also consider adding other tokens? Partners with Blockstack / Stacks could be an interesting area to explore, and help fill in more content so it doesn't look so much smaller than what's around it:

Could decide to list others if their values align ?