A modern web application for monitoring and analyzing blockchain network performance metrics.
This tool provides real-time performance monitoring and analysis capabilities for blockchain networks, built with Next.js, TypeScript, and Tailwind CSS.
- Node.js (v18 or higher)
- npm or yarn
- Modern web browser
- Clone the repository:
git clone https://github.com/your-username/performance-tool-client.git
cd performance-tool-client
- Install dependencies:
npm install
# or
yarn install
- Set up environment variables:
cp .env.example .env.local
Run the development server on localhost:
npm run dev
# or
yarn dev
Build the application:
npm run build
# or
yarn build
More about deploying options
Deployments:
Deployed on Vercel automatically on PR merge.
Navigate to src/app/store/store.js
and find the METHODS
array:
export const METHODS = entity([
{
id: 0,
method_used: 'eth_getBlockByNumber',
method_url: process.env.NEXT_PUBLIC_BACKEND_APP_PATH_URL + 'test-get-block',
perform: true,
isLoading: true,
data: {},
},
{
id: 1,
method_used: 'eth_call',
method_url: process.env.NEXT_PUBLIC_BACKEND_APP_PATH_URL + 'test-eth-call',
perform: true,
isLoading: true,
data: {},
},
]);
To add a new method:
- Add a new object at the end of the array
- Increment the
id
field value - Set
method_used
for the card label shown in results UI - Update
method_url
with the new path - Keep other fields unchanged
├── src/
│ ├── app/ # Next.js App Router components
│ └── components/ # Reusable React components
└── public/ # Static assets
/app/compare-double/page.js
: Implements side-by-side comparison functionality for two blockchain nodes page/app/compare-single/page.js
: Implements testing functionality for one blockchain node page/app/injection-result-double/page.js
: Implements side-by-side comparison functionality for two blockchain nodes for injected page/app/store/store.js
: Contains global state management and methods configuration/app/page.js
: Initial page
- Next.js - React Framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- ESLint - Code linting
- Jest - Testing framework
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follows best practices for React and Next.js
- Implements maintainable and scalable code structure
- Includes comprehensive documentation
- Uses TypeScript for type safety
- Adheres to ESLint configuration