This is a simple order book to view recent crypto trades. For optimal frontend performance, it uses web workers to process the huge volume of updates from the websocket server. Orders are throttled before being sent to the frontend UI which handles painting the orders.
See it in production: https://crypto-orderbook-orcin.vercel.app/
Or to run it locally:
$ npm run start
and then visit localhost:3000/index.html
There are a ton of more optimizations that can be implemented before this is considered "done". Such as...
- refactor some types to use generics and better naming
- kill button demo how to error handle
- perfection on the mobile UI.
- Also needs more cross-browser testing.