[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109243":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":39,"discoverSource":40},109243,"librehold","librehold-game\u002Flibrehold","librehold-game","A free, open-source browser strategy game: grow a settlement from a hut to a castle, raise an army, raid and conquer.","https:\u002F\u002Flibrehold.org",null,"Go",64,11,1,2,0,6,12,5,49.32,"GNU Affero General Public License v3.0",false,"main",true,[26,27,28,29,30,31,32,33,34],"browser-game","contributions-welcome","golang","good-first-issue","multiplayer","open-source-game","pixel-art","react","strategy-game","2026-11-16 21:37:37","2026-11-23 18:35:30","\u003Cp align=\"center\">\n  \u003Cimg src=\"public\u002Faccount\u002Fog\u002Fhome.png\" alt=\"LibreHold: pixel art villages, castles and mountains on a green map\" width=\"720\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">LibreHold\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  A free, open-source browser strategy game: grow a settlement from a hut to a castle, raise an army, raid and conquer.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Flibrehold.org\">\u003Cb>▶ Play now in your browser\u003C\u002Fb>\u003C\u002Fa> — no download, no sign-up\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Flibrehold.org\">Website\u003C\u002Fa> ·\n  \u003Ca href=\"docs\u002Fdevelopment.md\">Development\u003C\u002Fa> ·\n  \u003Ca href=\"deploy\u002FREADME.md\">Self-hosting\u003C\u002Fa> ·\n  \u003Ca href=\"CONTRIBUTING.md\">Contributing\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"CHANGELOG.md\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Ftag\u002Flibrehold-game\u002Flibrehold?filter=v*&sort=semver&label=alpha&color=orange\" alt=\"Latest version (alpha)\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flibrehold-game\u002Flibrehold\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Flibrehold-game\u002Flibrehold\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode-AGPL--3.0-blue\" alt=\"Code licence: AGPL-3.0\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fserver-Go-00ADD8\" alt=\"Server: Go\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fclient-React-61DAFB\" alt=\"Client: React\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fmedia\u002Fgameplay.gif\" alt=\"Gameplay: a village growing inside its palisade, then an army marching across the map\" width=\"720\">\n\u003C\u002Fp>\n\n## About\n\nLibreHold is a multiplayer village strategy game that runs in the browser. Every world lives on the server, so your\nvillages keep growing and your armies keep marching while you are away. Bots fill the map, so a world is never empty,\neven with a handful of friends.\n\n> **Alpha:** the rules and balance still change, and worlds or accounts may be reset between updates.\n\n- **Instant games** — one-hour matches on a small map at ×100 speed. Press *Play now*, get a guest nickname and a\n  developed village, and make your first conquest within minutes. No sign-up needed.\n- **Private worlds** — host a short game for friends with an invite link and a QR code, and tune its length, seats,\n  bots, pace and rules.\n- **Long worlds** — persistent worlds created by the server admin, played over days.\n- **Real strategy** — 15 buildings, 12 unit types, scouting, supports, field battles between marching armies,\n  loyalty and conquest, a market and a farm assistant.\n- **Bots that play** — computer players that build, farm barbarians, save for hetmans and wage war on each other and\n  on you.\n- **Own pixel art** and a layout that works on phones from 360 px.\n- **Easy to host** — one Go binary, Postgres and Valkey in Docker Compose, with optional HTTPS through Caddy and\n  nightly backups.\n\n## Quick start\n\n### Play\n\nOpen [librehold.org](https:\u002F\u002Flibrehold.org) and press **Play now**.\n\n### Host your own server\n\nYou need a machine with Docker (amd64 or arm64). Save this as `docker-compose.yml`:\n\n```yaml\nservices:\n  db:\n    image: postgres:18.6\n    restart: unless-stopped\n    environment:\n      POSTGRES_USER: librehold\n      POSTGRES_PASSWORD: ${DB_PASSWORD:?set DB_PASSWORD in .env}\n    volumes:\n      - pgdata:\u002Fvar\u002Flib\u002Fpostgresql\n    healthcheck:\n      test: [\"CMD\", \"pg_isready\", \"-U\", \"librehold\"]\n      interval: 5s\n\n  server:\n    image: ghcr.io\u002Flibrehold-game\u002Flibrehold:latest\n    restart: unless-stopped\n    environment:\n      LH_DATABASE_URL: postgres:\u002F\u002Flibrehold:${DB_PASSWORD}@db:5432\u002Flibrehold?sslmode=disable\n      LH_COOKIE_SECURE: \"false\"\n      LH_ADMIN_USERNAME: admin\n      LH_ADMIN_PASSWORD: ${ADMIN_PASSWORD:?set ADMIN_PASSWORD in .env}\n    ports:\n      - \"8080:8080\"\n    depends_on:\n      db:\n        condition: service_healthy\n\nvolumes:\n  pgdata:\n```\n\nNext to it, create `.env` with two passwords of your own (letters and digits; the admin one at least 8 characters) and start the game:\n\n```sh\nDB_PASSWORD=\nADMIN_PASSWORD=\n```\n\n```sh\ndocker compose up -d\n```\n\nThe game is then at `http:\u002F\u002F\u003Cserver>:8080\u002F`; log in as `admin` to reach the admin panel. Update with\n`docker compose pull && docker compose up -d`. This is enough for friends or a LAN party; before you open the game\nto the internet, use the full setup in [`deploy\u002F`](deploy\u002FREADME.md): HTTPS, nightly backups and limits shared through Valkey.\n\n### Develop\n\nRequirements: Node.js 24+, Go 1.27+ and Docker (for Postgres, Valkey and the database tests).\n\n```sh\nnpm install\ncd server && make db && cd ..   # Postgres on localhost:5433, Valkey on localhost:6380\nnpm run dev:all                 # API on :8080, account site on :5173, game on :5174; Ctrl+C stops all three\n```\n\nOpen the account site at `http:\u002F\u002Flocalhost:5173\u002F` (admin: `admin` \u002F `adminadmin`); the game runs at\n`http:\u002F\u002Flocalhost:5174\u002Fgame\u002Fgame.html?world=\u003Cid>`. Run the tests with `npm test` (client) and `npm run server:test`\n(server). The full guide, including running the parts separately, the environment variables and the end-to-end tests,\nis in [`docs\u002Fdevelopment.md`](docs\u002Fdevelopment.md).\n\n## How it works\n\nThe Go server owns every rule and every balance value, and the Postgres database is the single source of truth: each\norder and each scheduled event is one transaction under a per-world lock, so a restart loses nothing. The React client\nonly displays the state and sends orders. It reads the balance tables generated from the Go rules (`npm run gen`), so\nthe two never drift apart.\n\n```text\nserver\u002F          Go game server (hexagonal)\n  internal\u002Fgame    game rules, balance and bots; no I\u002FO\n  internal\u002Fapp     use cases: accounts, lobby, orders, views, event worker\n  internal\u002Fadapters  Postgres, HTTP API, WebSocket, file gate\n  cmd\u002F             server, bot simulator, archive export, generator\nsrc\u002F             React client (account site and game)\ntests\u002F           client tests (Vitest)\ndeploy\u002F          Docker Compose, Caddy, backups\n```\n\n## Documentation\n\n| Document | Contents |\n|---|---|\n| [`docs\u002Fdevelopment.md`](docs\u002Fdevelopment.md) | running locally, server layout, environment variables, time model, scripts |\n| [`docs\u002Fgameplay.md`](docs\u002Fgameplay.md) | instant games, player worlds, world settings, bots, quests |\n| [`docs\u002Fbalance.md`](docs\u002Fbalance.md) | balance formulas, where to change them, pacing tests |\n| [`docs\u002Finterface.md`](docs\u002Finterface.md) | village view, map, art layers, phone layout |\n| [`deploy\u002FREADME.md`](deploy\u002FREADME.md) | production deployment, HTTPS, backups and restore |\n| [`ASSETS.md`](ASSETS.md) | origin and licence of every art and font file |\n| [`CHANGELOG.md`](CHANGELOG.md) | changes per version, written from the git history by `scripts\u002Frelease.sh` |\n\n## Contributing\n\nBug reports, ideas and pull requests are welcome. Please read [`CONTRIBUTING.md`](CONTRIBUTING.md) and the\n[Code of Conduct](CODE_OF_CONDUCT.md) first. There is nothing to sign: contributions are\naccepted under the project's licence. Artwork is not open, so please ask before sending any graphics.\n\n## Security\n\nPlease do not report security problems in public issues. Follow [`SECURITY.md`](SECURITY.md) instead.\n\n## Licence\n\nYou are free to play, self-host, study, change and share LibreHold.\n\n- **Code** — [GNU AGPL 3.0](LICENSE), with a few additional terms in [`LICENSING.md`](LICENSING.md): keep the credits,\n  and give a modified version its own name. If you run a modified version for other people, share its source code.\n- **Artwork** (`src\u002Fassets\u002Fpixel\u002F`, `public\u002Faccount\u002Fog\u002F`, `docs\u002Fmedia\u002F`) — free to use, unchanged, on any LibreHold\n  server that is not commercial ([`LICENSE-ART.md`](LICENSE-ART.md)).\n- **Fonts** — their authors' licence (SIL OFL 1.1), described in [`ASSETS.md`](ASSETS.md).\n\n## Credits\n\nMade by [Szymon Kocur](https:\u002F\u002Fszymonkocur.com) and [contributors](CONTRIBUTORS.md), hosted by\n[TomcatFlow](https:\u002F\u002Ftomcatflow.com).\n","LibreHold 是一款开源的网页端多人策略游戏，玩家从简陋小屋起步，逐步建设村庄、升级城堡、训练军队，并通过侦察、野战、征服与贸易实现扩张。项目采用 Go 语言后端与 React 前端，支持即时对局（1小时快节奏）、私有好友局和持久化长世界；内置智能 Bot 模拟真实生态，所有进程在服务端持续运行，支持移动端像素风界面与一键 Docker 部署。适用于轻量级策略游戏爱好者、开源游戏贡献者及希望快速搭建可扩展策略游戏服务的个人或小团队。","2026-11-24 04:36:18","CREATED_QUERY"]