Heimdall is an open-source, cross-platform tool suite used to flash firmware (ROMs) onto Android-based Samsung devices. It is developed by Glass Echidna (link).
Samsung Odin software is only available for Windows OS. As a result, Heimdall was developed to support the users using macOS and Linux platforms to be able to flash firmware without Samsung’s official Odin tool.