Popper.js is a library for positioning elements relative to other elements, like tooltip positioning or dock positioning.
Famous libraries and frameworks are using Popper.js library to position tooltips and hover effects, including bootstrap.
There are plenty of options and plugins to make Popper.js a powerful positioning library, including auto flipping, keeping target inside a certain area, absolute positioning, fixed positioning etc.