Skip to content
CodArchthe living map of the architecture
ESEN

Installation

CodArch installs in three ways. Pick the one that fits how you work; all three read your repository locally and upload no code anywhere.

OptionWhat you getRequirements
npmcodarch CLI + webapp served by codarch serveNode.js 22 or newer
DockerThe webapp only, in a containerDocker
DesktopNative app for Windows or LinuxWindows x64, or Linux x64 (.deb or AppImage)

The codarch npm package ships the CLI with the compiled webapp inside: one install.

Ventana de terminal
npm i -g codarch

The package declares "engines": { "node": ">=22" }. Check yours with node --version.

Check the install and open the webapp on a repository:

Ventana de terminal
codarch --version
cd path/to/your-repo
codarch serve .

serve analyses the repository, serves the app at http://127.0.0.1:4173 and refreshes it when files change.

Terminal running codarch serve . and the webapp open in the browser

All options are in codarch serve.

The ghcr.io/jaminsmoke/codarch-web image is a codarch install with the webapp inside. It runs codarch serve /workspace --host 0.0.0.0 --port 4173, so you only mount your repository at /workspace and publish port 4173:

Ventana de terminal
docker run --rm \
-p 127.0.0.1:4173:4173 \
-v "$PWD:/workspace:ro" \
ghcr.io/jaminsmoke/codarch-web:latest

In PowerShell, use -v "${PWD}:/workspace:ro". Then open http://127.0.0.1:4173.

  • The mount is read-only (:ro): the app does not write to your repository.
  • Publish the port on 127.0.0.1 only: it is not a network service.
  • The image includes git to read churn and history, and a healthcheck on /data/meta.json.
  • Every release publishes two tags: latest and the exact version (for example 0.3.36).

With Docker Compose (if you cloned the repository)

Section titled “With Docker Compose (if you cloned the repository)”

The repository’s docker-compose.yml builds the image from source. It is meant for people working on a CodArch clone; to use the app, docker run is enough. CODARCH_REPO is the host path mounted at /workspace (the current folder by default):

Ventana de terminal
CODARCH_REPO=/path/to/your-repo docker compose up --build

Only Compose reads CODARCH_REPO; the container does not. With docker run, the path goes in -v.

Download the installer from the latest release on GitHub Releases:

SystemFileNotes
Windows x64codarch-<version>-setup.exeNSIS installer, per user; lets you pick the folder and creates shortcuts.
Linux x64codarch-<version>-amd64.debSystem install (sudo apt install ./codarch-….deb).
Linux x64codarch-<version>-x86_64.AppImageNo install: chmod +x and run.

The installers are not signed: Windows SmartScreen may warn when opening the .exe (“More info” → “Run anyway”). There is no macOS installer yet.