● Crash · web component · free

Add a Crash game to your website.

A free, drop-in Crash game. A multiplier climbs until it crashes, and you cash out before it does. Play money only: no sign-in, no server.

Paste into your page
<script src="https://chiplets.dev/v1/chiplets.js" defer></script>
<chip-crash auto="2"></chip-crash>

What you get

Crash's own options

AttributeWhat it does
autoThe auto cash-out a visitor starts with, such as 2 or 2.5. They can change or clear it.

Options every game takes

AttributeWhat it does
betThe bet a visitor starts with (10 unless you say otherwise).
accentAny CSS colour, for the buttons and highlights.
theme="light"A light card for light pages. Dark is the default.
labelYour own title above the game.
currency · iconWhat you call the play money, and an emoji or image URL shown beside it.
sound="muted"Starts silent and keeps the speaker button. sound="off" removes sound altogether.
no-footerHides the small "chiplets" link under the game.

Settings for the whole site (starting balance, largest bet, the wallet's name) go on the script tag, and CSS custom properties cover everything else. Both are in the docs.

Make it look like yours

A few attributes change the colour, the title and the currency. This one is live:

The game below
<chip-crash auto="1.5"
  accent="#f43f5e" label="Lift-off"
  currency="Fuel" icon="⛽"></chip-crash>

The playground builds a snippet like this for you while you watch it change.

React to what happens

Every finished round fires an event that bubbles up to document, so your page can answer a win with confetti, a badge, or points of its own.

document.addEventListener('chiplets:win', (e) => {
  // e.detail = { game, bet, payout, profit, multiplier, balance, ... }
  if (e.detail.multiplier >= 10) celebrate();
});

Chiplets.wallet.give(500);   // reward a visitor with play money
Chiplets.wallet.take(50);    // let them spend it on something of yours

There are also chiplets:lose, chiplets:result, chiplets:balance and chiplets:auto. The full list is in the docs.

Works with the site you have

Your siteHow
Plain HTMLPaste the two lines anywhere in the page.
WordPressPaste them into a Custom HTML block.
React, Vue, AstroLoad the script once, then render the tag like any other element. These are standard custom elements.
Your own serverBuild the files from the source and serve them yourself. Nothing calls home.

The odds, published

The crash point is drawn so that the chance of reaching any multiplier x is 0.99 ÷ x. Whatever target a visitor picks, the long-run return is the same.

Cash out atChance to get there
1.50×66.0%
2.00×49.5%
3.00×33.0%
5.00×19.8%
10.0×9.90%
100×0.99%
1,000×0.0990%

The crash point is drawn so the chance of reaching any multiplier x is 0.99 ÷ x — whichever target you choose, the long-run return is 99%. The most a round can reach is 1,000×.

Questions

Is it multiplayer? Does everyone see the same rocket?

No. Each visitor plays their own round, in their own browser, whenever they like. There is no shared round and no server.

How long does a round last?

The multiplier doubles every 8 seconds, so 2× takes 8 seconds and 10× about 27. About half of all rounds end before 2×.

Is it really free?

Yes. It's open source under the MIT licence, with no account, no API key and no paid tier. The source is on GitHub.

Is this gambling?

No money goes in and none comes out. Chiplets is play money only: there is no way to buy the currency, cash it out or win a prize, and that is on purpose. If you connect a game to real money or prizes yourself, gambling laws apply to you. The games are casino-style and meant for adult audiences.

Will it slow my page down?

The shared core is about 14 KB compressed and each game 3 to 5 KB, loaded with defer and only when a page uses the tag. There are no dependencies, fonts, images or audio files. Each game reserves its height while it loads, so the page doesn't jump.

Does it track my visitors?

No. The script requests its own files and nothing else: no analytics, no cookies. A visitor's balance is kept in their own browser.

Can visitors cheat?

Yes. The balance lives in their browser, so anyone with developer tools can change it. That's fine for play money. Don't attach anything of value to it.

Can I lock the version, or check the file?

Yes. Every release stays online unchanged at its own address, and each file has a published integrity hash. The README shows how to pin a version, verify it, or rebuild it yourself.

More games

Put several on one site and they share one play-money balance.

Build a snippet in the playground, read the docs, or see all four carry a whole site at chiplets.win.