{"id":13427574,"url":"https://github.com/moomerman/atproto","last_synced_at":"2025-08-03T00:08:42.381Z","repository":{"id":158201591,"uuid":"633912191","full_name":"moomerman/atproto","owner":"moomerman","description":"Implementation of the ATProtocol client spec in Elixir.","archived":false,"fork":false,"pushed_at":"2024-11-18T10:28:56.000Z","size":18,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-27T06:24:38.960Z","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":"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}},"created_at":"2023-04-28T15:08:20.000Z","updated_at":"2025-04-16T20:08:20.000Z","dependencies_parsed_at":"2024-01-18T13:40:54.302Z","dependency_job_id":"f20cb351-6557-4fa7-a0f8-1d5a0edfb37c","html_url":"https://github.com/moomerman/atproto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fatproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fatproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fatproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moomerman%2Fatproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moomerman","download_url":"https://codeload.github.com/moomerman/atproto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252913061,"owners_count":21824092,"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":"2024-07-31T01:00:32.140Z","updated_at":"2025-05-07T16:21:29.355Z","avatar_url":"https://github.com/moomerman.png","language":"Elixir","funding_links":[],"categories":["\u003ca name='clients-and-libraries'\u003e\u003c/a\u003e Clients and Libraries","Elixir"],"sub_categories":["\u003ca name='elixir'\u003e\u003c/a\u003e Elixir"],"readme":"# ATProto\n\nImplementation of the [ATProtocol](https://atproto.com/docs) client spec in Elixir.\n\n## Installation\n\nThe package can be installed by adding `atproto` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:atproto, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nThe docs can be found at \u003chttps://hexdocs.pm/atproto\u003e.\n\n## Usage\n\n`ATProtocol` uses [XRPC](https://github.com/moomerman/xrpc) for API communication, so we need to build an `XRPC.Client` and then we can call `ATProto` or `ATProto.BSky` functions.\n\nUnauthenticated example:\n\n```elixir\nXRPC.Client.new(\"https://bsky.social\")\n|\u003e ATProto.resolve_handle(\"atproto.com\")\n\n{:ok, %{\"did\" =\u003e \"did:plc:ewvi7nxzyoun6zhxrhs64oiz\"}}\n```\n\nAuthenticated example:\n\n```elixir\nclient = XRPC.Client.new(\"https://bsky.social\")\n\n{:ok, session} = ATProto.create_session(client, \"atproto@example.com\", \"xxxx-xxxx-xxxx-xxxx\")\n\nclient\n|\u003e Map.put(:access_token, session.access_jwt)\n|\u003e ATProto.BSky.get_profile(\"atproto.com\")\n\n{:ok,\n %ATProto.BSky.ProfileViewDetailed{\n   avatar: \"https://cdn.bsky.social/imgproxy/EoCjH1lIwK1YNFuG_xYYK76vuHhEAQKWAkzlz8BSO_Q/rs:fill:1000:1000:1:0/plain/bafkreibjfgx2gprinfvicegelk5kosd6y2frmqpqzwqkg7usac74l3t2v4@jpeg\",\n   banner: \"https://cdn.bsky.social/imgproxy/Goxx1Ze2lScFMdlEXE0pVTzXBxsIuwbdxhYkWo1CVUA/rs:fill:3000:1000:1:0/plain/bafkreib4xwiqhxbqidwwatoqj7mrx6mr7wlc5s6blicq5wq2qsq37ynx5y@jpeg\",\n   description: \"Social networking technology created by Bluesky.\",\n   did: \"did:plc:ewvi7nxzyoun6zhxrhs64oiz\",\n   display_name: \"AT Protocol\",\n   followers_count: 1965,\n   follows_count: 11,\n   handle: \"atproto.com\",\n   posts_count: 10,\n   ...\n }}\n```\n\nCreating a new post on Blue Sky:\n\n```elixir\n{:ok, session} = ....\nXRPC.Client.new(\"https://bsky.social\", session.access_jwt)\n|\u003e ATProto.BSky.create_post(\"atproto.com\", text: \"Hello Elixir 💜\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoomerman%2Fatproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoomerman%2Fatproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoomerman%2Fatproto/lists"}