Skip to content

Contributing to Cratis Chronicle

Building the Workbench frontend requires Node.js 24.x (>=24 <25). Use Node.js 24 for the TypeScript client and documentation verification too, matching CI. The Workbench uses the Yarn version pinned in Source/Workbench/package.json.

Topic Description
Library guidance Applying .NET library, options, and logging guidance to Chronicle contributions.
Integration Tests How to run and work with integration tests.
Issue Labels How issues are labelled, and why idea and investigate issues are never stale.
PrimeUI License Supplying the PrimeReact/PrimeUI license key when working on the Workbench.
Building a Client Starting a brand-new Chronicle client from scratch.
Clients Contributing to the clients.
Kernel Contributing to the Kernel.

Before pushing or folding .NET changes, run this command from the repository root:

Terminal window
node .github/scripts/preflight.mjs

Use Node.js 24 and the .NET SDK selected by global.json, with NuGet access configured for the repository’s dependencies. The command restores and builds Chronicle.slnx in Release, matching the standard analyzers job in .github/workflows/dotnet-build.yml: warnings are errors, analyzers and code-style checks are enabled, and proxy generation and Docker builds are disabled. It forces code generation and recompiles even after an incremental build that skipped analyzers. A local macOS run took about 16 minutes (947 seconds), excluding queue wait; hardware and caches affect the time, and first runs can take longer. The command prints elapsed time and returns the build’s exit code. It compiles spec projects but does not run specs, including integration specs; run those separately as described in Integration Tests.

To run the preflight automatically before pushes, opt in to the versioned hook:

Terminal window
git config core.hooksPath .githooks

If you already use another hooks directory, integrate the preflight there instead of replacing existing hooks. The hook checks every pushed ref against the remote commit supplied by Git. It skips the build only when every pushed change is outside the .NET build: Markdown files, the Workbench front-end source in Source/Workbench, and the Documentation, .github, .cratis and .githooks folders. Ref deletions also skip; any other change, and a new remote ref, triggers the build. The manual command always builds. Use Git’s git push --no-verify only when intentionally bypassing pre-push hooks.