A super simple svelte-based html+js dashboard to pull simple DLP metrics via RPC. Can extend later.
Currently tracking the following:
- $vFSN balance of the DLP contract - important for understanding what rewards are remaining in the contract
- Number of uploads - number of files uploaded (different from chats as one file can contain many)
- Last time a file was uploaded - we get a pretty constant stream, so if this time is "old", then something has gone wrong.
I used nvm
to get node
lts at time of creation - v22.16.0
.
This is also using Vite
so that we can serve locally.
Just install deps:
npm i
npm run dev -- --open
npm run build
This is meant to be a fast and flexible dashboard. I chose Svelte so that we're not loading any crazy libraries or have long build times. We're just fetching core data and showing it. If you can avoid installing packages, this will keep the code simple and building / running / loading fast. Example of applying this: I didn't install all the web3.js
bloat and just did the etherum rpc calls from js.