{"id":28379403,"url":"https://github.com/bitquery/streaming-demo-view","last_synced_at":"2026-02-17T03:37:26.984Z","repository":{"id":73078026,"uuid":"432624843","full_name":"bitquery/streaming-demo-view","owner":"bitquery","description":"Demo project for streaming","archived":false,"fork":false,"pushed_at":"2023-01-13T12:49:43.000Z","size":882,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-12T20:34:24.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","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/bitquery.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-28T05:14:27.000Z","updated_at":"2023-01-13T13:40:21.000Z","dependencies_parsed_at":"2023-06-03T06:45:09.016Z","dependency_job_id":null,"html_url":"https://github.com/bitquery/streaming-demo-view","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bitquery/streaming-demo-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fstreaming-demo-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fstreaming-demo-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fstreaming-demo-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fstreaming-demo-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitquery","download_url":"https://codeload.github.com/bitquery/streaming-demo-view/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fstreaming-demo-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29532437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T03:01:11.216Z","status":"ssl_error","status_checked_at":"2026-02-17T03:00:31.803Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2025-05-30T02:38:20.361Z","updated_at":"2026-02-17T03:37:26.966Z","avatar_url":"https://github.com/bitquery.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitquery Realtime Streaming Demo\n\n\n## Usage\n\nThe project demonstrates usage of GraphQL subscription to WebSocket streaming of data from the\n[BitQuery](https://bitquery.io) data source. Subscription allows to subscribe to a GraphQL query and receive puch messages on client application ( browser or server side )\nusing Web Sockets.\n\nTo see the demo of this project, use the [https://streaming.bitquery.io/demo](https://streaming.bitquery.io/demo).\n\n## Connecting to WebSocket\n\nWe use graphql-ws protocol to get web socket stream:\n\n1. create graphql query in [Bitquery IDE](https://graphql.bitquery.io) or another Graphql client, for example [GraphiQL](https://www.electronjs.org/apps/graphiql)\n2. replace the keyword \"query\" with the word \"subscription\"\n3. create graphql-ws client\n```\nimport { createClient } from 'graphql-ws'\nconst client = createClient({\n\turl: 'wss://streaming.bitquery.io/graphql'\n});\n```\n4. subscribe\n```\nconst payload = {\n\tquery: `subscription {\n\t\t\t\tEVM(network: bsc){\n\t\t\t\t\tTransfers(Transfer: {Currency: {HasURI: true}}) {\n\t\t\t\t\t\tTransfer {\n\t\t\t\t\t\t\tReceiver\n\t\t\t\t\t\t\tCurrency {\n\t\t\t\t\t\t\t\tName\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tURI\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}`\n};\n(async () =\u003e {\n\tconst onNext = data =\u003e { \n        /* handle incoming values */\n    }\n\n\tlet unsubscribe = () =\u003e {\n\t\t/* complete the subscription */\n\t};\n\n\tawait new Promise((resolve, reject) =\u003e {\n\t\tunsubscribe = client.subscribe(payload, {\n\t\t\tnext: onNext,\n\t\t\terror: reject,\n\t\t\tcomplete: resolve,\n\t\t});\n\t});\n})();\n```\n\n## Subscriptions\n\nCurrently we are limited to the DEX trades and transfers in:\n1. Mainnet ethereum network for Uniswap v2 protocol\n2. BSC network\n\nAll other available GraphQL data types will be available later.\n\n## Build from Sources\n\nclone this repo \n```\ngit clone https://github.com/bitquery/streaming-demo-view.git\n```\n\nInstall packages\n\n`npm install` or `yarn`\n\nRun the project\n`npm run dev` \n\nBrowser will open demo here [http://127.0.0.1:5173/](http://127.0.0.1:5173/).\n\nBuild with\n`npm run build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitquery%2Fstreaming-demo-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitquery%2Fstreaming-demo-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitquery%2Fstreaming-demo-view/lists"}