A standalone, modern web page displaying ERC-4337 bundler test results. This is a simplified version of the original bundlers page, designed to be hosted on GitHub Pages.
- Modern Design: Clean, responsive interface using Tailwind CSS
- Dark/Light Theme: Toggle between dark and light modes with persistent preference
- Mobile Responsive: Optimized for all screen sizes with horizontal scrolling for tables
- Version Selection: Switch between bundler versions (0.6, 0.7, 0.8)
- Real-time Data: Fetches test results from the official ERC-4337 test results API
- No Dependencies: Pure HTML, CSS, and JavaScript - no build process required
index.html
- Main HTML file with the page structure and stylingscript.js
- JavaScript logic for data fetching, processing, and renderingREADME.md
- This file
- Create a new GitHub repository
- Upload the
index.html
andscript.js
files to the repository - Go to repository Settings → Pages
- Select "Deploy from a branch" and choose the main branch
- Your site will be available at
https://[username].github.io/[repository-name]
- Create a new GitHub Gist
- Add
index.html
as the main file - The Gist will be available at
https://gist.github.com/[username]/[gist-id]
- You can also use services like Gist.io to create a more polished view
You can view the site locally in two ways:
- Double-click
index.html
or open it in your browser. - Note: Some browsers may block API requests due to CORS when using the
file://
protocol.
- Run a local server in your project directory:
- Python 3:
Then open http://localhost:8000 in your browser.
python3 -m http.server 8000
- Node.js (http-server):
npx http-server .
- Python 3:
- This ensures all features (like fetching remote JSON) work as expected.
The page fetches test results from:
- Base URL:
https://bundler-test-results.erc4337.io/
- Versions: v06, v07, v08 (default)
- Endpoint:
/v{version}/history/history.json
Update the "Back to Documentation" link in index.html
:
<a href="YOUR_GITBOOK_URL" class="text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 text-sm font-medium">
← Back to Documentation
</a>
The page uses Tailwind CSS classes. You can customize the appearance by:
- Modifying the CSS variables in the
<style>
section ofindex.html
- Changing Tailwind classes throughout the HTML
- Adding custom CSS rules
The JavaScript is modular and well-commented. Key functions:
loadTestResults()
- Fetches and processes datarenderTables()
- Renders both data tablesinitializeTheme()
- Sets up dark/light modeinitializeVersionSelector()
- Handles version switching
- Modern browsers with ES6+ support
- Mobile browsers (iOS Safari, Chrome Mobile)
- Desktop browsers (Chrome, Firefox, Safari, Edge)
- Lightweight: ~50KB total (including Tailwind CSS)
- Fast loading: No build process or dependencies
- Efficient: Minimal DOM manipulation
- Responsive: Optimized for mobile devices
This project is part of the ERC-4337 ecosystem. Please refer to the original project for licensing information.