Elytra HUD is a clientside mod for Fabric that recreates hud indicators from Microsoft Flight Simulator 2020. Some of them (like artificial horizon) can work in pair with Do a Barrel Roll. Additionally, adds some advanced features to make elytra flight more enjoyable

At the moment, there are six different indicators: airspeed, artificial horizon, elytra durability, vertical speed, altitude and compass. You can choose their positions and rendering as you want.

By default, artificial horizon shows your current pitch but if you use Do a Barrel Roll, it will combine pitch and roll like real gyro horizon

As I said, there are 4 advanced settings (disabled by default): Carved pumpkin auto-equipping (can be useful if you use cit resource packs like my CIT Airplanes; Auto-switching to third-person; Auto-switching to 110° FOV; Disabling spin riptide animation during flight

This mod is based on Fabric, so you need Fabric API. I suggest to use Mod menu and Cloth Config API to configure the mod. Optional, you can install Do a Barrel Roll
Based on the BoatHud by Hibi, specifically it's way to render hud indicators