{"id":41587920,"url":"https://github.com/botify-labs/botify-sdk-js","last_synced_at":"2026-01-24T09:09:31.051Z","repository":{"id":143864543,"uuid":"49281726","full_name":"botify-labs/botify-sdk-js","owner":"botify-labs","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-03T17:42:27.000Z","size":74,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-09-14T11:50:30.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/botify-labs.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}},"created_at":"2016-01-08T16:05:16.000Z","updated_at":"2024-05-27T14:07:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3011a3d-85a7-4da0-902b-a4d5f26fc72a","html_url":"https://github.com/botify-labs/botify-sdk-js","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"ca638d25e2544da165d800828123ddc57c1fec2f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/botify-labs/botify-sdk-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fbotify-sdk-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fbotify-sdk-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fbotify-sdk-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fbotify-sdk-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botify-labs","download_url":"https://codeload.github.com/botify-labs/botify-sdk-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fbotify-sdk-js/sbom","scorecard":{"id":248815,"data":{"date":"2025-08-11","repo":{"name":"github.com/botify-labs/botify-sdk-js","commit":"ca638d25e2544da165d800828123ddc57c1fec2f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/27 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T08:05:49.988Z","repository_id":143864543,"created_at":"2025-08-17T08:05:49.988Z","updated_at":"2025-08-17T08:05:49.988Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28722228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2026-01-24T09:09:30.741Z","updated_at":"2026-01-24T09:09:31.043Z","avatar_url":"https://github.com/botify-labs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# botify-sdk\n\n[![NPM Version](https://img.shields.io/npm/v/botify-sdk.svg?style=flat)](https://www.npmjs.com/package/botify-sdk)\n[![Build Status](https://travis-ci.org/botify-labs/botify-sdk-js.svg?branch=master)](https://travis-ci.org/botify-labs/botify-sdk-js)\n\nThis package contains the Javascript SDK for Botify API.\nAPI documentation can be found at [https://developers.botify.com/api/](https://developers.botify.com/api/).\n\n**SDK Demo:** [link](https://jsfiddle.net/8k20pbua/12/)\n\n\n## Installation\n\n### Node.js, Webpack, Browserify\n```SH\nnpm install --save botify-sdk@1.0.0-beta5\n```\n```JS\nvar BotifySDK = require('botify-sdk');\n\nBotifySDK.authToken(token);\nBotifySDK.AnalysisController.getAnalysisSummary({\n  username: 'foo',\n  projectSlug: 'bar',\n  analysisSlug: 'koo',\n}, function (err, response) {\n  // Handle response\n});\n```\n\n### Vanilla javascript\n```HTML\n\u003cscript src=\"https://cdn.jsdelivr.net/botify/1.0.0-beta5/botify-sdk.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  BotifySDK.authToken(token);\n  BotifySDK.AnalysisController.getAnalysisSummary({\n    username: 'foo',\n    projectSlug: 'bar',\n    analysisSlug: 'koo',\n  }, function (err, response) {\n    // Handle response\n  });\n\u003c/script\u003e\n```\n\n### Require.JS (AMD)\n```HTML\n\u003cscript src=\"https://cdn.jsdelivr.net/botify/1.0.0-beta5/botify-sdk.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  define([\"BotifySDK\"], function(BotifySDK) {\n    BotifySDK.authToken(token);\n    BotifySDK.AnalysisController.getAnalysisSummary({\n      username: 'foo',\n      projectSlug: 'bar',\n      analysisSlug: 'koo',\n    }, function (err, response) {\n      // Handle response\n    });\n  });\n\u003c/script\u003e\n```\n**Note:** If you'd like to host the lib yourself, the bundle is available at `dist/botify-sdk.min.js` in the npm module.\n\n\n## Usage\n\n### Authentication\n```JS\nBotifySDK.authToken(token);\n```\n**How to get your token:** [https://developers.botify.com/api/authentication/](https://developers.botify.com/api/authentication/)\n\n### Request API\nThe SDK exposes a function for each operation. They comply with the following signature:\n```JS\nBotifySDK.Controller.operation(params, callback);\n```\n- `params` (object): params are documented both in the SDK code or in the API documentation (becareful that in the JS SDK params are **camelcased**).\n- `callback` (function): [NodeJS compliant callback](http://fredkschott.com/post/2014/03/understanding-error-first-callbacks-in-node-js/).\n\nFull list of operations at [https://developers.botify.com/api/reference](https://developers.botify.com/api/reference)\n\n\n### Example\n```JS\nBotifySDK.AnalysisController.getAnalysisSummary({\n  username: 'foo',\n  projectSlug: 'bar',\n  analysisSlug: 'koo',\n}, function(error, result) {\n  // Handle response\n});\n```\n\n### getUrlsAggs\nSDK exposes `Query` and `QueryAggregate` models that can be used as input for `Analysis.getUrlsAggs` to make this complex endpoint a lot easier to deal with. [More information](https://github.com/botify-labs/botify-sdk-js-middlewares/blob/master/docs/middlewares/queryMiddleware.md)\n\nExample of Query usage in the [demo](https://jsfiddle.net/8k20pbua/11/)\n\n\n## Optimization\nMiddlewares are avalaible in the package [botify-sdk-middlewares](https://github.com/botify-labs/botify-sdk-js-middlewares). Consider using them for optimization and rate limit leverage. Some have been included by default in this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotify-labs%2Fbotify-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotify-labs%2Fbotify-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotify-labs%2Fbotify-sdk-js/lists"}