{"id":25553968,"url":"https://github.com/prezly/javascript-sdk","last_synced_at":"2026-04-22T15:00:48.644Z","repository":{"id":40245507,"uuid":"222693509","full_name":"prezly/javascript-sdk","owner":"prezly","description":"Javascript SDK to interact with Prezly API","archived":false,"fork":false,"pushed_at":"2026-03-17T17:55:14.000Z","size":2010,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-03-18T07:18:24.565Z","etag":null,"topics":["api","coverage","prezly","sdk"],"latest_commit_sha":null,"homepage":"https://www.prezly.com/","language":"TypeScript","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/prezly.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-19T12:41:37.000Z","updated_at":"2026-03-17T17:55:18.000Z","dependencies_parsed_at":"2022-06-28T11:13:48.353Z","dependency_job_id":"410c1368-6fc2-4506-8619-a4e12b1c9fb5","html_url":"https://github.com/prezly/javascript-sdk","commit_stats":{"total_commits":824,"total_committers":16,"mean_commits":51.5,"dds":0.7026699029126213,"last_synced_commit":"5a645a330ecfdab029eec35f218a3cdd393ad367"},"previous_names":[],"tags_count":365,"template":false,"template_full_name":null,"purl":"pkg:github/prezly/javascript-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prezly%2Fjavascript-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prezly%2Fjavascript-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prezly%2Fjavascript-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prezly%2Fjavascript-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prezly","download_url":"https://codeload.github.com/prezly/javascript-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prezly%2Fjavascript-sdk/sbom","scorecard":{"id":114080,"data":{"date":"2025-08-04","repo":{"name":"github.com/prezly/javascript-sdk","commit":"289e0cfb12bd70c3a15a7efc4667eebf9df935c3"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":5.8,"checks":[{"name":"Code-Review","score":3,"reason":"Found 5/15 approved changesets -- score normalized to 3","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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/prezly/javascript-sdk/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/prezly/javascript-sdk/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/prezly/javascript-sdk/check.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/check.yml:40","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (21) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T22:42:48.429Z","repository_id":40245507,"created_at":"2025-08-15T22:42:48.429Z","updated_at":"2025-08-15T22:42:48.429Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32141485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T14:31:12.705Z","status":"ssl_error","status_checked_at":"2026-04-22T14:27:43.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","coverage","prezly","sdk"],"created_at":"2025-02-20T12:04:05.625Z","updated_at":"2026-04-22T15:00:48.628Z","avatar_url":"https://github.com/prezly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prezly JavaScript SDK\n\n### Getting started\n\n```sh\nnpm install --save @prezly/sdk\n# or yarn\nyarn add @prezly/sdk\n```\n\n### Using the code\n\nUsing ES Modules:\n\n```js\nimport { createPrezlyClient } from '@prezly/sdk';\n\nconst prezlyClient = createPrezlyClient({\n    accessToken: 'your-access-token',\n});\n```\n\nOr Using CommonJS:\n\n```js\nconst { createPrezlyClient } = require('@prezly/sdk').default;\n\nconst prezlyClient = createPrezlyClient({\n    accessToken: 'your-access-token',\n});\n```\n\n## Requirements\n\n### API token\n\nAt this moment, the UI does not support issuing API tokens. Please contact support to issue one for you.\n\n### [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) API support\n\n`@prezly/sdk` is using `fetch` to create requests. We assume that the environment running the code supports it.\n\nWe understand that some of the environments, such as node.js or old browsers, do not support `fetch`. This can be resolved by including a polyfill.\n\n#### Polyfilling in browsers using [`whatwg-fetch`](https://www.npmjs.com/package/whatwg-fetch)\n\n```sh\nnpm install --save whatwg-fetch\n# or yarn\nyarn add whatwg-fetch\n```\n\n```js\nimport 'whatwg-fetch';\n// ...\nimport { createPrezlyClient } from '@prezly/sdk';\n```\n\nWe recommend referring to the [official `whatwg-fetch` module documentation](https://www.npmjs.com/package/whatwg-fetch) for more information.\n\n#### Polyfilling in browsers using [`node-fetch`](https://www.npmjs.com/package/node-fetch)\n\n```sh\nnpm install --save node-fetch\n# or yarn\nyarn add node-fetch\n```\n\n```js\nglobal.fetch = require('node-fetch');\n// ...\nconst { createPrezlyClient } = require('@prezly/sdk');\n```\n\nWe recommend referring to the [official `node-fetch` module documentation](https://www.npmjs.com/package/node-fetch) for more information.\n\n#### Platform-agnostic polyfill using [`cross-fetch`](https://www.npmjs.com/package/cross-fetch)\n\n```sh\nnpm install --save cross-fetch\n# or yarn\nyarn add cross-fetch\n```\n\nUsing ES Modules:\n\n```js\nimport 'cross-fetch/polyfill';\n// ...\nimport { createPrezlyClient } from '@prezly/sdk';\n```\n\nOr Using CommonJS:\n\n```js\nrequire('cross-fetch/polyfill');\n// ...\nconst { createPrezlyClient } = require('@prezly/sdk');\n```\n\nWe recommend referring to the [official `cross-fetch` module documentation](https://www.npmjs.com/package/cross-fetch) for more information.\n\n#### Custom `fetch` implementation\n\nAdditionally, you can initialize the API client with your own implementation of `fetch`:\n\n```js\nimport { createPrezlyClient } = from '@prezly/sdk';\n\nconst prezlyClient = createPrezlyClient({\n    accessToken: 'your-access-token',\n    fetch: customFetch,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprezly%2Fjavascript-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprezly%2Fjavascript-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprezly%2Fjavascript-sdk/lists"}