{"id":19793575,"url":"https://github.com/darky/glerd-json","last_synced_at":"2025-07-04T14:37:54.690Z","repository":{"id":242552941,"uuid":"807197256","full_name":"darky/glerd-json","owner":"darky","description":"Gleam JSON encoders/decoders codegen using Glerd","archived":false,"fork":false,"pushed_at":"2024-09-19T16:24:32.000Z","size":32,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T03:48:20.090Z","etag":null,"topics":["codegen","decode","encode","gleam","json"],"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-28T16:35:18.000Z","updated_at":"2024-10-13T15:22:08.000Z","dependencies_parsed_at":"2024-06-03T18:47:49.281Z","dependency_job_id":"0a94a4dd-b2e9-406b-9b52-b4cd0c4cd160","html_url":"https://github.com/darky/glerd-json","commit_stats":null,"previous_names":["darky/glerd-json"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/darky/glerd-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglerd-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglerd-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglerd-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglerd-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darky","download_url":"https://codeload.github.com/darky/glerd-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darky%2Fglerd-json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263557977,"owners_count":23480129,"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":["codegen","decode","encode","gleam","json"],"created_at":"2024-11-12T07:10:26.145Z","updated_at":"2025-07-04T14:37:54.666Z","avatar_url":"https://github.com/darky.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glerd_json\n\n[![Package Version](https://img.shields.io/hexpm/v/glerd_json)](https://hex.pm/packages/glerd_json)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glerd_json/)\n![Erlang-compatible](https://img.shields.io/badge/target-erlang-a2003e)\n![JavaScript-compatible](https://img.shields.io/badge/target-javascript-f1e05a)\n\nGleam JSON encoders/decoders codegen using Glerd\n\n```sh\ngleam add --dev glerd glerd_json\n```\n\n#### 1. Generate types info\n\nUse [Glerd](https://github.com/darky/glerd)\n\n#### 2. Make module for JSON generation\n\n###### my_module.gleam\n\n```gleam\nimport glerd_json\nimport glerd_gen\n\npub fn main() {\n  glerd_gen.record_info\n  |\u003e glerd_json.generate(\"src\", _)\n}\n```\n\n#### 3. Gen JSON encoders/decoders\n\n```sh\ngleam run -m my_module\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/glerd_json\u003e.\n\n## Development\n\n```sh\ngleam test # and then commit generated file\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fglerd-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarky%2Fglerd-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarky%2Fglerd-json/lists"}