eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
619 stars 227 forks source link

Add human-friendly admin console #1034

Closed sergey-melnychuk closed 2 months ago

sergey-melnychuk commented 1 year ago

Things I'd like to have on such theoretical "status page":

Extra:

Mirko-von-Leipzig commented 1 year ago

Yes, agreed.

If you've already self-assigned -- does this mean you have a plan in mind already? Would be good to do a rough design proposal and just get consensus / by-in before proceeding with code.

sergey-melnychuk commented 1 year ago

@Mirko-von-Leipzig , I was thinking a simple /status endpoint returning JSON (or text to dump into console), and a simple HTML page that polls the endpoint and renders the data in a nice way.

Mirko-von-Leipzig commented 1 year ago

JSON makes sense; and that could be the start of a simple web-ui for pathfinder. I'm more concerned about how the data will be aquired. Does it read from the database where possible? Probably doesn't answer most questions. How do p2p, RPC, sync stats get fed in? Events via channels?

sergey-melnychuk commented 1 year ago

To start with, simple /status endpoint should do.