{"id":37390415,"url":"https://github.com/opencoconut/coconutjs","last_synced_at":"2026-01-16T05:29:53.307Z","repository":{"id":46247759,"uuid":"46868104","full_name":"opencoconut/coconutjs","owner":"opencoconut","description":"NodeJS client Library for encoding Videos with Coconut","archived":false,"fork":false,"pushed_at":"2025-02-19T15:06:54.000Z","size":74,"stargazers_count":20,"open_issues_count":3,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-01T04:07:21.039Z","etag":null,"topics":["api","coconut","dash","encoding","gif","hls","thumbnails","transcoding","video"],"latest_commit_sha":null,"homepage":"https://coconut.co","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/opencoconut.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-25T14:55:54.000Z","updated_at":"2025-10-13T11:17:33.000Z","dependencies_parsed_at":"2024-06-18T20:12:35.758Z","dependency_job_id":null,"html_url":"https://github.com/opencoconut/coconutjs","commit_stats":{"total_commits":28,"total_committers":4,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"101d740cc1f1febdf5fb063bbd253f865ebf4993"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opencoconut/coconutjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencoconut","download_url":"https://codeload.github.com/opencoconut/coconutjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutjs/sbom","scorecard":{"id":709018,"data":{"date":"2025-08-11","repo":{"name":"github.com/opencoconut/coconutjs","commit":"1490bd01c273a64aad432703d0bc6d799cab199a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"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":"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":"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":"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":"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":"Code-Review","score":1,"reason":"Found 4/23 approved changesets -- score normalized to 1","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":"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":"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":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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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-22T07:36:04.102Z","repository_id":46247759,"created_at":"2025-08-22T07:36:04.102Z","updated_at":"2025-08-22T07:36:04.102Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"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":["api","coconut","dash","encoding","gif","hls","thumbnails","transcoding","video"],"created_at":"2026-01-16T05:29:52.791Z","updated_at":"2026-01-16T05:29:53.291Z","avatar_url":"https://github.com/opencoconut.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coconut NodeJS Library\n\nThe Coconut NodeJS library provides access to the Coconut API for encoding videos, packaging media files into HLS and MPEG-Dash, generating thumbnails and GIF animation.\n\nThis library is only compatible with the Coconut API v2.\n\n## Documentation\n\nSee the [full documentation](https://docs.coconut.co).\n\n## Installation\n\nTo install this package, run:\n\n```console\nnpm install coconutjs\n```\n\n## Usage\n\nThe library needs you to set your API key which can be found in your [dashboard](https://app.coconut.co/api). Notification and storage settings are optional but are very convenient because you set them only once.\n\n```javascript\nconst Coconut = require('coconutjs');\n\nconst coconut = new Coconut.Client('k-api-key');\n\ncoconut.notification = {\n  'type': 'http',\n  'url': 'https://yoursite/api/coconut/webhook'\n}\n\ncoconut.storage = {\n  'service': 's3',\n  'bucket': 'my-bucket',\n  'region': 'us-east-1',\n  'credentials': {\n    'access_key_id': 'access-key',\n    'secret_access_key': 'secret-key'\n  }\n}\n```\n\nSetting up your region:\n\n```javascript\ncoconut.region = \"eu-west-1\"\n```\n\n## Creating a job\n\n```javascript\ncoconut.Job.create(\n  {\n    'input': { 'url': 'https://mysite/path/file.mp4' },\n    'outputs': {\n      'jpg:300x': { 'path': '/image.jpg' },\n      'mp4:1080p': { 'path': '/1080p.mp4' },\n      'httpstream': {\n        'hls': { 'path': 'hls/' }\n      }\n    }\n  }, function(job, err) {\n    console.log(job);\n  }\n)\n```\n\n## Getting information about a job\n\n```javascript\ncoconut.Job.retrieve('OolQXaiU86NFki', function(job, err) {\n  console.log(job);\n});\n```\n\n## Retrieving metadata\n\n```javascript\ncoconut.Metadata.retrieve('OolQXaiU86NFki', function(metadata, err) {\n  console.log(metadata);\n})\n```\n\n*Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoconut%2Fcoconutjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencoconut%2Fcoconutjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoconut%2Fcoconutjs/lists"}