
ESPEasy lives on GitHub, and the repository is far more than a place to download a ZIP file. It holds the complete history of the project, every plugin and controller, the documentation sources, the build system and the conversations that shape new releases. Learning to find your way around it turns the firmware from a black box into something you can inspect, question and, if you wish, improve.
This article explains how the repository is organised, what the main branch represents, how releases are produced, where to look for answers when something goes wrong and how to compile your own build.
Who Maintains the Repository
The repository belongs to the Let's Control It organisation, the community that has developed the firmware since 2015. Early versions were published on SourceForge, but development moved to GitHub during the Mega rewrite, when the code was reorganised into modules and support for multiple controllers was introduced. Since then a small core team, supported by a wider group of contributors, has steered development, reviewed pull requests and published releases.
The project is released under the GNU General Public License version 3. In practical terms, this means you may use, study, modify and redistribute the code, provided that any distributed modifications are released under the same licence and the source remains available.
The Mega Branch
Most repositories have a main branch called main or master. Here it is called mega, a name inherited from the large rewrite that began in 2016. The project's own documentation describes this as the development branch into which all new features flow, and over time it has also become the branch from which regular releases are taken.
For everyday users, this simply means that the mega branch represents the most current state of the firmware. When you download the branch as a ZIP archive, you receive the source code exactly as it stood at that moment, including recent fixes and features that may not yet appear in a numbered release.
That freshness cuts both ways. A branch archive is ideal for developers and anyone who wants to compile a build with the latest changes. For a board that simply needs to work reliably, a published release that has already been built and noted is usually the more comfortable choice.
Releases and Release Notes
Releases are produced on demand by the project's build system and named after their build date, such as mega-20260720. Each release page lists the changes made since the previous release, often grouped by contributor, along with downloadable archives of compiled firmware.
The release notes are worth more attention than they usually receive. They record bug fixes, new plugins, changes to how settings are stored and, occasionally, explicit warnings. A large mid-2026 release, for instance, advised users to back up their settings and to ensure physical access to their nodes before updating, because the conversion of network settings might not cover every configuration in the field. Notes like that can save an afternoon of troubleshooting.
How the Source Tree Is Organised
Opening the repository for the first time can feel overwhelming, but the layout follows a clear logic once you know what to look for.
The src Directory
The src directory holds the firmware itself. Plugins are stored in files whose names begin with an underscore, the letter P and a three-digit number, so the switch input plugin appears as a P001 file and the BME280 environment plugin as P028. Controllers follow a similar pattern with the letter C, while notification modules use the letter N. Supporting code for networking, storage, the web interface and the rules engine sits alongside them in organised subfolders.
This numbering scheme is useful well beyond the repository. Documentation pages, forum threads and release notes all refer to plugins by number, so recognising P005 as the DHT plugin or C005 as the Home Assistant and openHAB MQTT controller makes it much easier to follow technical discussions.
The docs Directory
The docs directory contains the source files for the official documentation hosted on Read the Docs. Because the documentation is built automatically from the repository, it stays closely aligned with the code. Each plugin and controller has its own page describing its settings, supported hardware, status on each chip family and, in many cases, example rules.
Build Configuration
At the top level you will find platformio.ini and a collection of related configuration files. Together they define every build environment the project produces, from small ESP8266 images to large ESP32 builds with every plugin enabled. Reading these files is the quickest way to understand exactly which plugins and features a particular build includes.
Tools and Distribution Files
Other folders hold helper scripts, distribution material and resources such as the bundled flashing tools. These are mainly of interest to people preparing releases or building custom images, but they also explain where some of the files in a release archive come from.
Issues, Pull Requests and Discussions
The Issues tab is where bugs are reported and tracked. Before opening a new issue, search existing ones, including closed issues. A large proportion of problems have already been reported, explained or fixed, and the conversation often contains workarounds you can apply immediately.
When you do report something, include the exact build name, the chip and board type, what you expected to happen and what actually happened. Log output from the device, captured through the web interface or the serial console, makes a report far more useful to the people trying to help.
Pull requests show proposed changes to the code. Reading recently merged pull requests is an excellent way to see what the next release will contain and how experienced contributors structure their work. The project also maintains a long-running community forum, which remains the better place for general questions and project advice rather than confirmed bugs.
Building ESPEasy From Source
Compiling your own firmware is the main reason to download the source archive rather than a release. It allows you to create an image containing exactly the plugins you need, to test a fix before it appears in a release or to experiment with your own code.
The project recommends PlatformIO, used through Visual Studio Code or its pioarduino variant. The Arduino IDE is no longer supported for development, and while it is technically possible to use it, the documentation notes that setting it up for this project takes considerable effort.
A typical workflow looks like this in outline. Install Visual Studio Code and the PlatformIO extension. Obtain the source, either by downloading the mega branch archive or by cloning the repository with Git. Open the folder in Visual Studio Code and allow PlatformIO to install the required platforms and libraries, which can take some time on the first run. Select a build environment that matches your chip, then build the image and upload it over USB.
Custom Builds With Custom.h
For tailored images, the project supports a file called Custom.h, created from a supplied sample. It lets you define which plugins and controllers to include and set default values such as Wi-Fi credentials, unit name and controller settings. A custom build environment then compiles the firmware using those definitions.
Pre-setting defaults can be particularly useful when you are preparing several identical nodes, because each board starts with the same configuration rather than requiring manual setup through the access point.
Forking and Contributing
If you want to contribute changes back to the project, the better approach is to fork the repository to your own GitHub account, clone your fork and add the original repository as an upstream remote. This lets you keep your fork synchronised with the latest mega branch and submit pull requests from feature branches. The documentation includes a starter guide that walks through this flow step by step.
Keeping a Local Copy Up to Date
Developers who work with the source regularly tend to clone the repository with Git rather than downloading a fresh ZIP archive each time. A clone can be updated with a single pull command, keeping your working copy in step with the mega branch without repeated downloads.
If you prefer the archive approach, simply replace your local folder with a newly downloaded copy. Keep any custom files, such as your Custom.h, outside the source folder or back them up first so that they are not lost when you replace the files.
Reading the Code Without Building It
You do not need to compile anything to benefit from the source. Opening a plugin file reveals which settings it exposes, which values it produces and which commands it accepts. When documentation is brief or unclear, the source is the authoritative reference.
The same applies to controllers. If you want to understand exactly how a value is formatted before it reaches your MQTT broker, or how a command arriving over MQTT is interpreted, the relevant controller file holds the answer.
Watching the repository on GitHub, or subscribing to release notifications, is a simple way to learn about new releases as soon as they are published, without checking the page manually.
Frequently Asked Questions
Where is the official ESPEasy repository?
It is hosted on GitHub under the Let's Control It organisation, in a repository named ESPEasy.
What is the difference between the mega branch and a release?
The mega branch is the live source code. A release is a dated snapshot of that code that has been compiled into ready-to-flash firmware files.
Does the branch ZIP contain firmware I can flash directly?
No. It contains source code and build configuration. You need to compile it, or use a published release, to obtain .bin files.
Which tool should I use to compile the firmware?
PlatformIO, used through Visual Studio Code or pioarduino, is the recommended and supported option.
Can I add only the plugins I need?
Yes. A custom build using Custom.h lets you choose which plugins and controllers are included and set default configuration values.
Where should I report a bug?
Search existing issues on GitHub first. If the problem is new and reproducible, open an issue with the build name, board type and relevant logs.
Conclusion
ESPEasy on GitHub is the foundation on which everything else rests. The mega branch carries the latest code, releases turn that code into dated firmware packages, and the source tree, documentation and issue tracker together explain how and why the firmware behaves as it does. Whether you only ever browse the release notes or go on to compile your own images, a working knowledge of the repository makes you a more confident and better-informed user.