Repository navigation
Description
Problem
Once a Nexy module is published in the nx registry, a developer needs one command to install it. Today nx add handles built in UI components and remote component files only. It cannot resolve a namespaced module, install its Python and JavaScript dependencies, apply its config hooks or run its migrations.
Proposed solution
Extend nx add to resolve names from the nx registry, for example nx add @acme/auth or nx add @acme/[email protected]:
- Download the manifest and archive, check the checksum, and check compatibility with the installed Nexy and Python versions.
- Verify the signature when the release has one and print the identity of the signer. Ask before installing an unsigned release when the project requires signed modules.
- Write only the files the module declares, and never overwrite a file the developer owns.
- Install Python dependencies with
uv add, and JavaScript dependencies with the detected Node package manager. - Apply the declared config hooks to
nexyconfig.pyandpackage.jsonwhile preserving existing settings. - Run declared migrations only with an explicit
nx add --migrateflag, and print every change. - Leave the project unchanged on a second run with the same version.
Acceptance criteria:
- Installing a module twice produces no further changes.
- A conflicting file is reported and skipped, not overwritten.
- A module with both Python and JavaScript dependencies installs both.
- A signature mismatch or checksum mismatch aborts before any file is written.
- Tests cover resolution, compatibility, checksum, signature, dependency installation, conflict handling and idempotency.
- A docs page explains install, upgrade, pins and trust settings.
Alternative solutions
Keep using nx add <url> and ask each module author to document the manual steps. That avoids registry integration but leaves dependencies and config edits to the developer.
Additional context
The built in component flow lives in nexy/modules/cli/commands/add.py and nexy/modules/cli/init/registry.py. install_packages only handles Node packages; Python packages must be added through uv add or the project pyproject.toml. This issue depends on NexyPy/nx-registry#1 for the manifest and service, and on #688 for signature verification.
Validation
- I have searched existing issues and this is not a duplicate.
- I would be willing to help implement this feature.
Activity
github-actions commentedon Nov 27, 2026
Implemented by #689 and merged as a8524eb. Closing automatically.