No description
  • JavaScript 47.7%
  • CSS 26.1%
  • Go 15.5%
  • HTML 9.9%
  • Dockerfile 0.8%
Find a file
2026-03-29 10:58:27 +08:00
static Security hardening and code quality improvements 2026-03-26 08:11:07 +00:00
.dockerignore Fix XSS vulnerability, add CSP header, and harden infrastructure 2026-03-26 02:51:28 +00:00
.env.example Update .env.example 2026-03-29 10:58:10 +08:00
.gitignore Fix XSS vulnerability, add CSP header, and harden infrastructure 2026-03-26 02:51:28 +00:00
docker-compose.yml Update docker-compose.yml 2026-03-29 10:58:27 +08:00
Dockerfile Fix XSS vulnerability, add CSP header, and harden infrastructure 2026-03-26 02:51:28 +00:00
go.mod Add optional score submission with MariaDB leaderboard 2026-03-26 02:37:28 +00:00
go.sum Add optional score submission with MariaDB leaderboard 2026-03-26 02:37:28 +00:00
LICENSE Create LICENSE 2026-03-28 00:00:21 +08:00
main.go Security hardening and code quality improvements 2026-03-26 08:11:07 +00:00
README.md Update README.md 2026-03-28 00:10:18 +08:00

Capitalism Mania

A satirical incremental clicker game about the absurdity of wealth accumulation. Click your way from a lemonade stand to world domination.

CC0 1.0 Universal (CC0 1.0) Public Domain Dedication

AI Generated Badge

Features

  • Incremental clicker gameplay - click to earn, invest to automate
  • 8 upgrades - from Lemonade Stand to Surveillance Algorithm
  • 4 power-ups - boost your clicks and passive income
  • 8 milestones - track your descent into oligarchy
  • Satirical news ticker - rotating headlines that hit too close to home
  • Auto-save - progress saved to browser localStorage
  • Responsive design - works on desktop and mobile
  • Dark theme - easy on the eyes during late-night grinding

Tech Stack

  • Backend: Go 1.22 (standard library only)
  • Frontend: Vanilla HTML/CSS/JavaScript
  • Containerization: Docker with multi-stage build

Getting Started

Prerequisites

Run Locally

go run main.go

Open http://localhost:8080 in your browser.

Run with Docker Compose

  1. Copy the example environment file:
cp .env.example .env
  1. Edit .env with your configuration (domain, port, etc.)

  2. Start the container:

docker compose up -d --build

Environment Variables

Variable Default Description
PORT 8080 Server listen port
CONTAINER_NAME capitalism-mania Docker container name

Project Structure

capitalism-mania/
├── main.go              # Go HTTP server
├── go.mod               # Go module definition
├── Dockerfile           # Multi-stage Docker build
├── docker-compose.yml   # Docker Compose configuration
├── .env.example         # Environment variable template
├── .dockerignore        # Docker build exclusions
└── static/
    ├── index.html       # Single-page game UI
    ├── style.css        # Dark theme styles
    └── game.js          # Game logic and state management

Health Check

The server exposes a /healthz endpoint that returns 200 OK for container health monitoring.

Support

This project is free to play, but developing and maintaining it requires real resources—server costs, internet bills, and the developer's daily life expenses. If you've enjoyed this game and have the means, consider supporting the project:

❤️ Support the Project

Every contribution helps keep the game running and enables future improvements.