Fabric Gui ImGui Mod exists to draw interface elements: menu windows, control panels and on-screen buttons. Those are drawn on your screen, so the library matters wherever that drawing happens. That is your game client.
Single-player and your own client
1. Place the library in the same mods folder as the mod that requires it.
2. Make sure the requiring mod is in that folder too. The library adds nothing visible without it.
3. Launch the game and open whatever window or panel the other mod provides.
Multiplayer and servers
- Follow the requiring mod's instructions. Most of the time this library only needs to be on your client. If the mod that depends on it must also run on the server, install the library there as well. A dependency has to sit next to the mod that needs it.
- Joining someone else's server: if a mod in the server's modpack uses ImGui windows, every player who wants to see those panels needs the library on their own client.
- Running a server: if no server-side mod lists this library as a requirement, you most likely don't need it there. It adds no blocks or items that would have to match between server and client.
Quick check
If a mod's panels show up for you in single-player but not on a server, compare your mods folder with the server's mod list. Make sure the library sits alongside every mod that needs it.