Coding

libfyaml – fully-featured YAML 1.2 and JSON parser/writer

libfyaml is a fully-featured YAML 1.2 and JSON parser/writer with zero-copy operation and no artificial limits.

libfyaml is designed for high performance with zero content duplication, supporting arbitrarily large documents without the 1024-character limit on implicit keys found in other parsers. It passes the complete YAML test suite and provides both event-based (streaming) and document tree APIs for maximum flexibility.

This is free and open source software.

Key Features

  • Zero-copy architecture – minimal memory usage, handles arbitrarily large documents.
  • YAML 1.2 & JSON – full spec compliance, passes complete YAML test suite.
  • Dual API – event-based streaming (like libyaml) or document tree manipulation.
  • No artificial limits – unlike libyaml’s 1024-char implicit key restriction.
  • High performance – up to 24x faster on large files with streaming mode, thread-safe lockless allocators.
  • Rich manipulation – path expressions, scanf/printf-style APIs, programmatic document building.
  • Production-ready – memory-safe, valgrind-clean, extensive test coverage.

Website: github.com/pantoniou/libfyaml
Support:
Developer: Pantelis Antoniou
License: MIT License

libfyaml is written in C. Learn C with our recommended free books and free tutorials.


Related Software

YAML Code Formatters
libfyamlFully-featured YAML 1.2 and JSON parser/writer
yamLittle formatter for YAML
pretty-yamlHuman-readable YAML-serialized data

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments