{"id":16573789,"url":"https://github.com/dkarter/absinthe_subscription","last_synced_at":"2026-07-03T00:06:18.726Z","repository":{"id":44024967,"uuid":"228668833","full_name":"dkarter/absinthe_subscription","owner":"dkarter","description":"🚇 An example of creating GraphQL Subscriptions over WebSockets using Absinthe and Phoenix Channels","archived":false,"fork":false,"pushed_at":"2024-01-09T04:13:26.000Z","size":1369,"stargazers_count":1,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T12:57:05.231Z","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/dkarter.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":"2019-12-17T17:33:38.000Z","updated_at":"2020-08-01T17:29:55.000Z","dependencies_parsed_at":"2023-02-03T08:02:45.108Z","dependency_job_id":null,"html_url":"https://github.com/dkarter/absinthe_subscription","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkarter/absinthe_subscription","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fabsinthe_subscription","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fabsinthe_subscription/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fabsinthe_subscription/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fabsinthe_subscription/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkarter","download_url":"https://codeload.github.com/dkarter/absinthe_subscription/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkarter%2Fabsinthe_subscription/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265397758,"owners_count":23758451,"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-10-11T21:43:04.817Z","updated_at":"2026-07-03T00:06:18.686Z","avatar_url":"https://github.com/dkarter.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AbsintheSubscription\n\nAn example of creating GraphQL Subscriptions over WebSockets using Absinthe and\nPhoenix Channels.\n\nUses a simple GenServer for storing state.\n\n## Usage\n\nRun the server using: `mix phx.server`\n\nOpen GraphiQL in your browser at [http://localhost:4000/graphiql](http://localhost:4000/graphiql)\n\n### Query Posts\n\n```graphql\n{\n  posts {\n    id,\n    title,\n    body\n  }\n}\n```\n\nThere should be one hardcoded by default.\n\n### Create a Post\n\n```graphql\nmutation createPost {\n  createPost(title: \"another post\", body: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sollicitudin, neque ac ultrices consectetur, eros sem viverra diam, at aliquam nunc mauris non arcu. Ut et sem a justo molestie tristique. Nunc consectetur orci felis, lacinia congue sem accumsan tempus. Sed sit amet risus nec est convallis tempor. Aenean facilisis tristique lacus quis eleifend. Sed elementum bibendum lectus, vel tristique quam sollicitudin in. Praesent sed venenatis nisi, sit amet maximus mauris. Maecenas sit amet pretium nibh, a pharetra lorem. Mauris sagittis erat vel finibus porttitor. Fusce convallis suscipit dolor, vitae tristique elit. Phasellus nisl est, efficitur eu vestibulum nec, commodo in dolor. Donec ac risus leo. Quisque quam velit, sodales non sem in, ullamcorper semper tortor. Quisque dignissim lectus eu ligula dapibus, et hendrerit nisi ultrices.\") {\n    id\n  }\n]\n```\n\n### Create a Subscription\n\nRun this inside of GraphiQL\n\n```graphql\nsubscription {\n  postCreated {\n    id,\n    title,\n    body\n  }\n}\n```\n\nNow in a separate window create more posts. Each time a post is created you will\nsee it in the subscription query.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fabsinthe_subscription","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkarter%2Fabsinthe_subscription","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkarter%2Fabsinthe_subscription/lists"}