I have developed a mini-library, consisting of a single pair of .c and .h files, for accessing extended attributes. The code is licensed under the 0BSD license, allowing anyone to use it freely without any restrictions.
Currently it supports Linux, FreeBSD, Solaris and macOS. In the future, I might add an implementation for Windows based on Alternate Data Streams.