{"id":18877273,"url":"https://github.com/64bit/word-count-pubnub","last_synced_at":"2025-08-20T15:05:11.128Z","repository":{"id":71681790,"uuid":"78514525","full_name":"64bit/word-count-pubnub","owner":"64bit","description":"Counts word on a webpage using Block on PubNub","archived":false,"fork":false,"pushed_at":"2017-01-11T23:14:15.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T03:39:49.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/64bit.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,"zenodo":null}},"created_at":"2017-01-10T08:45:01.000Z","updated_at":"2017-01-12T19:26:11.000Z","dependencies_parsed_at":"2023-05-14T12:30:10.932Z","dependency_job_id":null,"html_url":"https://github.com/64bit/word-count-pubnub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/64bit/word-count-pubnub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64bit%2Fword-count-pubnub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64bit%2Fword-count-pubnub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64bit%2Fword-count-pubnub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64bit%2Fword-count-pubnub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/64bit","download_url":"https://codeload.github.com/64bit/word-count-pubnub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64bit%2Fword-count-pubnub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271337913,"owners_count":24742057,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-08T06:17:59.640Z","updated_at":"2025-08-20T15:05:11.123Z","avatar_url":"https://github.com/64bit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# word-count-pubnub\nCounts word on a webpage using Block on PubNub\n\nDemo: https://64bit.github.io/word-count-pubnub/\n\n\n# Data Flow: \n\n```\n          |\n          |\n(channel:wordcount)\n          |\n          |\n[Event Handler: download_url.js ] \n          |\n          |\n  (channel:page) \n          |\n          |\n [Event Handler: split_page.js ] \n          |\n          |\n  (channel:words) \n          |\n          |\n[Event Handler: word_counter.js ] \n          |\n          |\n(channel:counted-words)\n          |\n         \\|/\n       \n```\n\nNotes:\n* download_url.js publishes only 15000 characters of downloaded page as PubNub payload limit is 32K. The page is published as string and will have escaped characters making it bigger than 15K characters\n* download_url.js doesn't seem to handle 30X responses, for example http://www.google.com won't work because it redirects to https. Similarly https://www.twitter.com doesn't work because it redirects to https://twitter.com\n* split_page.js splits on any character which is not digit or alphabet, using regex: `/[^A-Za-z0-9]/`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64bit%2Fword-count-pubnub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F64bit%2Fword-count-pubnub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64bit%2Fword-count-pubnub/lists"}