{"id":24623691,"url":"https://github.com/moomerman/xrpc","last_synced_at":"2025-06-30T10:33:43.763Z","repository":{"id":158085405,"uuid":"633817952","full_name":"moomerman/xrpc","owner":"moomerman","description":"Implementation of the XRPC client spec in Elixir.","archived":false,"fork":false,"pushed_at":"2023-04-28T10:52:40.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T23:12:30.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/moomerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-28T10:52:27.000Z","updated_at":"2023-07-10T18:16:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"af1a7b57-4e6e-4f77-b46c-05f6627dece5","html_url":"https://github.com/moomerman/xrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moomerman/xrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fxrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fxrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fxrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fxrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moomerman","download_url":"https://codeload.github.com/moomerman/xrpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fxrpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262756340,"owners_count":23359503,"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":"2025-01-25T03:57:56.792Z","updated_at":"2025-06-30T10:33:43.707Z","avatar_url":"https://github.com/moomerman.png","language":"Elixir","funding_links":[],"categories":["Elixir"],"sub_categories":[],"readme":"# XRPC\n\nImplementation of the [XRPC](https://atproto.com/specs/xrpc) client spec in Elixir.\n\n## Installation\n\nThe package can be installed by adding `xrpc` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:xrpc, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nThe docs can be found at \u003chttps://hexdocs.pm/xrpc\u003e.\n\n## Usage\n\nNon-authenticated example:\n\n```elixir\nXRPC.Client.new(\"https://bsky.social\")\n|\u003e XRPC.query(\"com.atproto.identity.resolveHandle\", params: [handle: \"atproto.com\"])\n\n{:ok, %{\"did\" =\u003e \"did:plc:ewvi7nxzyoun6zhxrhs64oiz\"}}\n```\n\nAuthenticated example:\n\n```elixir\naccess_token = \"abcd1234\"\nXRPC.Client.new(\"https://bsky.social\", access_token)\n|\u003e XRPC.query(\"app.bsky.actor.getProfile\", params: [actor: \"atproto.com\"])\n\n{:ok,\n  %{\n    \"avatar\" =\u003e\n      \"https://cdn.bsky.social/imgproxy/EoCjH1lIwK1YNFuG_xYYK76vuHhEAQKWAkzlz8BSO_Q/rs:fill:1000:1000:1:0/plain/bafkreibjfgx2gprinfvicegelk5kosd6y2frmqpqzwqkg7usac74l3t2v4@jpeg\",\n    \"banner\" =\u003e\n      \"https://cdn.bsky.social/imgproxy/Goxx1Ze2lScFMdlEXE0pVTzXBxsIuwbdxhYkWo1CVUA/rs:fill:3000:1000:1:0/plain/bafkreib4xwiqhxbqidwwatoqj7mrx6mr7wlc5s6blicq5wq2qsq37ynx5y@jpeg\",\n    \"description\" =\u003e \"Social networking technology created by Bluesky.\",\n    \"did\" =\u003e \"did:plc:ewvi7nxzyoun6zhxrhs64oiz\",\n    \"displayName\" =\u003e \"AT Protocol\",\n    \"followersCount\" =\u003e 1878,\n    \"followsCount\" =\u003e 11,\n    \"handle\" =\u003e \"atproto.com\",\n    \"postsCount\" =\u003e 10,\n    ...\n  }}\n```\n\nExample error:\n\n```elixir\nXRPC.Client.new(\"https://bsky.social\")\n|\u003e XRPC.query(\"app.bsky.actor.getProfile\", params: [actor: \"atproto.com\"])\n\n{:error, %{\"error\" =\u003e \"AuthenticationRequired\", \"message\" =\u003e \"Authentication Required\"}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoomerman%2Fxrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoomerman%2Fxrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoomerman%2Fxrpc/lists"}