{"id":13740952,"url":"https://github.com/lpil/cymbal","last_synced_at":"2025-11-01T12:04:54.944Z","repository":{"id":222366213,"uuid":"757108729","full_name":"lpil/cymbal","owner":"lpil","description":"Build YAML in Gleam!","archived":false,"fork":false,"pushed_at":"2024-07-25T13:20:54.000Z","size":5,"stargazers_count":15,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T00:42:48.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lpil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-02-13T20:29:59.000Z","updated_at":"2024-11-10T12:51:32.000Z","dependencies_parsed_at":"2024-02-13T20:48:53.787Z","dependency_job_id":null,"html_url":"https://github.com/lpil/cymbal","commit_stats":null,"previous_names":["lpil/cymbal"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fcymbal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fcymbal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fcymbal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fcymbal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/cymbal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753991,"owners_count":20342537,"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","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":[],"created_at":"2024-08-03T04:00:53.931Z","updated_at":"2025-11-01T12:04:54.902Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":["Packages","Gleam"],"sub_categories":["Formats"],"readme":"# cymbal\n\nBuild YAML in Gleam!\n\n[![Package Version](https://img.shields.io/hexpm/v/cymbal)](https://hex.pm/packages/cymbal)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/cymbal/)\n\n```sh\ngleam add cymbal\n```\n```gleam\nimport cymbal.{block, array, string, int}\n\npub fn main() {\n  let document = \n    block([\n      #(\"apiVersion\", string(\"v1\")),\n      #(\"kind\", string(\"Pod\")),\n      #(\"metadata\", block([#(\"name\", string(\"example-pod\"))])),\n      #(\n        \"spec\",\n        block([\n          #(\n            \"containers\",\n            array([\n              block([\n                #(\"name\", string(\"example-container\")),\n                #(\"image\", string(\"nginx\")),\n                #(\"ports\", array([block([#(\"containerPort\", int(80))])])),\n              ]),\n            ]),\n          ),\n        ]),\n      ),\n    ])\n\n  cymbal.encode(document)\n  // ---\n  // apiVersion: v1\n  // kind: Pod\n  // metadata:\n  //   name: example-pod\n  // spec:\n  //   containers:\n  //   - name: example-container\n  //     image: nginx\n  //     ports:\n  //     - containerPort: 80\n  )\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/cymbal\u003e.\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%2Flpil%2Fcymbal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Fcymbal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fcymbal/lists"}