A bitcoin mining clicker and idle game for the browser.
Strike the coin, build a mining empire from a garage CPU to a Dyson swarm, catch golden nonces and hard fork the chain for permanent keys.
One HTML file, one script, no build step, no account.
Play now → · How it plays · How it works · Run locally
Idle games live or die on pacing: the next goal has to be close, the next unlock has to feel big, and coming back after a day away should pay off. Hash Forge is a compact take on the genre with a crypto mining theme, built as a single plain JavaScript file that anyone can read, fork and rebalance.
- Strike the coin (click, tap, Space or Enter). Every strike has a chance to find a block for a big payout. Fast strikes build a combo for extra power.
- Rigs. 11 tiers from Garage CPU to Dyson Swarm. Every rig doubles its output at 25, 50, 100, 150, 200, 300, 400 and 500 owned. Buy x1, x10, x100 or Max.
- Upgrades. Tiered upgrades for every rig plus strike, block, network, golden nonce, combo and ability upgrades. "Buy all affordable" in one tap.
- Golden nonces drift onto the screen every minute or two: Lucky payouts, Frenzy (production x7), Click Frenzy (strikes x777), Block Rush and Coolant Flush.
- Abilities (keys 1 to 4): Overclock, Hash Storm, Nonce Magnet and Pool Hop, each on a cooldown.
- Mods cost stimulation, which you earn by playing. Each mod adds a bonus and a visual. Turn any visual off and keep the bonus.
- Hard fork (prestige). Reset rigs and upgrades for keys. Each key level adds +2% to everything forever, and keys buy Genesis perks.
- Trophies. 62 of them, each worth +1% to everything. The closest one is always shown as your next goal.
- Offline mining, autosave, save export and import, and settings for sound, screen shake, particles and number format.
Classic idle math. Rig prices grow by 1.15x per unit owned, and bulk buys use the closed-form geometric sum, so "Max" is solved directly instead of looping:
const rigCost = (r, n, k) => (r.base * Math.pow(GROWTH, n) * (Math.pow(GROWTH, k) - 1)) / (GROWTH - 1);Prestige keys follow a cube root of lifetime earnings (floor(cbrt(allEarned / 1e7))), so each new key costs more than the last and early forks still feel worth it.
Two clocks. Production ticks on a 100 ms setInterval, so income keeps flowing when the tab is in the background. Animation runs on requestAnimationFrame with a clamped frame delta. If the gap between ticks is over a minute (a frozen or sleeping tab), the game treats it as offline time instead of a giant tick, and pays it out at the offline rate up to a cap (both improved by Genesis perks).
Blocks and combos. Each strike rolls a block chance that starts at 3% and grows with upgrades, mods and perks, capped at 75%. Block rewards scale with both strike power and current production, so clicking stays relevant late in a run.
Sound without audio files. Every sound effect is synthesized with WebAudio oscillators. The combo sound rises in pitch as the combo grows.
Saves. State lives in localStorage and can be exported and imported as text. Number formatting handles very large values with short suffixes and avoids rounding edge cases like 1000M.
git clone https://github.com/neomorrison/bitcoin-mining-simulator.git
cd bitcoin-mining-simulator
npx serve . # or open index.html directlyindex.html page shell and UI markup
src/main.js the whole game: state, economy, rigs, upgrades, prestige, audio, rendering, saves
src/style.css styles
assets/ rig and power-up art (PNG sources, WebP in assets/t/)
og.jpg social preview image
Ideas and pull requests are welcome. Good first additions: new rig tiers past the Dyson Swarm, new golden nonce effects, new trophies, more mods, or a stats screen that charts earnings over time. If you change the balance, say what you changed and why in the pull request.
If Hash Forge ate your afternoon, a ⭐ helps other people find it.
Hash Forge is a game. It does not mine real cryptocurrency, connect to any wallet or network, or use your device for hashing. The bitcoin theme is decoration, and nothing in it is financial advice.

