Play Minesweeper Online for Free https://mnswpr.com
Find a file
2026-04-02 18:47:54 +02:00
.husky chore: use eslint for linting & formatting 2026-04-02 14:41:52 +02:00
.vscode chore: use eslint for linting & formatting 2026-04-02 14:41:52 +02:00
public refactore: use public dir for assets 2026-04-02 12:12:04 +02:00
scripts chore: update release 2026-04-02 18:10:54 +02:00
src feat: new level names - Noobs, Normies, Torment, and Hell 2026-04-02 18:47:54 +02:00
.gitignore initial commit 2019-12-08 16:36:29 +08:00
eslint.config.js chore: use eslint for css linting 2026-04-02 16:52:24 +02:00
index.html refactor: split page & game css 2026-04-02 16:46:07 +02:00
instructions initial commit 2019-12-08 16:36:29 +08:00
LICENSE Create LICENSE 2023-03-10 09:42:58 +01:00
main.css refactor: split page & game css 2026-04-02 16:46:07 +02:00
package.json chore: release v0.4.7 2026-04-02 18:11:24 +02:00
pnpm-lock.yaml chore: new release script inspired by how we do it on Elk.zone 2026-04-02 17:32:16 +02:00
README.md chore: update readme 2026-04-02 17:10:49 +02:00

Play Minesweeper Online for Free

Netlify Status

Play it here: mnswpr.com. This is the classic game Minesweeper built with vanilla web technologies (i.e., no framework dependency).

Technology Stack:

  • HTML, JS, and CSS
  • Firebase for leader board store
  • Netlify for hosting

Development tooling:

Project motivation

One day, while working in my home office, I heard loud and fast mouse clicks coming from our bedroom. It's my wife, playing her favorite game (Minesweeper) on a crappy website full of advertisements.

I can't allow this, it's a security issue. 🤣

But it is also an opportunity.

I wanted to give her the same game, with a similar leader board she can dominate. And this is also a chance for me to dig deeper into vanilla JS.

Can I make a page with complex interactions (more on this later) without any library dependency?

What I have learned:

  1. JS is awesome
  2. We don't always necessarily need JS frameworks (or TS)
  3. Even subtle UI changes can improve user gameplay experience
  4. There's more ways to break you're app than you are initially aware of
  5. Competition motivates users to use your app more
  6. Hash in bundled filenames help issues in browser caching (when shipping versions fast)

Development

To start development, you need node v16 (the dev server doesn't work on v18 yet). Once you know you have this, you can do the following:

  1. Install dependencies: npm i
  2. Start the dev server: npm run dev

Live Demo

👉 The live site is here: Minesweeper