{"id":21542797,"url":"https://github.com/vinitshahdeo/github-popular-searches","last_synced_at":"2026-01-04T12:02:35.915Z","repository":{"id":83691063,"uuid":"171866488","full_name":"vinitshahdeo/GitHub-Popular-Searches","owner":"vinitshahdeo","description":"A Postman Collection to find the popular repositories for a given search query.","archived":false,"fork":false,"pushed_at":"2019-04-24T16:11:00.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T08:43:41.577Z","etag":null,"topics":["github-api","npm-api","postman-collection","postman-example","sentiment-analysis"],"latest_commit_sha":null,"homepage":"https://vinitshahdeo.github.io/GitHub-Popular-Searches/","language":null,"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/vinitshahdeo.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}},"created_at":"2019-02-21T12:18:51.000Z","updated_at":"2019-04-24T16:11:01.000Z","dependencies_parsed_at":"2023-07-01T19:45:57.734Z","dependency_job_id":null,"html_url":"https://github.com/vinitshahdeo/GitHub-Popular-Searches","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/vinitshahdeo%2FGitHub-Popular-Searches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitshahdeo%2FGitHub-Popular-Searches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitshahdeo%2FGitHub-Popular-Searches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinitshahdeo%2FGitHub-Popular-Searches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinitshahdeo","download_url":"https://codeload.github.com/vinitshahdeo/GitHub-Popular-Searches/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130283,"owners_count":20402753,"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":["github-api","npm-api","postman-collection","postman-example","sentiment-analysis"],"created_at":"2024-11-24T05:11:20.638Z","updated_at":"2026-01-04T12:02:30.895Z","avatar_url":"https://github.com/vinitshahdeo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Popular Searches\n\n[![Github Popular Searces](http://img.shields.io/badge/Github-Popular%20Searches-blue.svg?style=for-the-badge\u0026logo=github)](https://vinitshahdeo.github.io/GitHub-Popular-Searches/) [![Postman Collection](http://img.shields.io/badge/Postman-Collection-orange.svg?style=for-the-badge\u0026logo=postman)](https://documenter.getpostman.com/view/6186519/RznEKdvc)\n\n### A [Postman](https://www.getpostman.com/) collection to discover popular repositories on [GitHub](https://github.com) for a given search query. It sends the popular repository on Slack channel.\n\n\u003e **This collection is published [here](https://documenter.getpostman.com/view/6186519/RznEKdvc).**\n\n```js\n\n  _____   ____   _____ _______ __  __          _   _ \n |  __ \\ / __ \\ / ____|__   __|  \\/  |   /\\   | \\ | |\n | |__) | |  | | (___    | |  | \\  / |  /  \\  |  \\| |\n |  ___/| |  | |\\___ \\   | |  | |\\/| | / /\\ \\ | . ` |\n | |    | |__| |____) |  | |  | |  | |/ ____ \\| |\\  |\n |_|     \\____/|_____/   |_|  |_|  |_/_/    \\_\\_| \\_|\n                                                     \n                                                     \n```\n\n### How does it work?\n\n- Put a search query for GitHub Repositories\n\n- Fetch GitHub Repo URLs through API call to NPM\n\n- Collect all the comments, download count, stars count, fork count from GitHub API\n\n- Perform Sentiment Analysis on Comments\n\n- Suggest best available repository for given search term on Slack\n\n\n[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/e6d6eaba6eeaaec69bc5)\n\n\u003e Set the following environment variables before you run this collection : \n- ` {{searchTerm}} ` : the query you want to search\n- ` {{maxSize}} ` : maximum number of repositories you want to fetch\n\nIt sends the popular repository on Slack channel using webhook.\n\n\u003e This collection uses [Github API](https://developer.github.com/v3/) to fetch comments and sends a report to an internal Slack channel using a [webhook](https://api.slack.com/incoming-webhooks#sending_messages).\n\n## API Calls made\n[![Thanks](https://forthebadge.com/images/badges/you-didnt-ask-for-this.svg)](https://documenter.getpostman.com/view/6186519/RznEKdvc)\n\n1. **[GET]() npm search** - API call to [NPM](https://www.npmjs.com) to fetch the popular GitHub Repositories for a given search query.\n\n```js\nhttp://registry.npmjs.com/-/v1/search?text={{searchTerm}}\u0026size={{maxSize}}\n```\n\n2. **[GET]() fetch comments** - Fetching *comments* for each repositories using [GitHub API](https://api.github.com/).\n\n```js\nhttps://api.github.com/repos/{{userName}}/{{repoName}}/comments  \n```\n\n - ` {{repoName}} ` : Name of the GitHub repository\n - ` {{userName}} ` : GitHub username for the given repository\n\n3. **[POST]() calculate sentiments** - Calculating sentiment using [ParallelDots API](https://www.paralleldots.com) for the comments of given GitHub repository.\n\n```js\nhttps://apis.paralleldots.com/v3/sentiment?text={{sentimentText}}\u0026api_key={{apiKey}}\n```\n\n4. **[POST]() push to slack** - Pushing most popular repos to Slack using [webhook](https://api.slack.com/incoming-webhooks).\n\n```js\nhttps://hooks.slack.com/services/XXXXXXXXX\n```\n\n\n[![Made by Vinit Shahdeo](https://forthebadge.com/images/badges/built-with-love.svg)](https://documenter.getpostman.com/view/6186519/RznEKdvc) [![Powered By](https://forthebadge.com/images/badges/powered-by-oxygen.svg)](https://github.com/vinitshahdeo)\n\n\n## Thanks!\n\nGlad to see you here! I'm social. Let's [get connected](https://www.linkedin.com/in/vinitshahdeo/).\n\n\u003ca href=\"https://www.facebook.com/vinit.shahdeo/\" target=\"_blank\"\u003e\u003cimg height=\"32\" width=\"32\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/facebook.svg\" /\u003e\u003c/a\u003e \u0026nbsp;\u0026nbsp;\u003ca href=\"https://twitter.com/Vinit_Shahdeo\" target=\"_blank\"\u003e\u003cimg height=\"32\" width=\"32\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/twitter.svg\" /\u003e\u003c/a\u003e \u0026nbsp;\u0026nbsp;\u003ca href=\"https://www.linkedin.com/in/vinitshahdeo/\" target=\"_blank\"\u003e\u003cimg height=\"32\" width=\"32\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/linkedin.svg\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinitshahdeo%2Fgithub-popular-searches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinitshahdeo%2Fgithub-popular-searches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinitshahdeo%2Fgithub-popular-searches/lists"}