Skip to content

Add nx add installation from the nx module registry #686

Done

Description

@Espoir-Loem

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.py and package.json while preserving existing settings.
  • Run declared migrations only with an explicit nx add --migrate flag, 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

  1. added
    enhancement
    on Nov 26, 2026
  2. github-actions commented on Nov 27, 2026

    @github-actions
    Contributor

    Implemented by #689 and merged as a8524eb. Closing automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions