{"id":21224083,"url":"https://github.com/kodie/stack-fanatic","last_synced_at":"2026-05-03T17:34:52.125Z","repository":{"id":34997802,"uuid":"195089979","full_name":"kodie/stack-fanatic","owner":"kodie","description":"A node module that uses Google's Puppeteer library to visit your Stack Overflow profile and check the progress of the badge you are currently tracking.","archived":false,"fork":false,"pushed_at":"2023-01-06T19:53:39.000Z","size":131,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-03T10:29:04.192Z","etag":null,"topics":["badge","badges","google","node","node-js","node-module","nodejs","profile","puppeteer","stack-overflow","stackexchange","stackoverflow"],"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/kodie.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-03T16:20:09.000Z","updated_at":"2022-05-12T14:29:03.000Z","dependencies_parsed_at":"2023-01-15T11:44:36.947Z","dependency_job_id":null,"html_url":"https://github.com/kodie/stack-fanatic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kodie/stack-fanatic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fstack-fanatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fstack-fanatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fstack-fanatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fstack-fanatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodie","download_url":"https://codeload.github.com/kodie/stack-fanatic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fstack-fanatic/sbom","scorecard":{"id":565645,"data":{"date":"2025-08-11","repo":{"name":"github.com/kodie/stack-fanatic","commit":"986dbab27daa939aae4b31a1c4603d206aec164e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.md:0","Info: FSF or OSI recognized license: MIT License: license.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pc5p-h8pf-mvwp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:54:55.046Z","repository_id":34997802,"created_at":"2025-08-20T14:54:55.046Z","updated_at":"2025-08-20T14:54:55.046Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["badge","badges","google","node","node-js","node-module","nodejs","profile","puppeteer","stack-overflow","stackexchange","stackoverflow"],"created_at":"2024-11-20T22:54:57.041Z","updated_at":"2026-05-03T17:34:52.106Z","avatar_url":"https://github.com/kodie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stack Fanatic\n\n[![npm package version](https://img.shields.io/npm/v/stack-fanatic.svg?style=flat-square)](https://www.npmjs.com/package/stack-fanatic)\n[![Travis build status](https://img.shields.io/travis/kodie/stack-fanatic.svg?style=flat-square)](https://travis-ci.org/kodie/stack-fanatic)\n[![npm package downloads](https://img.shields.io/npm/dt/stack-fanatic.svg?style=flat-square)](https://www.npmjs.com/package/stack-fanatic)\n[![code style](https://img.shields.io/badge/code_style-standard-yellow.svg?style=flat-square)](https://github.com/standard/standard)\n[![license](https://img.shields.io/github/license/kodie/stack-fanatic.svg?style=flat-square)](license.md)\n\nA node module that uses Google's [Puppeteer](https://pptr.dev/) library to visit your [Stack Overflow](https://stackoverflow.com/) profile and check the progress of the badge you are currently tracking.\n\n## Installation\n\n```shell\nnpm install stack-fanatic\n```\n\n## Usage\n\n### Options\n\nThe following options can be passed to any functions (however none of them are required):\n\n* **debug** - A boolean stating wether or not debugging information should be displayed in the console (Default: `false`)\n\n* **loginEmail** - A string containing the email address asssociated with the StackOverflow account that you would like to log in to.\n\n* **loginPassword** - A string containing the password for the StackOverflow account that you would like to log in to.\n\n* **puppeteerOpts** - An object containing any options you wish to pass to the [puppeteer.launch()](https://pptr.dev/#?product=Puppeteer\u0026version=v1.18.1\u0026show=api-puppeteerlaunchoptions) function. (Sets the user agent to Google Chrome and the user data directory to `./userData` by default)\n\n* **site** - A string containing the URL for the Stack Exchange site that you would like to pull badge info from. Should include the protocol at the beginning and no trailing slash. (Default: `https://stackoverflow.com`)\n\n### check(options)\n\nVisits your StackOverflow profile page and returns a promise that resolves with information about your tracked badge.\n\n*Note: The `login` function will automatically be ran if `loginEmail` and `loginPassword` are passed as options and you are not currently logged in.*\n\n```js\nconst stackFanatic = require('stack-fanatic')\n\nstackFanatic\n  .check({\n    loginEmail: 'example@email.com',\n    loginPassword: 'password1234',\n    site: 'https://stackoverflow.com'\n  })\n  .then(res =\u003e {\n    console.log('Badge Name:', res.badge)\n    console.log('Badge Type:', res.type)\n    console.log('Current Progress:', res.now)\n    console.log('Percent Completed:', res.percent)\n  })\n  .catch(err =\u003e {\n    console.log(err.message)\n  })\n```\n\n### Example Response\n```js\n{\n  badge: 'Fanatic',\n  max: 100,\n  min: 0,\n  now: 20,\n  percent: 20,\n  profile: 'https://stackoverflow.com/users/5463842/kodie-grantham',\n  type: 'Gold'\n}\n```\n\n### login(options)\n\nLogs into a StackOverflow account and returns a promise that resolves with `true` or `false` depending on if the login was successful or not.\n\n*Note: After you are logged in, your session info will be saved in `./userData` so that you can run the `check` function without having to log in again.*\n\n```js\nconst stackFanatic = require('stack-fanatic')\n\nstackFanatic\n  .login({\n    loginEmail: 'example@email.com',\n    loginPassword: 'password1234'\n  })\n  .then(loggedIn =\u003e {\n    if (loggedIn) {\n      console.log('Yay! You are logged in! :D')\n    } else {\n      console.log('Aw dang! You are not logged in. :(')\n    }\n  })\n  .catch(err =\u003e {\n    console.log(err.message)\n  })\n```\n\n## Tips/Tricks\n\n### Check badge progress without logging in\n\nJust set `site` to the URL of your Stack Overflow profile and make sure that you have `?tab=topactivity` at the end of it.\n\nWhile you're at it, set Puppeteer's `userDataDir` option to `false` so that no session data or cache is saved.\n\n```js\nstackFanatic\n  .check({\n    site: 'https://stackoverflow.com/users/5463842/kodie-grantham?tab=topactivity',\n    puppeteerOpts: {\n      userDataDir: false\n    }\n  })\n```\n\n## Related\n\n* [stack-fanatic-cli](https://github.com/kodie/stack-fanatic-cli) - The CLI tool for this module\n\n## License\nMIT. See the [LICENSE file](LICENSE.md) for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodie%2Fstack-fanatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodie%2Fstack-fanatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodie%2Fstack-fanatic/lists"}