MidnightLib
by Motschen
MidnightLib is a configuration library for mods, providing a lightweight config system that other mods can build on.
What it does
Mods that depend on MidnightLib use it to read and write their settings through one shared system instead of each shipping its own. Installing it is needed only when another mod asks for it. Fabric API is required, and the library runs on the client, the server, or both, so either side can carry it while neither strictly needs it. Files cover Fabric, Forge, NeoForge and Quilt across 34 game versions 1.17 – 26.3, released under the MIT License as open source.
Key features
Shared configuration system
Dependent mods register their options with the library, which handles loading and saving them.
Lightweight design
The library stays small, so it adds little overhead to the mods that rely on it.
Broad version coverage
Builds exist for Fabric, Forge, NeoForge and Quilt, with snapshot builds published alongside releases.
Gallery
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Required by 151 mods
How it compares
Kozhin's Lib is a Forge-only library for 1.20.1, released under All rights reserved and not open source. SugarLib is an open source MIT-licensed library for Fabric and NeoForge on 1.21.1, with the client or server optional. CroakLib is open source under the Apache License 2.0 and covers Fabric, Forge and Quilt for 1.20 – 1.20.6.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| MidnightLib | Fabric, Forge, NeoForge and Quilt | 1.17 – 26.3 | Client or server, optional | 2026-10-14 |
| Kozhin's Lib | Forge | 1.20.1 | Client and server | 2026-04-10 |
| SugarLib | Fabric and NeoForge | 1.21.1 | Client or server, optional | 2024-11-30 |
| CroakLib | Fabric, Forge and Quilt | 1.20 – 1.20.6 | Client and server | 2025-11-04 |
Questions
Does MidnightLib need Fabric API?
In the catalog
MidnightLib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.
More from Motschen
Similar mods
What the author says
MidnightLib is a lightweight library that provides common utils and a configuration system for mods. Mod developers are allowed and encouraged to bundle it with their mods via Jar-in-Jar. Every feature can be toggled in the library's own config screen/file. Visit the new Wiki to get started now.
Official listing
- Modrinth page
- modrinth.com/mod/midnightlib
- Owner
- Motschen
- Published
- 2021-06-01
- Updated on Modrinth
- 2026-10-14
- Facts verified
- 2026-10-15
