No description
Find a file
cpojer 3fcbc68548 Revert "Upgrade to Vite 8."
This reverts commit c32e03bb2f4ba9aed3c78b4d0ae39b87ecf24173.

GitOrigin-RevId: 4162c4d17c12169e899a54cb486b4a72952460ef
2025-12-04 11:44:11 +09:00
.github Update README.md. 2025-11-14 09:08:22 +09:00
.vscode Add @nkzw/pothos-locate. 2025-04-28 20:40:58 +09:00
@types Update deps. 2024-08-02 15:45:48 +09:00
apollo Update deps. 2025-11-10 11:47:05 +09:00
ares Update deps. 2025-12-04 11:40:44 +09:00
art Fix VariantConfiguration for the 'Message' Sprite. 2025-08-27 11:09:36 +09:00
artemis Upgrade Prisma to 7.1.0. 2025-12-04 11:40:50 +09:00
athena Fix floating point precision issue in unit cost calculation with skills. 2025-11-14 09:08:11 +09:00
codegen Update deps. 2025-12-04 11:40:44 +09:00
deimos Update deps. 2025-12-04 11:40:44 +09:00
dionysus Update deps. 2025-11-10 11:47:05 +09:00
docs Update deps. 2025-12-04 11:40:44 +09:00
eslint-plugin Fix eslint message. 2025-06-02 17:17:25 +09:00
fixtures Initial Commit. 2024-05-12 17:59:31 +09:00
git-hooks Update pre-commit hook. 2025-07-16 08:47:07 +09:00
hera Update deps. 2025-12-04 11:40:44 +09:00
hermes Update deps. 2025-11-10 11:47:05 +09:00
i18n Enable Ukrainian. 2025-07-27 14:37:57 +09:00
infra Update @nkzw/eslint-config. 2025-05-08 19:18:32 +09:00
offline Update deps. 2025-11-02 20:40:44 +09:00
patches Update deps. 2025-12-04 11:40:44 +09:00
scripts Update deps. 2025-12-04 11:40:44 +09:00
tests Update deps. 2025-12-04 11:40:44 +09:00
ui Update deps. 2025-12-04 11:40:44 +09:00
zeus Update deps. 2025-11-10 11:47:05 +09:00
.gitignore Add a system to communicate on a map. (#49) 2025-06-02 17:18:10 +09:00
.prettierignore Use the new prisma code generator. 2025-04-28 20:41:09 +09:00
CODE_OF_CONDUCT.md Initial Commit. 2024-05-12 17:59:31 +09:00
eslint.config.js Update ESLint config. 2025-11-10 11:46:59 +09:00
LICENSE.md Initial Commit. 2024-05-12 17:59:31 +09:00
package.json Revert "Upgrade to Vite 8." 2025-12-04 11:44:11 +09:00
pnpm-lock.yaml Revert "Upgrade to Vite 8." 2025-12-04 11:44:11 +09:00
pnpm-workspace.yaml Revert "Upgrade to Vite 8." 2025-12-04 11:44:11 +09:00
prettier.config.js Update deps. 2025-06-24 10:26:11 +09:00
README.md Update README.md. 2025-11-14 09:08:22 +09:00
tsconfig.json Update tsconfig.json. 2024-07-03 14:57:38 +09:00
vitest.config.ts Load env vars in tests. 2025-10-15 18:04:03 +09:00

Athena Crisis

Athena Crisis Logo

Athena Crisis is an Open Core video game developed by Nakazawa Tech. The source code in this repository is licensed under the MIT License and can be used to improve Athena Crisis, build additional tools, study game development with JavaScript or create entirely new turn-based strategy games.

The single-player campaign, multiplayer, art, music, and content are not open source. You can try a demo at athenacrisis.com and you can wishlist or purchase Athena Crisis on Steam or buy Athena Crisis directly to experience the full game.

If you like Athena Crisis, please consider a sponsorship to support its development.

Athena Crisis Gameplay

Setup

Athena Crisis requires Node.js and the latest major version of pnpm.

Note

Windows Specific Config Developers on Windows will want to ensure that they are using `bash` to run `package.json` scripts. You can configure npm to use git bash by default with the following:
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
pnpm install && pnpm dev:setup
pnpm dev

Visit localhost:3003 to see the docs page.

Documentation & Playground

Check out our Athena Crisis Open Source Docs & Playground site.

Packages

The codebase is split into multiple packages to enforce the separation of concerns. We suggest starting with these packages to get an end-to-end overview:

  • athena → Data structures and algorithms for manipulating map state (client/server).
  • apollo → Data structures and algorithms for manipulating game state (client/server).
  • hera → Game engine and rendering (client).
  • ui → Design system (client).
  • docs → Docs & Playground (client).

These are secondary packages focused on specific domains:

  • art → Handling of assets (client/build).
  • codegen → Run pnpm codegen when changing game Actions or ActionResponses to generate encoded actions and formatters (build).
  • dionysus → AI code (client/server).
  • hermes → Campaign related data structures and algorithms (client/server).
  • i18n → Internationalization (client/build).
  • offline → Offline splash screen for app (client).
  • tests → e2e tests.

Contributing

We welcome contributions to Athena Crisis. Here are some guidelines to get you started:

We greatly appreciate contributions in the following areas:

  • Bug fixes.
  • AI improvements.
  • New game features.
  • Balancing improvements.
  • Experimental technical explorations.
  • Tests to cover untested functionality.
  • Performance Improvements to core data structures.
  • Separation of concerns into smaller libraries that can be published on npm and consumed by other projects.

Q&A

What is open source and what isn't?

More than 100,000 lines of all non-content related Athena Crisis code are open source, including the core data structures, algorithms, game engine, rendering, AI, and the map editor. Backend implementations such as user management, databases, APIs, realtime spectating, server configuration, and app wrappers for Steam or app stores are not open source. We aim to open source more of the game over time, but the content will remain the intellectual property of Nakazawa Tech KK and therefore won't become open source. You can buy and experience Athena Crisis on Steam or buy it on athenacrisis.com.

Why is Athena Crisis open source?

Nakazawa Tech is an Open Core company. See the "Athena Crisis is now Open Source" blog post for more information.

How is this codebase used at Nakazawa Tech?

We use a monorepo for Athena Crisis at Nakazawa Tech and are syncing a portion of the codebase to this repository. Code merged into this open-source repository is automatically synced to the internal monorepo, and vice versa. Athena Crisis always runs the latest version of code from this repository in production.

Why are some folders almost empty?

To simplify dependency management with pnpm, most of the internal package.json files and the pnpm-lock.yaml are public. This makes it easier to share code between the internal monorepo and this repository but leaves some placeholders in this repository, most notably the ares and artemis packages, which can be ignored.

Why are packages named after Greek gods?

Why not!? At some point it became necessary to split the codebase into multiple packages to share code between the client and server. The first package was named athena, and it was hard to come up with meaningful names for the other packages. We decided to name them after Greek gods because it seemed cute.

Over time, many pieces will be extracted into separate packages and published on npm under the @nkzw organization. Please move it to a packages folder and send a Pull Request if you find code that should be extracted into a separate package.

How do assets work in this codebase?

Assets are not part of this codebase and are not open source. Art and other assets are loaded remotely from the Athena Crisis servers for testing and development. If you want to build your own game based on Athena Crisis, you can use the code as a starting point and replace the assets with your own.

I would like to build a commercial project based on this codebase. Can I?

Yes, you can. However, any content such as art, music, story, characters and their descriptions are not open source and are the intellectual property of Nakazawa Tech KK. You can use the codebase to build your own game, but you must replace all content with your own. For example, you have to replace all references to assets in Images.tsx or change character descriptions in Unit.tsx if you want to publish your own game.

If you'd like to use content from Athena Crisis for commercial or non-commercial purposes, you must obtain a license from Nakazawa Tech KK by emailing license@nakazwa.dev.

More information

Check out these links to learn more about the tech behind Athena Crisis:

Athena Crisis Keyart