ModsFinder

5q12's YAML API

by 5q12

5q12's YAML API is a Fabric library for reading YAML files into Java objects and writing Java objects back out as YAML.

FabricClient or server, optionalMIT LicenseOpen source1.19.4 – 1.21

What it does

Mods built on the library can load YAML configuration and data files and convert their contents into Java objects, then write those objects back to disk in YAML format. Fabric API is required, and the library is published only for Fabric, for the game versions 1.19.4, 1.20.1, 1.20.6 and 1.21, as 1.19.4 – 1.21 in the range it covers.

The library is designed specifically for Fabric, so it targets the Fabric loader and its build conventions rather than other loaders. Only a mod that uses the API needs it, since it runs client or server side and a player or server owner can leave it out when no installed mod depends on it.

Source code and an issue tracker are public. The code is open source under the MIT License, and the latest Fabric file is v1.1.3-fabric for 1.21, dated 2024-07-20, after a first release on 2024-07-16.

Key features

  1. Parse YAML into objects

    Loads YAML files from disk and maps their structure onto Java objects for use by a mod.

  2. Serialize objects to YAML

    Turns Java objects into YAML text and saves them to a file in a readable layout.

  3. Object mapping

    Converts between YAML keys and Java fields, so a mod can work with typed objects instead of raw text.

Compatibility

Latest build for each game version and loader.

1.21v1.1.3-fabric
1.20.6v1.1.3-fabric
1.20.1v1.1.3-fabric
1.19.4v1.1.3-fabric
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Mod configuration

A mod can keep its settings in YAML files and read them through the API at startup.

Data storage

A mod can save its state as YAML and reload it later, using the same object mapping in both directions.

Who it’s for: Fabric mod developers who need YAML reading and writing in their own project, rather than parsing the format by hand.

How it compares

Full comparison

Fabric Yaml Configuration is Fabric-only and covers 1.20.1 – 1.21.10, with All rights reserved licensing and no public source. YAML Resources is also Fabric-only, is open source under the MIT License, and covers 1.0 – 1.21.4. YAML Config is open source under the Apache License 2.0 and runs on Fabric and NeoForge for 1.21 – 26.3, so it also covers NeoForge.

ModLoadersGame versionsEnvironmentUpdated
5q12's YAML APIFabric1.19.4 – 1.21Client or server, optional2024-07-20
Fabric Yaml ConfigurationFabric1.20.1 – 1.21.10Client or server, optional2023-10-18
YAML ResourcesFabric1.0 – 1.21.4Client or server, optional2025-03-09
YAML ConfigFabric and NeoForge1.21 – 26.3Client or server, optional2026-10-10

Questions

Does 5q12's YAML API need Fabric API?

Yes. Fabric API is a required dependency, so it must be installed alongside this library.

Is 5q12's YAML API only for Fabric?

Yes. Files are published only for the Fabric loader, for 1.19.4, 1.20.1, 1.20.6 and 1.21.

Does a server need this library installed?

Either side can run it, and neither needs it. A server needs the library only when a mod on that server depends on the API.

In the catalog

5q12's YAML API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,770 mods support Minecraft 1.21.

More from 5q12

All projects

Similar mods

Official listing

Owner
5q12
Published
2024-07-16
Updated on Modrinth
2024-07-20
Facts verified
2026-10-15

Tags