{"id":16251164,"url":"https://github.com/joelnb/sofa","last_synced_at":"2025-10-05T22:44:09.300Z","repository":{"id":40372419,"uuid":"90314094","full_name":"joelnb/sofa","owner":"joelnb","description":"Golang bindings for CouchDB API","archived":false,"fork":false,"pushed_at":"2025-08-07T18:17:00.000Z","size":278,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-07T20:30:20.473Z","etag":null,"topics":["couchdb","database","go","golang"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/joelnb/sofa","language":"Go","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/joelnb.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}},"created_at":"2017-05-04T22:10:37.000Z","updated_at":"2024-07-27T08:10:01.000Z","dependencies_parsed_at":"2023-12-16T11:46:31.886Z","dependency_job_id":"da299985-372a-4c74-b68a-97f26f1f5a1e","html_url":"https://github.com/joelnb/sofa","commit_stats":{"total_commits":137,"total_committers":3,"mean_commits":"45.666666666666664","dds":"0.15328467153284675","last_synced_commit":"b4bd788ce9a3dc1e216a313625061ed53c313377"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/joelnb/sofa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelnb%2Fsofa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelnb%2Fsofa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelnb%2Fsofa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelnb%2Fsofa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelnb","download_url":"https://codeload.github.com/joelnb/sofa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelnb%2Fsofa/sbom","scorecard":{"id":527016,"data":{"date":"2025-08-11","repo":{"name":"github.com/joelnb/sofa","commit":"b4bd788ce9a3dc1e216a313625061ed53c313377"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"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":"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":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/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":"Code-Review","score":7,"reason":"Found 20/27 approved changesets -- score normalized to 7","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/golangci-lint.yml:16","Warn: no topLevel permission defined: .github/workflows/integ.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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/go.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/golangci-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/golangci-lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/golangci-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integ.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/integ.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integ.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/integ.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/integ.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/integ.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/integ.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/integ.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/integ.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/joelnb/sofa/integ.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction 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/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":"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/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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 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"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T04:40:14.274Z","repository_id":40372419,"created_at":"2025-08-20T04:40:14.274Z","updated_at":"2025-08-20T04:40:14.274Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278532357,"owners_count":26002345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["couchdb","database","go","golang"],"created_at":"2024-10-10T15:09:10.102Z","updated_at":"2025-10-05T22:44:09.272Z","avatar_url":"https://github.com/joelnb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sofa\n\nSimply connect to CouchDB database servers using Go.\n\n## Documentation\n\nView the [full documentation](https://pkg.go.dev/github.com/joelnb/sofa?tab=doc) which includes examples.\n\n## Limitations\n\nLarge parts of the [CouchDB API](http://docs.couchdb.org/en/2.0.0/api/) are covered but not all functionality is currently implemented. Pull requests for any missing functionality would be welcomed!\n\n## Contributing\n\nContributions of all sizes are welcomed. Simply make a pull request and I will be happy to discuss. If you don't have time to write the code please consider at least creating an issue so that I can ensure the issue gets sorted eventually.\n\n### Running tests\n\nThe basic tests can be run using a simple `go test '-run=^Test'` (this ensures that the examples are skipped because they require a CouchDB connection). To run a more complete set of tests which access a real database you will need a temporary CouchDB instance. The simplest way to create this is using docker:\n\n    docker run -d --name sofa_couchdb1 -p 5984:5984 couchdb:1\n\nTo run all the tests you will also need a version 2 server:\n\n    docker run -d --name sofa_couchdb2 -p 5985:5984 couchdb:2\n\n...and a version 3 server with specific insecure credentials:\n\n    docker run -d --name sofa_couchdb3 -p 5986:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=adm1nP4rty couchdb:3\n\nThere is a simple script provided which can be used to start all three versions:\n\n    ./.scripts/start_test_docker_containers.sh\n\nYou can then set `SOFA_TEST_HOST_1`, `SOFA_TEST_HOST_2` and `SOFA_TEST_HOST_3` to set the connection to each server:\n\n    SOFA_TEST_HOST_1=http://127.0.0.1:5984 SOFA_TEST_HOST_2=http://127.0.0.1:5985 SOFA_TEST_HOST_3=http://127.0.0.1:5986 go test -v\n\nIf you have chosen to only start a single version then only include the appropriate environment variable to ensure tests for the other version are not run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelnb%2Fsofa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelnb%2Fsofa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelnb%2Fsofa/lists"}