Skip to content

About

Independent, read-only observatory of public Taskmarket activity on Base and Tempo.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Taskmarket Observatory

A public, read-only dashboard for Taskmarket activity on Tempo and Base. View the live observatory.

Deploy

Fork this public repository, enable Actions in your fork and select GitHub Actions as the Pages source in Settings → Pages. From a checkout of the fork with the GitHub CLI signed in, deploy with one command.

gh workflow run pages.yml

Pushes to main also deploy. GitHub schedules freshness checks at minutes 02, 17, 32 and 47 of each hour, UTC. A scheduled run collects both networks when the published snapshot is at least 20 minutes old or cannot be read. Dispatches and pushes always collect. GitHub may delay scheduled events. A failed collection leaves the prior successful site online with its original timestamp. A hosting provider with different requirements can run python3 build.py and serve the resulting _site/ directory. Set SITE_URL to its public URL to rewrite share metadata.

Optional independent cache

The dashboard can also read a second server-side snapshot. Set the GitHub repository Actions variable MARKET_CACHE_URL to the public HTTPS URL of a compatible endpoint before deploying Pages. The page fetches the local file and the cache concurrently and displays the newest valid observation. Either source can serve the dashboard during an outage of the other. The download link follows the displayed snapshot.

The repository includes a cache implementation for a dedicated Supabase project. Enable its Data API and replace the single __PROJECT_REF__ value in supabase/market-cache.sql with the project reference. Run the SQL as the project owner. Deploy the market-cache Edge Function with the standard Supabase CLI:

supabase functions deploy market-cache --project-ref YOUR_PROJECT_REF --no-verify-jwt

The public endpoint is https://YOUR_PROJECT_REF.supabase.co/functions/v1/market-cache. Public requests read the last completed snapshot. Refreshes require a short-lived, one-use ticket issued by the database. The private cache and its write functions are inaccessible to browser roles. A five-minute database schedule permits one new collection once at least 25 minutes have elapsed since the preceding start. A failed refresh preserves the last successful result. The schedule can be removed with select cron.unschedule('market-cache-refresh');.

Run locally

Requires Python 3.10 or newer. From the project directory run python3 build.py, then python3 -m http.server --directory _site 8000. Open http://localhost:8000. No API keys, wallet, external scripts or runtime proxies are required.

Sources

The server queries the public Taskmarket API at api.taskmarket.dev with chain IDs 4217 and 8453. It uses /api/market/stats, /api/stats/breakdowns, /api/stats/platform-time-series, /api/stats/activity-heatmap, /api/stats/activity-feed and the cursor-paginated /api/tasks. See the methods panel and collect.py for units, deduplication and network scope. Readers download cached static data from the site.

License and disclosure

Original code is released under the MIT License. Bundled fonts retain their supplied licenses. The dashboard was made for a paid Taskmarket bounty and is an independent project.

About

Independent, read-only observatory of public Taskmarket activity on Base and Tempo.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages