Open-source blockchain explorer for the BitBlocks (BBK) network
BitBlocks Explorer is a modern, open-source blockchain explorer developed for the BitBlocks (BBK) network. It provides an intuitive and transparent interface to explore blocks, transactions, addresses, masternodes, and other blockchain information.
⚠️ Important: This repository contains only the frontend of the BitBlocks Explorer. To run a fully functional explorer, you need to set up and run a separate backend API that provides the blockchain data. This frontend application consumes data from that backend API through theNEXT_PUBLIC_API_URLenvironment variable.
- 🔍 Complete Exploration: View blocks, transactions, addresses, and masternodes
- ⚡ Real-Time: Real-time updates with API status indicators
- 🎨 Modern Interface: Responsive and modern design with smooth animations
- 🔎 Smart Search: Search by block hash, transaction hash, address, or block height
- 📊 Network Statistics: View real-time BitBlocks network statistics
- 🌐 API Health: Backend API status monitoring
- 📱 Responsive: Works perfectly on desktop, tablet, and mobile
- Next.js 16 - React framework with SSR/SSG
- React 19 - UI library
- TypeScript - Static typing
- Tailwind CSS 4 - Utility-first styling
- Framer Motion - Animations
- TanStack Query - State management and data caching
- Axios - HTTP client
- Lucide React - Icons
- Node.js 18.x or higher
- npm or yarn or pnpm
- Backend API: A running BitBlocks Explorer backend API (this repository is frontend-only)
- Clone the repository
git clone https://github.com/BitBlocksProject/bbkexplorer.git
cd bbkexplorer- Install dependencies
npm install
# or
yarn install
# or
pnpm install- Configure environment variables
Create a .env.local file in the project root:
NEXT_PUBLIC_API_URL=http://localhost:3000Or if your API is on another server:
NEXT_PUBLIC_API_URL=https://api.bitblockscrypto.com
⚠️ Important: You must have a backend API running and accessible at the URL specified inNEXT_PUBLIC_API_URL. This frontend will not work without a backend API providing the blockchain data. The API URL can be the root or include/apiat the end. The system automatically normalizes it.
- Run the development server
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 in your browser to see the result.
npm run dev- Start the development servernpm run build- Create a production buildnpm run start- Start the production server (after build)npm run lint- Run ESLint linter
bbkexplorer/
├── src/
│ ├── app/ # Routes and pages (App Router)
│ │ ├── address/ # Address page
│ │ ├── block/ # Block page
│ │ ├── blocks/ # Blocks list
│ │ ├── masternodes/ # Masternodes list
│ │ ├── transactions/ # Transactions list
│ │ └── ...
│ ├── components/ # React components
│ │ ├── layout/ # Header, Footer
│ │ └── ui/ # UI components
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utilities and helpers
│ │ ├── api.ts # API client
│ │ └── block-cache.ts # Caching system
│ ├── providers/ # Context providers
│ └── types/ # TypeScript definitions
├── public/ # Static files
└── package.json
| Variable | Description | Default |
|---|---|---|
NEXT_PUBLIC_API_URL |
Backend API base URL | http://localhost:3000 |
The explorer uses a local caching system (localStorage) to improve performance:
- Cache duration: 7 days
- Block limit: 1000 blocks
- Automatic caching: Only confirmed blocks are cached
- Automatic cleanup: Old cache is automatically removed
/- Home page with statistics and recent blocks/blocks- List of all blocks/block/[hash]- Details of a specific block/transactions- List of transactions/tx/[hash]- Details of a transaction/address/[address]- Details of an address/masternodes- List of masternodes/peers- List of network peers/mempool- Pending transactions/privacy- Privacy policy/terms- Terms of service
Contributions are welcome! Feel free to:
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow existing code standards
- Add tests when appropriate
- Document significant changes
- Keep commits descriptive and organized
This project is open-source. See the LICENSE file for more details.
- GitHub: BitBlocksProject/BitBlocks
- X (Twitter): @bitblocks
- Discord: Discord BitBlocks