{"id":21346867,"url":"https://github.com/queer/peek","last_synced_at":"2026-03-05T07:01:49.269Z","repository":{"id":62430304,"uuid":"339639390","full_name":"queer/peek","owner":"queer","description":"Peek at typespecs on your modules and get them in a human-friendly form.","archived":false,"fork":false,"pushed_at":"2021-02-18T06:23:16.000Z","size":20,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T11:14:19.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/queer.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}},"created_at":"2021-02-17T07:08:52.000Z","updated_at":"2024-10-06T03:58:21.000Z","dependencies_parsed_at":"2022-11-01T20:20:56.413Z","dependency_job_id":null,"html_url":"https://github.com/queer/peek","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/queer/peek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fpeek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fpeek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fpeek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fpeek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queer","download_url":"https://codeload.github.com/queer/peek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fpeek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30113111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-11-22T02:11:48.866Z","updated_at":"2026-03-05T07:01:49.250Z","avatar_url":"https://github.com/queer.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peek\n\nParse out typespecs on your modules to create human-legible type data.\n\nSample input/output:\n\n```Elixir\ndefmodule A do\n  use TypedStruct\n\n  typedstruct do\n    @type test() :: :ok\n    @type test_two() :: :ok | :error\n\n    field :one, String.t()\n    field :two, test()\n    field :three, test_two()\n  end\nend\n\nPeek.peek A\n# returns\n%{\n  t: {:map,\n    [\n      # :__struct__ is a magic key\n      {{:atom, :__struct__}, {:atom, A}},\n      # Types are a union `type | nil`\n      {{:atom, :one}, {:union, [:string, {:atom, nil}]}},\n      {{:atom, :three}, {:union, [union: [atom: :ok, atom: :error], atom: nil]}},\n      {{:atom, :two}, {:union, [atom: :ok, atom: nil]}}\n    ]}\n}\n\n```\n\nExamples are difficult, so check out [test/peek_test.exs](https://github.com/queer/peek/blob/master/test/peek_test.exs)\nto see some more.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `peek` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:peek, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/peek](https://hexdocs.pm/peek).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fpeek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueer%2Fpeek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fpeek/lists"}