{"id":13741071,"url":"https://github.com/lpil/glance","last_synced_at":"2026-02-04T12:34:51.889Z","repository":{"id":164396818,"uuid":"639834005","full_name":"lpil/glance","owner":"lpil","description":"👁️‍🗨️ A Gleam source code parser, in Gleam!","archived":false,"fork":false,"pushed_at":"2025-10-19T17:46:10.000Z","size":262,"stargazers_count":71,"open_issues_count":4,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-20T01:10:43.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-12T10:29:28.000Z","updated_at":"2025-10-19T17:46:14.000Z","dependencies_parsed_at":"2024-01-30T12:26:07.837Z","dependency_job_id":"65394877-90db-4723-b5b0-2660714f5071","html_url":"https://github.com/lpil/glance","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/lpil/glance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fglance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fglance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fglance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fglance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/glance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Fglance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29084382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-08-03T04:00:55.122Z","updated_at":"2026-02-04T12:34:51.883Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":["Gleam","Packages"],"sub_categories":["Text"],"readme":"# glance\n\n[![Package Version](https://img.shields.io/hexpm/v/glance)](https://hex.pm/packages/glance)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glance/)\n\nA Gleam source code parser, in Gleam!\n\nGlance attempts to be permissive with regards to what it will parse and so it is\nable to parse some code that the Gleam compiler will reject as invalid.\n\n## Usage\n\nAdd the package to your Gleam project:\n\n```sh\ngleam add glance\n```\n\nThen get parsing!\n\n```gleam\nimport glance\nimport gleam/io\n\nconst code = \"\n  pub type Cardinal {\n    North\n    East\n    South\n    West\n  }\n\"\n\npub fn main() {\n  let assert Ok(parsed) = glance.module(code)\n  echo parsed.custom_types\n}\n```\n\nThis program print this to the console:\n  \n```gleam\n[\n  Definition(\n    [],\n    CustomType(\n      name: \"Cardinal\",\n      publicity: Public,\n      parameters: [],\n      variants: [\n        Variant(\"North\", []),\n        Variant(\"East\", []),\n        Variant(\"South\", []),\n        Variant(\"West\", []),\n      ],\n    ),\n  ),\n]\n```\n\nAPI documentation can be found at \u003chttps://hexdocs.pm/glance\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fglance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Fglance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Fglance/lists"}