Skip to content

Why bother with PRs for usermods #5318

Open

Description

@blazoncek

Since usermods were converted to libraries (and can be included from any repository using lib_deps) is there any reason to keep PRs for usermods? Do you intend to merge and then maintain such usermods? Is there a plan for what to do with usermods that no longer work or compile or were abandoned?

I would suggest to keep just a list of all available repositories with usermods instead of bothering to test and "maintain" usermods included with WLED.

Instead I'd encourage users interested in WLED featuring their usermod to submit a change to lib_deps in platformio_override.ini sample. Rather than a PR wit usermod.

There is, however, a downside to such listing: endorsing an unverified and potentially malicious usermod.

Thoughts?

Activity

  1. DedeHai commented on Jan 25, 2026

    @DedeHai
    Collaborator

    we did touch this topic in one of the meetings and IIRC the next step would be to document and also have some "guideline" of when a UM would still be eligible to be in core code.

  2. softhack007 commented on Jan 25, 2026

    @softhack007
    Member

    I think we would not do ourselves any favour by saying "why bother about usermods" (which is a very strong and exclusive statement).

    A badly written UM can still cause lots of troubles, like using the "wrong" setPixelColor() at the wrong time, blocking the main loop for too long, not getting activated when many LEDs are being driven, causing inconsistent global state, etc. We have seen all these problems when reviewing UMs (new or updated) in the past.

    Looking at our tickets, currently I see ~34 open issues tagged "usermod". IMHO users will continue to report usermod problems to us, no matter if out-of-tree or not. Plus, what will happen when the author of an out-of-tree mod has no time any more to maintain his work? What happens when a usermod becomes incompatible with the core code, and we have no way to do one-liner fixes easily?

    In summary, I think we would not do our users any favour with "why bother", and maybe we would not even do ourselves (maintainers) any favour.

    I actually see out-of-tree UMs more as a chance for people to add their own enhancements without needing to be integrated into the core sources. Or for centralizing maintenance of AR (or maybe Animartrix) as a separate repo that can be linked into main WLED, WLED-MM and Moonlight without creating three separate UMs.

    Edit: out-of-tree UMs are also an important step for us to learn what it means to "modularize" the codebase (discussed in the last dev ConfCall). Maybe its just too early atm for saying "UMs are not in my department any more".

  3. added
    usermod
    and removed on Jan 25, 2026
  4. DedeHai commented on Jan 26, 2026

    @DedeHai
    Collaborator

    There are usermods that are just not acceptable - like the google calender one or that public transport display - and those should be out of tree. If (or rather when) they brake that is up to the user to fix or run a version of WLED that works with it which will limit the amount of people that can actually compile them.
    There is a second option: bring in the usermods to main code but still put them under "duty" of whoever submitted it. If it breaks and no one is able to fix it, it is removed.

  5. blazoncek commented on Jan 26, 2026

    @blazoncek
    ContributorAuthor

    users will continue to report usermod problems

    Only for the bundled ones. Not the ones available.
    And even if they do, you can always close such issue directing a user to the usermod creator (takes only seconds compared to minutes or hours to properly review a usermod).

  6. blazoncek commented on Jan 26, 2026

    @blazoncek
    ContributorAuthor

    under "duty" of whoever submitted it

    And if they abandon it? What then?

    I am trying to "open the eyes" of WLED team to shove off unnecessary burden of checking and maintaining code that will eventually be used by a handful of people at most.

  7. softhack007 commented on Jan 26, 2026

    @softhack007
    Member

    I agree with the good points that both of you bring up.

    Some usermods are just good for very few people, some are a one-shot adventure of somebody, or even a ball of mud from code quality point of view. In the past we would simply not add them to our usermods collection. Out-of-tree provides a new option for these cases.

  8. softhack007 commented on Jan 26, 2026

    @softhack007
    Member

    There is, however, a downside to such listing: endorsing an unverified and potentially malicious usermod.

    That's another interesting aspect. Indeed if we start a "curated UM list" we might need to give UMs an initial "rating" that's based on a code review done by the team. Maybe we can learn from the HA "Quality Rating" for extensions (not sure how HA really calls it).

  9. github-actions commented on May 26, 2026

    @github-actions

    Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
    Thank you for using WLED! ✨

  10. added
    stale
    on May 26, 2026
  11. blazoncek commented on May 26, 2026

    @blazoncek
    ContributorAuthor

    Still relevant as no actions have been performed.

  12. willmmiles commented on May 26, 2026

    @willmmiles
    Member

    The main thrust was completed in wled/WLED-Docs#312 -- key notes are https://kno.wled.ge/advanced/custom-features/#writing-a-usermod now recommends a fork-the-example-repo workflow, and https://kno.wled.ge/advanced/community-usermods/ is the endpoint for a community module list.

    I concur that the in-tree documentation still needs work; I'll sketch a PR.

  13. removed
    stale
    on May 26, 2026
  14. github-actions commented on Sep 24, 2026

    @github-actions

    Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
    Thank you for using WLED! ✨

  15. added
    stale
    on Sep 24, 2026
  16. blazoncek commented on Sep 24, 2026

    @blazoncek
    ContributorAuthor

    Still relevant and even more so with the attempted move for Audioreactive to go external (out-of-tree).

    RE Audioreactive: Moving AR out-of-tree only means that WLED will need to adapt to any change to Audioreactive that will not "follow upstream" development (i.e. choose its own path - I can see conflict of interests) or lock Audioreactive to a certain version if it is converted to a fully-fledged library.

  17. removed
    stale
    on Sep 25, 2026
  18. netmindz commented on Sep 25, 2026

    @netmindz
    Member

    Not really a conflict of interest given the new V2 version of AudioReactive will be collaboration between the main WLED org with assistance from the MoonModules team

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

    discussionusermod

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions