{"id":19793579,"url":"https://github.com/darky/gledo","last_synced_at":"2026-03-19T11:45:12.536Z","repository":{"id":239454014,"uuid":"799596720","full_name":"darky/gledo","owner":"darky","description":"Gleam decode Option","archived":false,"fork":false,"pushed_at":"2024-05-12T20:25:17.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T13:07:59.766Z","etag":null,"topics":["decode","gleam","option"],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-12T16:01:21.000Z","updated_at":"2024-05-24T21:48:25.000Z","dependencies_parsed_at":"2024-05-12T21:30:57.141Z","dependency_job_id":null,"html_url":"https://github.com/darky/gledo","commit_stats":null,"previous_names":["darky/gledo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/darky/gledo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgledo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgledo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgledo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgledo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darky","download_url":"https://codeload.github.com/darky/gledo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fgledo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28835142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["decode","gleam","option"],"created_at":"2024-11-12T07:10:27.272Z","updated_at":"2026-01-28T02:51:41.924Z","avatar_url":"https://github.com/darky.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gledo\n\n[![Package Version](https://img.shields.io/hexpm/v/gledo)](https://hex.pm/packages/gledo)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gledo/)\n\nGleam decode Option\n\n```sh\ngleam add gledo\n```\n\n```gleam\nimport gledo\n\npub fn main() {\n  Some(123) |\u003e dynamic.from |\u003e gledo.decode_option // Ok(Some(123))\n\n  None |\u003e dynamic.from |\u003e gledo.decode_option // Ok(None)\n\n  123 |\u003e dynamic.from |\u003e gledo.decode_option // Error([DecodeError(\"Option\", \"Int\", [])])\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/gledo\u003e.\n\n## Why not stdlib dynamic.optional?\n\n`dynamic.optional` from stdlib has permissive design and will successfully decode any value.\u003cbr/\u003e\nIf need to have strict decoding for `Option` value only, feel free to use **gledo**\n\n## Development\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\ngleam shell # Run an Erlang shell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fgledo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarky%2Fgledo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fgledo/lists"}