Atom-Clicker
Free browser incremental game: click atoms, build an atomic empire, prestige through protons, electrons, photons and radiation. SvelteKit + Svelte 5 + PixiJS.
⚛️ Atom Clicker
Atom Clicker is an incremental game where you start by clicking a single atom and end up running an empire that spans several realms. It runs in your browser, saves your progress, works on phones and installs like a regular app.

🎮 How to Play
- Click the Atom: Tap the central atom to earn your first atoms.
- Buy Generators: Spend atoms on generators that produce more atoms for you, even while you are away.
- Buy Upgrades: Boost your clicks, your generators and everything in between.
- Grow the Skill Tree: Skills unlock new mechanics and automation, and they stay through every prestige.
- Prestige: When progress slows down, reset for Protons, Electrons and more, and come back stronger.
- Open new realms: Each prestige step reveals a new place to play, with its own currency and its own way of boosting the others.
- Keep going: Something deeper opens after your first Ionize. Go and find it.
New players get small tips that point at what to do next, and the interface opens up panel by panel as you unlock things.
⚛️ Features
Three realms
- ⚛️ Atom Realm: the home of clicking, generators and upgrades, with an animated atom that grows and changes color as you progress.
- 🟣 Photon Realm: catch glowing circles to collect Photons and rare Excited Photons for exotic upgrades.
- ☢️ Radiation Realm: run a nuclear reactor, balance its mass, control rods and CPM, and turn the output into a production multiplier for every realm.
Prestige layers
- Protonize: the first reset, earns Protons.
- Electronize: a deeper reset, earns Electrons.
- Ionize: the deepest reset, unlocked by running your reactor hot, with a Prism that sends colored light back into the Photon Realm.
- Each reset screen shows what you gain and what you keep, and some upgrades let your generators survive a reset.
Progression
- 🏭 Generators: from tiny molecules to huge cosmic structures, each one levels up as you own more of it.
- ⬆️ Upgrades: each upgrade is one row that levels up along a bar, with a Buy All button and a toggle for bought ones.
- 🌳 Skill Tree: an animated tree where each skill unlocks a mechanic or an automation.
- 🔥 Overdrive: spend Higgs Bosons to double a generator's output.
- ⚡ Power-ups and Higgs Bosons: random power-ups appear while you play and stack, and Higgs Bosons give permanent bonuses.
- 🤖 Automation: auto-buy generators and upgrades, auto-click, and offline progress with a Welcome Back screen.
- 🏆 Achievements: grouped by theme, with claimable rewards.
- 🌌 Late game: a whole new layer opens once you Ionize. No spoilers here.
Quarks and cosmetics
- ✨ Quarks are a rare currency earned from achievements and rotating Daily Quests.
- 🛒 Quark Shop: refundable boosts, convenience upgrades, realm themes and collectible leaderboard banners.
Online features
- 📊 Leaderboard: a podium, search, a "near me" view and player profiles. Scores are verified on the server.
- ☁️ Cloud saves: sign in with Google, Discord or X to keep your progress across devices. Playing without an account works too, your save stays in your browser.
- 🌐 Collider: a particle ring shared by every signed-in player that boosts everyone's production.
- 📲 Installable app: install the game from your browser or home screen (a PWA), play offline, and get +10% production while you play from the installed app.
- 📱 Mobile support: a bottom bar, multi-finger tapping and a landscape layout.
🚀 Getting Started
You need Bun and, to run the backend locally, Docker.
- Install dependencies:
- Create your environment file:
Fill in the three Supabase variables, either from your own Supabase project or from the local stack below:
PUBLIC_SUPABASE_URLPUBLIC_SUPABASE_PUBLISHABLE_KEYSUPABASE_SECRET_KEY
PUBLIC_GOOGLE_CLIENT_ID is optional and only enables the Google One Tap prompt.
- Start the development server:
🗄️ Local Supabase
The backend can run entirely on your machine. The local stack only starts Postgres, PostgREST, Auth and Studio, everything else is disabled in supabase/config.toml.
Point the three Supabase variables of your .env at the values printed by bun db:start. OAuth providers are off locally, create a test user from Studio (http://127.0.0.1:54323) instead. Schema changes go in supabase/migrations/.
✅ Checks
🛠️ Built With
- Framework: SvelteKit with Svelte 5 (runes)
- Language: TypeScript
- Styling: Tailwind CSS 4
- Runtime and tooling: Bun and Vite
- Graphics: hand-written HTML5 Canvas 2D for fast visuals, Three.js for the 3D scenes
- Backend, auth and cloud saves: Supabase
- Hosting: Cloudflare Workers
- Icons: Lucide
- Long lists: Virtua
🗂️ Project Layout
src/routes/ pages and API endpoints (+server.ts files under api/)
src/lib/components/ Svelte components, one folder per area (game, prestige, modals...)
src/lib/helpers/ game logic, the managers that hold the game state
src/lib/data/ static game content: generators, upgrades, skills, achievements...
src/lib/server/ server-only code (Supabase client, score checks, rate limits)
src/lib/stores/ small shared client stores
supabase/migrations/ database schema, one SQL file per change
static/ public assets and the player-facing changelog
Game state lives in a few singleton manager classes built on Svelte 5 runes, mainly GameManager in src/lib/helpers/GameManager.svelte.ts. Imports use the aliases from package.json (#components/*, #data/*, #helpers/*, #lib/*, #stores/*).
🌐 Deployment
The game deploys to Cloudflare Workers through @sveltejs/adapter-cloudflare, configured by wrangler.toml.
The build output goes to .svelte-kit/cloudflare, ready to be deployed with Wrangler. Set the three Supabase variables as build and runtime variables on your Cloudflare project.
📝 License
This project is open source and available under the GNU GPLv3 License.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page. Before opening a pull request, run bun check and bun test.
Pierre Roy