Skip to content

Conversation

@jbrazio
Copy link
Contributor

@jbrazio jbrazio commented Feb 10, 2026

This PR outlines a proposed architectural refactoring of variant definitions within the MeshCore ecosystem. The t114 variant has been refactored as a proof-of-concept implementation. This proposal seeks to determine whether this architectural pattern should be adopted for all variant definitions. before investing more effort into it.

Current variant definitions suffer from significant maintainability challenges. The prevalent practice of copying and pasting configuration sections between variants has resulted in fragmented, inconsistent definitions.

This implementation introduces a modular environment composition system designed to maximize reusability and simplify the creation of new board targets. The refactored t114 variant demonstrates how board targets can be assembled from pre-built, reusable components rather than defined as monolithic configurations.

The core innovation is a library of standardized environment modules that can be mixed and matched to build new targets. Instead of starting from scratch or copying entire configurations, developers can now select base components, combine functionality and customize only what's necessary . This approach makes building new targets significantly easier and faster as common functionality is packaged into reusable modules that can be included with a single reference.

The modular architecture also improves consistency across targets. When a module is updated or improved, all targets using that module benefit automatically. This eliminates the need to manually propagate version upgrades or enhancements across dozens of individual variant files.

@ripplebiz @liamcottle @recrof @fdlamotte

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant