{"id":16525917,"url":"https://github.com/thetarnav/odin-graphql-parser","last_synced_at":"2025-10-28T08:31:38.663Z","repository":{"id":228678401,"uuid":"772766920","full_name":"thetarnav/odin-graphql-parser","owner":"thetarnav","description":"GraphQL schema parser written in Odin","archived":false,"fork":false,"pushed_at":"2024-05-30T22:03:51.000Z","size":104,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T07:15:03.684Z","etag":null,"topics":["graphql","odin","odinlang","parser"],"latest_commit_sha":null,"homepage":"","language":"Odin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thetarnav.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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-03-15T21:21:04.000Z","updated_at":"2024-08-14T06:16:16.000Z","dependencies_parsed_at":"2024-03-24T21:47:23.971Z","dependency_job_id":null,"html_url":"https://github.com/thetarnav/odin-graphql-parser","commit_stats":null,"previous_names":["thetarnav/odin-graphql-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetarnav%2Fodin-graphql-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetarnav%2Fodin-graphql-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetarnav%2Fodin-graphql-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thetarnav%2Fodin-graphql-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thetarnav","download_url":"https://codeload.github.com/thetarnav/odin-graphql-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238623062,"owners_count":19502977,"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":["graphql","odin","odinlang","parser"],"created_at":"2024-10-11T17:07:57.059Z","updated_at":"2025-10-28T08:31:38.304Z","avatar_url":"https://github.com/thetarnav.png","language":"Odin","funding_links":[],"categories":["Libraries"],"sub_categories":["Webdev"],"readme":"# Odin GraphQL Parser\n\nThis is a GraphQL language parser based on the [GraphQL spec](https://spec.graphql.org/October2021) written in [Odin](https://odin-lang.org/).\n\nCurrently only parsing the schema is supported.\n\n## Usage\n\n```odin\npackage example\n\nimport \"core:fmt\"\nimport gql \"odin-graphql-parser\"\n\nschema_src := #load(\"schema.gql\", string)\n\nmain :: proc() {\n    schema := gql.schema_make()\n    err := gql.schema_parse(\u0026schema, schema_src)\n    defer gql.schema_delete(schema) // Or free the used allocator\n\n    if err != nil {\n        fmt.printfln(\"Error parsing schema: %v\", err)\n        return\n    }\n\n    for type in schema.types {\n        fmt.printfln(\"Type: %s\", type.name)\n    }\n}\n```\n\n```gql\n# schema.gql\nschema {\n    query: Root\n}\ntype Root {\n    test: Test\n}\ntype Test implements Node {\n    name: String!\n    items: [Item]!\n}\ntype Item implements Node {\n    name: String\n    color: Color\n}\ninterface Node {\n    id: ID!\n}\nenum Color {\n    RED\n    GREEN\n    BLUE\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetarnav%2Fodin-graphql-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthetarnav%2Fodin-graphql-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetarnav%2Fodin-graphql-parser/lists"}