yamllint VS strictyaml

Compare yamllint vs strictyaml and see what are their differences.

Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
yamllint strictyaml
3 6
1,732 950
- -
5.3 6.6
8 days ago 8 days ago
Python Python
GNU General Public License v3.0 only MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of yamllint. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-09.


Posts with mentions or reviews of strictyaml. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-27.
  • No YAML
    6 projects | news.ycombinator.com | 27 Oct 2021
    I recommend this instead of complicated standard yaml:


  • Parsing JSON Is a Minefield
    2 projects | news.ycombinator.com | 11 Oct 2021
    I've had a number of negative experiences with yaml, enough to put me off using it. For example the implicit parsing of 'yes' and 'no' into bools rather than strings (including the NO country code for Norway) [1], the no-quote rules allowing accidental creation of inline hashes/arrays [4], multiline string syntax so complex that it needs a helper tool [2], powerful extensions that invite your program to be exploited [3] and other obscure features (you can reference other yaml sections recursively)

    It manages to be both a poor data interchange language compared to JSON, and also a bad human-friendly langage due to the above ambiguities.

    Unfortunately it's still the best human-friendly configuration language in wide use, so I use [https://hitchdev.com/strictyaml/ strictyaml] instead.

    [1]: https://hitchdev.com/strictyaml/why/implicit-typing-removed/

  • YAML and Configuration Files
    12 projects | news.ycombinator.com | 14 Aug 2021
    I do think some of the more "advanced" features are definitely a mistake. StrictYAML (https://github.com/crdoconnor/strictyaml) is a limited, much saner subset of YAML that I wish people would use more: https://hitchdev.com/strictyaml/features-removed/

    No coercion of y/n/yes/no/on/off to booleans (these were also removed in the official YAML 1.2 spec, thankfully), no direct object representations, no anchors or references, etc.

    12 projects | news.ycombinator.com | 14 Aug 2021
  • The Norway Problem
    18 projects | news.ycombinator.com | 3 Apr 2021
    Not YAML by itself, but there are libraries that parse a YAML-like format that is typed. For example this one: https://hitchdev.com/strictyaml/. Technically, it is not compatible with the YAML spec.
  • I really love TOML files
    4 projects | reddit.com/r/rust | 12 Mar 2021
    It's not that verbose though? Sure you have to repeat yourself for hierarchy (which again, is done that way on purpose, and you shouldn't run into deep structures because again, that means you're doing serialization), but the syntax is pretty, well, clean otherwise. YAML has noisy syntax, and even their example has pretty noisy syntax in StrictYAML. I don't know what the hell is going on from just looking at it as a developer, and I won't until I learn about StrictYAML. That can't be said for TOML, or JSON. And they try to use serialization to show TOML is somehow worse, you would never use TOML for this situation, What configuration is going on here? It looks like this "story" is trying to encode documentation or something? Strict yaml's competitors are YAML and JSON, not TOML.

What are some alternatives?

When comparing yamllint and strictyaml you can also consider the following projects:

pyyaml - Canonical source repository for PyYAML

confuse - painless YAML config files for Python

cue - CUE has moved to https://github.com/cue-lang/cue

carvel-ytt - YAML templating tool that works on YAML structure instead of text

cson - CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.

lua-patterns - Exposing Lua string patterns to Rust

json5 - JSON5 — JSON for humans

kubernetes - Production-Grade Container Scheduling and Management

yaml.el - YAML parser in Elisp