Guides

Building the index

How Carrick builds and refreshes the index in the cloud, what keeps it current, rescanning a repository, and the optional carrick.json.

Carrick builds the index in the cloud through the GitHub App and refreshes it on every push to the default branch. Nothing runs on your machine, and no workflow files or keys go into your repositories. The Quickstart covers the install.

Carrick writes and keeps each repository’s configuration itself, unless the repository has a carrick.json at its root. Every repository goes into the workspace’s one project.

Cross-service features need at least two services indexed in the same project, for example a backend and the frontend that calls it. They cover who calls a route and whether a consumer’s types still match its producer. The two services can sit in one repository or in several.

What keeps the index current

  • Pushes: Carrick rescans a repository when you push to its default branch.
  • Pull requests: Carrick checks each pull request against the index and comments on it. See PR comments.
  • Rescan: To rebuild a repository’s index on demand, press Rescan beside it on the Repos page of the Carrick dashboard.

To put the index on your machine, run carrick init, or carrick refresh once the index is ready. See CLI.

Optional: your own carrick.json

Carrick works without a carrick.json. Add one at the repository root only if you want to define service boundaries yourself, following the carrick.json schema.

Deno

Where a repository uses Deno, Carrick needs Deno 2.9.4 or newer on the path.

  • Quickstart is the short path from install to a first index.
  • carrick.json explains monorepo service splitting and outbound call classification.
  • CLI lists every command.
  • PR comments describes automated GitHub pull request checks.