Registries
Registries are used to manage collections of modules & share modules across backends. All modules belong to a registry.
Common practices
Most mature game studios have registries configured like this inside of their game's repo:
Special registries
default
The registry named default is special. Any modules without a specified registry will be fetched from the default registry.
The default config for the default registry is:
You can override this in your rivet.json file.
local
The registry named local is special. All commands with rivet create will create a module in the local registry.
Most projects specify a default registry like:
Types of registries
local
Local registires represent a directory on your local filesystem holding modules. This is useful for custom modules that won't be shared with other backends or for testing.
If a module is stored locally but shared across multiple backends, set isExternal to true.
local modules are included by default in tests & generate migrations, unless isExternal is specified.
Example:
git
Git registries represent a git repository holding modules. This is useful for sharing modules across multiple backends.
This uses the native Git CLI to fetch modules, so you can use private Git registries that your computer has access to.
github
GitHub registries are a convenience alias of the git registry.