Skip to content

blockprint-collective/blockprint-ui

Repository files navigation

Blockprint

Blockprint is a tool for determining which consensus clients produced which blocks on the Ethereum mainnet. It uses machine learning to guess the consensus client for a block, based on the similarity of that block to others in its training data. E.g. When blockprint saw the block at slot 6505122, it determined that this block was most likely produced by Prysm. This is a UI built to give insights on Blockprint's accuracy and other important metrics.

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Or using Docker:

docker build -t blockprint-ui-dev . -f Dockerfile.dev
docker run --rm -ti --mount type=bind,source=$PWD,target=/app -p 3000:3000 blockprint-ui-dev
Optionally, you can overwrite the backends with environment variables: `-e CONFUSION_API_ENDPOINT="https://your.endpoint.goes/here" -e DIVERSITY_API_ENDPOINT="https://https://your.endpoint.goes/here"`

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Production build

To run a production server, first configure the correct backends in config.ts
Make sure they are available in your docker builder's context!
Build the image: docker build -t blockprint-ui .
By default, the image exposes the server on port 80. Edit your Dockerfile if this doesn't suit your needs.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Shiny new user interface for blockprint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages