{"id":37390300,"url":"https://github.com/opencoconut/coconutgo","last_synced_at":"2026-01-16T05:29:37.909Z","repository":{"id":57493441,"uuid":"46871453","full_name":"opencoconut/coconutgo","owner":"opencoconut","description":"Go client Library for encoding Videos with Coconut","archived":false,"fork":false,"pushed_at":"2021-10-19T09:06:51.000Z","size":16,"stargazers_count":13,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T09:25:02.741Z","etag":null,"topics":["api","dash","encoding","gif","hls","thumbnails","transcoding","video"],"latest_commit_sha":null,"homepage":"https://coconut.co","language":"Go","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}},"created_at":"2015-11-25T15:53:44.000Z","updated_at":"2023-06-15T09:11:36.000Z","dependencies_parsed_at":"2022-08-28T15:13:03.461Z","dependency_job_id":null,"html_url":"https://github.com/opencoconut/coconutgo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opencoconut/coconutgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencoconut","download_url":"https://codeload.github.com/opencoconut/coconutgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoconut%2Fcoconutgo/sbom","scorecard":{"id":709017,"data":{"date":"2025-08-11","repo":{"name":"github.com/opencoconut/coconutgo","commit":"deebd9752144be6bc0855adf931508304c9c133f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/14 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":"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":"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":"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":"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":"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 2 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:03.744Z","repository_id":57493441,"created_at":"2025-08-22T07:36:03.744Z","updated_at":"2025-08-22T07:36:03.744Z"},"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","dash","encoding","gif","hls","thumbnails","transcoding","video"],"created_at":"2026-01-16T05:29:37.842Z","updated_at":"2026-01-16T05:29:37.901Z","avatar_url":"https://github.com/opencoconut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coconut Go Library\n\nThe Coconut Go 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\n```console\ngo get github.com/opencoconut/coconutgo\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). Webhook URL and storage settings are optional but are very convenient because you set them only once.\n\n### Example\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"os\"\n  \"github.com/opencoconut/coconutgo\"\n)\n\nfunc main() {\n  // Initialize the Client\n  cli := coconut.NewClient(coconut.Client{\n    APIKey: os.Getenv(\"COCONUT_API_KEY\"),\n    Storage: coconut.Storage{\n      \"service\": \"s3\",\n      \"region\":  \"us-east-1\",\n      \"credentials\": coconut.StorageCredentials{\n        \"access_key_id\":     os.Getenv(\"AWS_ACCESS_KEY_ID\"),\n        \"secret_access_key\": os.Getenv(\"AWS_SECRET_ACCESS_KEY\"),\n      },\n      \"bucket\": \"mybucket\",\n    },\n    Notification: coconut.Notification{\n      \"type\": \"http\",\n      \"url\":  \"https://yoursite/api/coconut/webhook\",\n    },\n  })\n\n  // Create a job\n  job, err := cli.Job.Create(coconut.JobCreate{\n    Input: coconut.InputCreate{\n      \"url\": \"https://mysite/path/file.mp4\",\n    },\n    Outputs: coconut.OutputCreate{\n      \"jpg:300x\": coconut.OutputParams{\n        \"path\": \"/image.jpg\",\n      },\n      \"mp4:1080p\": coconut.OutputParams{\n        \"path\": \"/1080p.mp4\",\n      },\n      \"httpstream\": coconut.OutputParams{\n        \"hls\": coconut.OutputParams{\n          \"path\": \"hls/\",\n        },\n      },\n    },\n  })\n\n  if err != nil {\n    fmt.Printf(\"%# v\", err)\n  } else {\n    fmt.Printf(\"%# v\", job)\n  }\n}\n```\n\n### Choose the region\n\n```go\ncli.Region = \"eu-west-1\"\n```\n\n### Enabling Ultrafast Mode\n\n```go\njob, err := cli.Job.Create(coconut.JobCreate{\n  Settings: coconut.Settings{\n    \"ultrafast\": true\n  },\n  Input: coconut.InputCreate{\n    \"url\": \"https://mysite/path/file.mp4\",\n  },\n  Outputs: coconut.OutputCreate{\n    \"mp4:2160p\": coconut.OutputParams{\n      \"path\": \"/4k.mp4\",\n    },\n  },\n})\n```\n\n## Getting information about a job\n\n```go\njob := cli.Job.Retrieve(\"TsySPignC2xhOK\")\n\nfor i, o := range job.Outputs {\n  if o.Type == \"video\" {\n    fmt.Printf(\"%d) Video: %# v\\n\\n\", i, o.GetVideoURL())\n  } else if o.Type == \"image\" {\n    fmt.Printf(\"%d) Image: %# v\\n\\n\", i, o.GetImageURLs())\n  } else if o.Type == \"httpstream\" {\n    fmt.Printf(\"%d) HTTPStream: %# v\\n\\n\", i, o.GetHTTPStreamURLs())\n  }\n}\n```\n\n## Retrieving metadata\n\n```go\ncli.Metadata.retrieve(\"OolQXaiU86NFki\")\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%2Fcoconutgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencoconut%2Fcoconutgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoconut%2Fcoconutgo/lists"}