{"id":18764416,"url":"https://github.com/tripplyons/viewers","last_synced_at":"2025-10-17T01:55:49.336Z","repository":{"id":57392447,"uuid":"267673177","full_name":"tripplyons/viewers","owner":"tripplyons","description":"Lists who is currently watching a given stream on Twitch","archived":false,"fork":false,"pushed_at":"2020-05-28T19:47:05.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T05:47:29.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/viewers","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/tripplyons.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}},"created_at":"2020-05-28T19:03:25.000Z","updated_at":"2023-10-15T01:25:06.000Z","dependencies_parsed_at":"2022-09-19T20:16:17.152Z","dependency_job_id":null,"html_url":"https://github.com/tripplyons/viewers","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/tripplyons%2Fviewers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripplyons%2Fviewers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripplyons%2Fviewers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripplyons%2Fviewers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripplyons","download_url":"https://codeload.github.com/tripplyons/viewers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239662746,"owners_count":19676435,"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-11-07T18:29:45.418Z","updated_at":"2025-10-17T01:55:44.297Z","avatar_url":"https://github.com/tripplyons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# viewers\nLists who is currently watching a given stream on Twitch\n\n## Installation\n\n```\nnpm i -s viewers\n```\n\n## Usage\n\nHere is an example from `test.js`:\n```javascript\nconst viewers = require('viewers')\n\nasync function logViewers(channelName) {\n    console.log(await viewers(channelName))\n}\n\n// A popular 24/7 stream\nlogViewers('twitchplayspokemon')\n```\n\nIt should output something similar to the following:\n```javascript\n[\n    { type: 'vip', name: 'tppsimulator' },\n    { type: 'mod', name: 'honshoureimu' },\n    { type: 'mod', name: 'red031000' },\n    { type: 'mod', name: 'rjri' },\n    { type: 'mod', name: 'sinr2014' },\n    { type: 'mod', name: 'tpp' },\n    { type: 'viewer', name: '1in256miss' },\n    { type: 'viewer', name: '20superkoopatroopa02' },\n    { type: 'viewer', name: '4td0' },\n    ...\n]\n```\n\nHere are all of the possible types of viewers:\n- `broadcaster`: The same person that is streaming\n- `vip`: A status given by the streamer to special viewers\n- `mod`: A status given by the streamer to moderators\n- `staff`: Someone who works at Twitch\n- `admin`: Someone who works at Twitch\n- `global_mod`: Someone who works at Twitch\n- `viewer`: An average user\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripplyons%2Fviewers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripplyons%2Fviewers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripplyons%2Fviewers/lists"}