{"id":47899123,"url":"https://github.com/almide/yaml","last_synced_at":"2026-04-04T04:00:17.553Z","repository":{"id":347766077,"uuid":"1195214026","full_name":"almide/yaml","owner":"almide","description":"YAML parser and serializer for Almide with Codec integration. 146 tests.","archived":false,"fork":false,"pushed_at":"2026-03-30T01:43:27.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T04:00:14.100Z","etag":null,"topics":["almide","parser","yaml"],"latest_commit_sha":null,"homepage":null,"language":null,"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/almide.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-29T11:39:25.000Z","updated_at":"2026-03-30T01:43:30.000Z","dependencies_parsed_at":"2026-04-04T04:00:17.277Z","dependency_job_id":null,"html_url":"https://github.com/almide/yaml","commit_stats":null,"previous_names":["almide/yaml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almide/yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almide%2Fyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almide%2Fyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almide%2Fyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almide%2Fyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almide","download_url":"https://codeload.github.com/almide/yaml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almide%2Fyaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31387024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"online","status_checked_at":"2026-04-04T02:00:07.569Z","response_time":60,"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":["almide","parser","yaml"],"created_at":"2026-04-04T04:00:15.013Z","updated_at":"2026-04-04T04:00:17.538Z","avatar_url":"https://github.com/almide.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# almide/yaml\n\nYAML parser and serializer for [Almide](https://github.com/almide/almide). Pure Almide implementation with Codec integration.\n\n## Install\n\n```bash\nalmide add almide/yaml\n```\n\n## Usage\n\n```almide\nimport yaml\n\n// Parse YAML text\nlet config = yaml.parse(\"\"\"\n  server:\n    host: localhost\n    port: 8080\n  debug: true\n  \"\"\")!\n\n// Stringify Value to YAML\nlet text = yaml.stringify(config)\n```\n\n### With Codec\n\n```almide\nimport yaml\n\ntype ServerConfig: Codec = { host: String, port: Int, debug: Bool }\n\n// Encode a typed record to YAML string\nlet text = yaml.encode(ServerConfig { host: \"0.0.0.0\", port: 3000, debug: true })\n\n// Decode YAML string to a typed record\nlet config = ServerConfig.decode(yaml.parse(text)!)!\n```\n\n## API\n\n| Function | Signature | Description |\n|---|---|---|\n| `yaml.parse` | `(String) -\u003e Result[Value, String]` | Parse YAML text into a Value |\n| `yaml.stringify` | `(Value) -\u003e String` | Serialize a Value to YAML text |\n| `yaml.encode` | `(T: Codec) -\u003e String` | Encode a Codec type to YAML |\n| `yaml.decode[T]` | `(String) -\u003e Result[T, String]` | Decode YAML to a Codec type |\n\n## Supported Features\n\n- Mappings (indentation-based nesting)\n- Sequences (`- item`)\n- Scalars: plain, single-quoted, double-quoted\n- Numbers, booleans (`true`/`false`), null (`null`, `~`)\n- Comments (`#`)\n- Flow sequences (`[a, b, c]`)\n- Flow mappings (`{x: 1, y: 2}`)\n- Nested structures (arbitrary depth)\n- Sequence of mappings (`- name: A`)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmide%2Fyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmide%2Fyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmide%2Fyaml/lists"}