CLI & registry

Components are distributed as code you own, not a NuGet dependency. The navius CLI copies a component's source, plus everything it depends on, into your project.

Install the tool

dotnet tool install -g navius --prerelease

List what's available

navius list

Add a component

Resolves the component's registryDependencies (e.g. core, cn), copies the files in, and rewrites the namespace to yours.

navius add dialog --to ./src/MyApp --namespace MyApp.Ui

The registry

The registry is plain JSON modelled on a registry-item schema, so anyone can host their own. Each item lists its files and dependencies; the CLI reads it to resolve a copy.

{
  "name": "dialog",
  "registryDependencies": ["core", "cn"],
  "files": ["Components/Dialog/ZitsDialog.razor", "..."]
}