{"id":15059683,"url":"https://github.com/terezka/yaml","last_synced_at":"2025-10-06T17:29:57.809Z","repository":{"id":62419574,"uuid":"131120541","full_name":"terezka/yaml","owner":"terezka","description":"Work with YAML in Elm.","archived":false,"fork":false,"pushed_at":"2020-07-13T16:09:52.000Z","size":132,"stargazers_count":39,"open_issues_count":7,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T05:48:55.829Z","etag":null,"topics":["decoder","elm","parser","yaml"],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terezka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-26T07:56:55.000Z","updated_at":"2025-03-19T21:20:23.000Z","dependencies_parsed_at":"2022-11-01T17:01:14.236Z","dependency_job_id":null,"html_url":"https://github.com/terezka/yaml","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/terezka/yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terezka%2Fyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terezka%2Fyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terezka%2Fyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terezka%2Fyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terezka","download_url":"https://codeload.github.com/terezka/yaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terezka%2Fyaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278648499,"owners_count":26021907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decoder","elm","parser","yaml"],"created_at":"2024-09-24T22:46:39.334Z","updated_at":"2025-10-06T17:29:57.764Z","avatar_url":"https://github.com/terezka.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YAML in Elm\n\nThis package helps you convert between Elm values and YAML values.\n\n## Example\n\nSay you have some YAML which looks like this:\n\n```yaml\n---\n- name:\n    first: Marie\n    last: Curie\n  occupation: [ chemist, physicist ]\n  nationality: Polish\n- name:\n    first: Alva\n    last: Myrdal\n  occupation: [ sociologist, diplomat, politician ]\n  nationality: Swedish\n- name:\n    first: Svetlana\n    last: Alexievich\n  occupation: [ journalist, historian ]\n  nationality: Belarusian\n...  \n```\n\nto decode this, you could write\n\n```elm\nmodule Woman exposing (Woman, decoder)\n\nimport Yaml.Decode\n\ntype alias Woman =\n  { firstName : String\n  , lastName : String\n  , occupation : List String\n  , nationality : String\n  }\n\ndecoder : Yaml.Decode.Decoder Woman\ndecoder =\n  Yaml.Decode.map4 Woman\n    (Yaml.Decode.at [ \"name\", \"first\" ] Yaml.Decode.string)\n    (Yaml.Decode.at [ \"name\", \"last\" ] Yaml.Decode.string)\n    (Yaml.Decode.field \"occupation\" (Yaml.Decode.list Yaml.Decode.string))\n    (Yaml.Decode.field \"nationality\" Yaml.Decode.string)\n\n```\n\nand run your decoder with `Yaml.Decode.fromString (Yaml.Decode.list Woman.decoder) yamlString`!\n\n## Work in progress\n\nThis package was build to be able to parse data like [this](https://github.com/unitedstates/congress-legislators/blob/master/legislators-current.yaml), and even if it has a few more features (multiline strings, comments) than necessary to parse that file, YAML is a large and complex format, and this parser is still missing a lot of YAML features like references and various logical operations. It is also missing `Yaml.Encode`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterezka%2Fyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterezka%2Fyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterezka%2Fyaml/lists"}