Create a visualizer to show information about specific blocks on the Bitcoin Blockchain in a graphical and artistic way. Users should be able to enter specific block numbers or see the latest block.
Assistant
I'll create a Bitcoin blockchain block visualizer. Let me first explore the project structure.
Let me check the utility file and set up the app. I'll use the free blockchain.info / mempool.space API to fetch Bitcoin block data.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Now let me build the app. I'll create the API layer, a generative art canvas that renders each block as unique artwork derived from its hash, and the UI. Let me start with the types and API module.
Now the deterministic PRNG and helpers derived from block hash, used to seed the generative art.
Now the core generative art canvas component that draws unique art per block.
Now let me create helper components: stat cards, hash strip, and a mini hash-swatch grid.
Now the main App with search controls, navigation, loading/error states.
Now let me build to confirm everything compiles.
The build succeeded. I've created Blockforge, an artistic Bitcoin block visualizer.
What it does
Live data — Fetches real Bitcoin block data from the mempool.space public API (no key needed). It loads the latest block on startup and lets users:
Enter any block height to jump directly to it
Click "Latest" for the current chain tip
Navigate Previous/Next between blocks
Generative art — The centerpiece is an animated canvas that renders each block as a unique, glowing "block orb." The artwork is deterministically derived from the block's hash, so the same block always produces the same visuals:
Palette comes from the hash bytes
Concentric wobbling rings count reflects leading zeros (difficulty)
Orbiting particles scale with the transaction count
Pulsing hexagonal core at the center represents the block itself
Data panel — Shows transactions, size, weight, reward, fees, difficulty, nonce, version, bits, mining pool, and timestamps. The block hash is also rendered as a color-swatch fingerprint (each byte → a color tile), plus the raw hash and Merkle root.
Structure
src/lib/api.ts — blockchain API layer
src/lib/hashArt.ts — seeded PRNG + hash → art helpers