{"id":36707308,"url":"https://github.com/icha024/spray-cloudant","last_synced_at":"2026-01-12T11:43:55.328Z","repository":{"id":57718251,"uuid":"59384129","full_name":"icha024/spray-cloudant","owner":"icha024","description":"Scala Cloudant client for Spray/Akka","archived":false,"fork":false,"pushed_at":"2016-05-22T16:44:28.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T17:44:49.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/icha024.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}},"created_at":"2016-05-21T22:27:00.000Z","updated_at":"2016-05-22T01:29:22.000Z","dependencies_parsed_at":"2022-09-14T22:41:47.737Z","dependency_job_id":null,"html_url":"https://github.com/icha024/spray-cloudant","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/icha024/spray-cloudant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspray-cloudant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspray-cloudant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspray-cloudant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspray-cloudant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icha024","download_url":"https://codeload.github.com/icha024/spray-cloudant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspray-cloudant/sbom","scorecard":{"id":480230,"data":{"date":"2025-08-11","repo":{"name":"github.com/icha024/spray-cloudant","commit":"493664865231b977bbc34967f55669afce257922"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/19 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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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-f94m-mqhr-mc29","Warn: Project is vulnerable to: GHSA-q8xj-8xg3-w432","Warn: Project is vulnerable to: GHSA-qvxv-pmq9-4q7g"],"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-19T16:24:57.824Z","repository_id":57718251,"created_at":"2025-08-19T16:24:57.824Z","updated_at":"2025-08-19T16:24:57.824Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"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":[],"created_at":"2026-01-12T11:43:54.630Z","updated_at":"2026-01-12T11:43:55.322Z","avatar_url":"https://github.com/icha024.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scala Cloudant client for Spray/Akka\n[![Build Status](https://travis-ci.org/icha024/spray-cloudant.svg?branch=master)](https://travis-ci.org/icha024/spray-cloudant)\n\n## Motivation\n*Why another library?* Most of the Cloudant/CouchDB libraries I've came across are overly complicated, and require a bit of a learning curve to use. Error handling and debugging response unmarshalling error wasn't very pleasant. They do have some really nice and advanced features, but I didn't really require them. Since I'm using Spray, and Cloudant already provide a HTTP API, it was fairly straight forward to create a new client library.\n\n **About 200 lines of Scala later, here is it.**\n\n#### Features\n- **CRUD** for Database/Document/Bulk/Index/Views and **Search** Index/View method are provided.\n- Everything returns a **Future[String] by default**, this is the raw JSON response from Cloudant.\n- Unmarshalling is optional, with a **.unmarshalTo[T] convenience method** provided.\n- Exceptions (CloudantException) will come through **the usual Future.failed** channel.\n\n## Usage Example\n\nJust extend the CloudantOps trait and the cloudant operations will be available.\n\n```scala\nclass FoodService extends Actor with CloudantOps {\n      // Alternatively: CloudantCredential(username, accountname, password)\n      implicit val cloudantCred = new CloudantCredential(username, password)\n      implicit val dbName  = \"myDB\"\n      \n      // Create doc via JSON directly\n      // Notice _id and _rev field is omitted, this will create a new document.\n      val doc = \"\"\"{\"food\": \"Pizza\"}\"\"\"\n      val response1: Future[String] = createOrUpdateDoc(doc)\n      \n      // Create doc via object\n      case class MyFood(food: String)\n      val myFood = MyFood(\"Pizza\")\n      val response2: Future[String] = createOrUpdateDoc[MyFood](myFood)\n      \n      // Create doc via object, then unmarshall the response\n      val response3: Future[MyResponseType] = createOrUpdateDoc[MyFood](myFood).unmarshalTo[MyResponseType]\n}\n```\n\nThe best documentation is the [code itself](https://github.com/icha024/spray-cloudant/blob/master/src/main/scala/com/clianz/cloudant/CloudantOps.scala), it'll only take 2 minutes to glance through the code.\n\n### Client API Available\n##### DB CRUD Operations\n- createDb\n- retrieveDb\n- retrieveAllDbs\n- deleteDb\n\n##### Doc CRUD Operations\n- createOrUpdateDoc\n- createOrUpdateOrDeleteBulkDoc\n- retrieveDoc\n- deleteDoc\n\n##### Index/View Operations\n- createOrUpdateIndex\n- createOrUpdateView\n- searchIndex\n- searchView\n\n#### Unsupported Operations\n- Retrieve all doc on a DB\n- Retrieve DB changes\n- Querying view by composite key \n\n## Installing the client\nCheck Maven Central for the latest published version.\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.clianz/spray-cloudant_2.11.svg)](http://search.maven.org/#search%7Cga%7C1%7Cspray-cloudant)\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.clianz\u003c/groupId\u003e\n    \u003cartifactId\u003espray-cloudant_2.11\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### SBT\n\n```properties\nlibraryDependencies += \"com.clianz\" % \"spray-cloudant_2.11\" % \"0.1.3\"\n```\n\n### Transitive Dependencies\n\nThis library uses Scala 2.11, Spray/Akka, and the Shapeless library (via Spray-json-shapless).\n\n```\ncom.clianz:spray-cloudant_2.11:jar:0.1-SNAPSHOT\n+- org.scala-lang:scala-compiler:jar:2.11.7:compile\n|  +- org.scala-lang:scala-library:jar:2.11.7:compile\n|  +- org.scala-lang:scala-reflect:jar:2.11.7:compile\n|  +- org.scala-lang.modules:scala-xml_2.11:jar:1.0.4:compile\n|  \\- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.4:compile\n+- com.typesafe.akka:akka-actor_2.11:jar:2.4.4:compile\n|  +- com.typesafe:config:jar:1.3.0:compile\n|  \\- org.scala-lang.modules:scala-java8-compat_2.11:jar:0.7.0:compile\n+- io.spray:spray-client_2.11:jar:1.3.2:compile\n|  +- io.spray:spray-can_2.11:jar:1.3.2:compile\n|  |  \\- io.spray:spray-io_2.11:jar:1.3.2:compile\n|  +- io.spray:spray-http_2.11:jar:1.3.2:compile\n|  |  \\- org.parboiled:parboiled-scala_2.11:jar:1.1.6:compile\n|  |     \\- org.parboiled:parboiled-core:jar:1.1.6:compile\n|  +- io.spray:spray-httpx_2.11:jar:1.3.2:compile\n|  |  \\- org.jvnet.mimepull:mimepull:jar:1.9.4:compile\n|  \\- io.spray:spray-util_2.11:jar:1.3.2:compile\n\\- com.github.fommil:spray-json-shapeless_2.11:jar:1.2.0:compile\n   +- io.spray:spray-json_2.11:jar:1.3.2:compile\n   +- org.slf4j:slf4j-api:jar:1.7.16:compile\n   \\- com.chuusai:shapeless_2.11:jar:2.3.0:compile\n      \\- org.typelevel:macro-compat_2.11:jar:1.1.1:compile\n```\n\n#### Spray-routing version\nAs [mentioned in the official Spray documentation](http://spray.io/project-info/current-versions/#shapeless-versions), **if you are using Spray-routing, then you need the version built for shapeless**.\n \nThis library was tested with:\n```\nio.spray:spray-routing-shapeless2_2.11:jar:1.3.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficha024%2Fspray-cloudant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficha024%2Fspray-cloudant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficha024%2Fspray-cloudant/lists"}