{"id":47711675,"url":"https://github.com/beamlabeu/phoenix_kit_user_connections","last_synced_at":"2026-04-04T20:01:26.973Z","repository":{"id":347875794,"uuid":"1195501283","full_name":"BeamLabEU/phoenix_kit_user_connections","owner":"BeamLabEU","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-02T22:34:57.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T04:52:47.871Z","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/BeamLabEU.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-29T18:35:45.000Z","updated_at":"2026-04-02T22:35:01.000Z","dependencies_parsed_at":"2026-04-03T19:00:58.828Z","dependency_job_id":null,"html_url":"https://github.com/BeamLabEU/phoenix_kit_user_connections","commit_stats":null,"previous_names":["beamlabeu/phoenix_kit_user_connections"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/BeamLabEU/phoenix_kit_user_connections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeamLabEU%2Fphoenix_kit_user_connections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeamLabEU%2Fphoenix_kit_user_connections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeamLabEU%2Fphoenix_kit_user_connections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeamLabEU%2Fphoenix_kit_user_connections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeamLabEU","download_url":"https://codeload.github.com/BeamLabEU/phoenix_kit_user_connections/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeamLabEU%2Fphoenix_kit_user_connections/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31371633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"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":"2026-04-02T18:35:32.295Z","updated_at":"2026-04-03T19:01:04.048Z","avatar_url":"https://github.com/BeamLabEU.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhoenixKitUserConnections\n\nSocial relationships module for [PhoenixKit](https://github.com/BeamLabEU/phoenix_kit) — follows, mutual connections, and blocking.\n\n## Features\n\n- **Follows** — One-way relationships (User A follows User B, no consent needed)\n- **Connections** — Two-way mutual relationships (both users must accept)\n- **Blocking** — Prevents all interaction, removes existing follows/connections\n- **History logging** — Full audit trail for all relationship actions\n- **Admin dashboard** — Statistics overview and module toggle\n- **User LiveView** — Tabbed interface for managing personal connections\n\n## Installation\n\nAdd to your `mix.exs` dependencies:\n\n```elixir\n{:phoenix_kit_user_connections, \"~\u003e 0.1.0\"}\n```\n\nThe module is auto-discovered by PhoenixKit at startup — no additional configuration needed.\n\n## Usage\n\n```elixir\n# Follow a user\nPhoenixKitUserConnections.follow(current_user, other_user)\n\n# Request a mutual connection\nPhoenixKitUserConnections.request_connection(current_user, other_user)\n\n# Accept a connection request\nPhoenixKitUserConnections.accept_connection(connection)\n\n# Block a user (removes existing follows/connections)\nPhoenixKitUserConnections.block(current_user, other_user, \"reason\")\n\n# Get full relationship status\nPhoenixKitUserConnections.get_relationship(current_user, other_user)\n# =\u003e %{following: true, followed_by: false, connected: false, ...}\n```\n\n## Business Rules\n\n- Cannot follow/connect with yourself\n- Cannot follow/connect if blocked (either direction)\n- If A requests B while B has pending request to A, both are auto-accepted\n- Blocking removes all existing follows and connections between the users\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeamlabeu%2Fphoenix_kit_user_connections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeamlabeu%2Fphoenix_kit_user_connections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeamlabeu%2Fphoenix_kit_user_connections/lists"}