{"id":37152024,"url":"https://github.com/carboneio/carbone-sdk-go","last_synced_at":"2026-01-14T17:57:29.930Z","repository":{"id":57550466,"uuid":"264981291","full_name":"carboneio/carbone-sdk-go","owner":"carboneio","description":"Golang SDK to generate documents (PDF DOCX ODT XLSX ODS XML ...) with the Carbone Cloud API","archived":false,"fork":false,"pushed_at":"2023-09-14T09:22:41.000Z","size":105,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-22T14:52:47.279Z","etag":null,"topics":["document-conversion","docx","go","golang","libreoffice","multilingual","pdf","pdf-generation","report-generator","sdk","template-engine"],"latest_commit_sha":null,"homepage":"https://carbone.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carboneio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-05-18T15:27:46.000Z","updated_at":"2024-06-04T03:12:26.000Z","dependencies_parsed_at":"2025-12-17T03:08:32.976Z","dependency_job_id":null,"html_url":"https://github.com/carboneio/carbone-sdk-go","commit_stats":null,"previous_names":["ideolys/carbone-sdk-go"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/carboneio/carbone-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carboneio%2Fcarbone-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carboneio%2Fcarbone-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carboneio%2Fcarbone-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carboneio%2Fcarbone-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carboneio","download_url":"https://codeload.github.com/carboneio/carbone-sdk-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carboneio%2Fcarbone-sdk-go/sbom","scorecard":{"id":265511,"data":{"date":"2025-08-11","repo":{"name":"github.com/carboneio/carbone-sdk-go","commit":"587c8d7306a380154b8e142ae3e20304cf574a1d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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 0/26 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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/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":"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":"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-17T11:55:14.282Z","repository_id":57550466,"created_at":"2025-08-17T11:55:14.282Z","updated_at":"2025-08-17T11:55:14.282Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28429085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"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":["document-conversion","docx","go","golang","libreoffice","multilingual","pdf","pdf-generation","report-generator","sdk","template-engine"],"created_at":"2026-01-14T17:57:29.242Z","updated_at":"2026-01-14T17:57:29.921Z","avatar_url":"https://github.com/carboneio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Carbone Cloud API Go SDK\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/carboneio/carbone-sdk-go?style=for-the-badge)\n[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg?style=for-the-badge)](./API-REFERENCE.md)\n\nThe golang SDK to request the Carbone Cloud API easily.\n\n\u003e Carbone is a document generator (PDF, DOCX, XLSX, ODT, PPTX, ODS, XML, CSV...) using templates and JSON data.\n[Learn more about the Carbone ecosystem](https://carbone.io/documentation.html).\n\n### 🔖 [API REFERENCE](./API-REFERENCE.md)\n\n## Install\n\n```sh\ngo install github.com/carboneio/carbone-sdk-go@latest\n```\n\n## Usage\n\nYou can copy and run the code bellow to try.\n```go\npackage main\n\nimport (\n\t\"io/ioutil\"\n\t\"log\"\n\n\t\"github.com/carboneio/carbone-sdk-go/carbone\"\n)\n\nfunc main() {\n\t// SDK constructor\n\t// The access token can be passed as an argument to NewCarboneSDK\n\t// Or by the environment variable \"CARBONE_TOKEN\", use the command \"export CARBONE_TOKEN=secret-token\"\n\tcsdk, err := carbone.NewCarboneSDK(\"secret-token\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// The template ID\n\ttemplateID := \"template\"\n\t// Data injected into the template to generate the report with Carbone\n\tjsonData := `{\"data\":{\"id\":42,\"date\":1492012745,\"company\":{\"name\":\"myCompany\",\"address\":\"here\",\"city\":\"Notfar\",\"postalCode\":123456},\"customer\":{\"name\":\"myCustomer\",\"address\":\"there\",\"city\":\"Faraway\",\"postalCode\":654321},\"products\":[{\"name\":\"product 1\",\"priceUnit\":0.1,\"quantity\":10,\"priceTotal\":1}],\"total\":140},\"convertTo\":\"pdf\"}`\n\n\t// Render and return the report as []byte\n\treportBuffer, err := csdk.Render(templateID, jsonData)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t// Create the file\n\terr = ioutil.WriteFile(\"Invoice.pdf\", reportBuffer, 0644)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n## Documentation\n- [API REFERENCE](./API-REFERENCE.md)\n\n## Run tests\nFirst, Go to the `carbone` package directory.\n```bash\n$ cd carbone\n```\nTo run all the tests (-v for verbose output):\n```bash\n$ go test -v\n```\nTo run only one test:\n```bash\n$ go test -v -run NameOfTheTest\n```\nIf you need to test the generation of templateId, you can use the nodejs `main.js` to test the sha256 generation.\n```bash\n$ node ./tests/main.js\n```\n\n## 👤 Author\n\n- [**@steevepay**](https://github.com/steevepay)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check [issues page](https://github.com/carboneio/carbone-sdk-go/issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarboneio%2Fcarbone-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarboneio%2Fcarbone-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarboneio%2Fcarbone-sdk-go/lists"}