{"id":37017332,"url":"https://github.com/rustedbones/akka-http-thrift","last_synced_at":"2026-01-14T02:00:06.444Z","repository":{"id":37191235,"uuid":"168348247","full_name":"RustedBones/akka-http-thrift","owner":"RustedBones","description":"akka-http thrift binary/compact/json marshalling/unmarshalling, for thrift java or scrooge","archived":true,"fork":false,"pushed_at":"2023-11-02T15:41:29.000Z","size":97,"stargazers_count":2,"open_issues_count":17,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T02:00:04.644Z","etag":null,"topics":["akka","akka-http","http","scala","thrift","thrift-protocol"],"latest_commit_sha":null,"homepage":"","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/RustedBones.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-01-30T13:33:59.000Z","updated_at":"2023-11-02T15:41:43.000Z","dependencies_parsed_at":"2023-02-15T13:10:39.079Z","dependency_job_id":"f7817bb5-b3e0-4604-b673-cd76cc986a4b","html_url":"https://github.com/RustedBones/akka-http-thrift","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/RustedBones/akka-http-thrift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-thrift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-thrift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-thrift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-thrift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RustedBones","download_url":"https://codeload.github.com/RustedBones/akka-http-thrift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-thrift/sbom","scorecard":{"id":123331,"data":{"date":"2025-08-11","repo":{"name":"github.com/RustedBones/akka-http-thrift","commit":"bb6fb1b0316f9fd690c826de3c8874785f34642d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":6,"reason":"Found 16/23 approved changesets -- score normalized to 6","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":"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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/RustedBones/akka-http-thrift/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/RustedBones/akka-http-thrift/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/RustedBones/akka-http-thrift/ci.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/clean.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":"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 29 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-16T03:03:15.080Z","repository_id":37191235,"created_at":"2025-08-16T03:03:15.080Z","updated_at":"2025-08-16T03:03:15.080Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"ssl_error","status_checked_at":"2026-01-14T01:40:32.775Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["akka","akka-http","http","scala","thrift","thrift-protocol"],"created_at":"2026-01-14T02:00:05.769Z","updated_at":"2026-01-14T02:00:06.437Z","avatar_url":"https://github.com/RustedBones.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# akka-http-thrift\n\n[![Continuous Integration](https://github.com/RustedBones/akka-http-thrift/actions/workflows/ci.yml/badge.svg)](https://github.com/RustedBones/akka-http-thrift/actions/workflows/ci.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/fr.davit/akka-http-thrift_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/fr.davit/akka-http-thrift_2.12)\n[![Software License](https://img.shields.io/badge/license-Apache%202-brightgreen.svg?style=flat)](LICENSE)\n[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)\n\nakka-http thrift and json marshalling/unmarshalling for Thrift structs and Scrooge generated classes\n\nAfter the akka [licencing change](https://www.lightbend.com/blog/why-we-are-changing-the-license-for-akka),\nno further development is expected on `akka-http-thrift`.\nIf you're migrating to pekko-http, see [pekko-http-thrift](https://github.com/RustedBones/pekko-http-thrift).\n\n## Versions\n\n| Version | Release date | Akka Http version | Thrift version | Scrooge version | Scala versions                 |\n|---------|--------------|-------------------|----------------|---------------- |--------------------------------|\n| `0.2.5` | 2022-06-01   | `10.2.9`          | `0.16.0`       | `22.4.0`        | `2.13.8`, `2.12.15`            |\n| `0.2.4` | 2021-09-21   | `10.2.6`          | `0.15.0`       | `21.8.0`        | `2.13.6`, `2.12.15`            |\n| `0.2.3` | 2021-08-11   | `10.2.6`          | `0.14.2`       | `21.6.0`        | `2.13.6`, `2.12.14`            |\n| `0.2.2` | 2021-03-06   | `10.1.14`         | `0.14.0`       | `19.12.0`       | `2.13.5`, `2.12.13`            |\n| `0.2.1` | 2019-12-06   | `10.1.11`         | `0.13.0`       | `19.11.0`       | `2.13.1`, `2.12.10`, `2.11.12` |\n| `0.2.0` | 2019-07-13   | `10.1.8`          | `0.11.0`       | `19.1.0`        | `2.12.8`, `2.11.12`            |\n| `0.1.0` | 2019-01-31   | `10.1.7`          | `0.11.0`       | `19.1.0`        | `2.12.8`, `2.11.12`,           |\n\nThe complete list can be found in the [CHANGELOG](CHANGELOG.md) file.\n\n## Getting akka-http-thrift\n\nLibraries are published to Maven Central. Add to your `build.sbt`:\n\n```scala\nlibraryDependencies += \"fr.davit\" %% \"akka-http-thrift\"         % \u003cversion\u003e // thrift support\nlibraryDependencies += \"fr.davit\" %% \"akka-http-thrift-scrooge\" % \u003cversion\u003e // srooge support\n```\n\n**Important**: Since akka-http 10.1.0, akka-stream transitive dependency is marked as provided. You should now explicitly\ninclude it in your build.\n\n\u003e [...] we changed the policy not to depend on akka-stream explicitly anymore but mark it as a provided dependency in our build. \nThat means that you will always have to add a manual dependency to akka-stream. Please make sure you have chosen and \nadded a dependency to akka-stream when updating to the new version\n\n```scala\nlibraryDependencies += \"com.typesafe.akka\" %% \"akka-stream\" % \u003cversion\u003e // Only Akka 2.5 supported\n```\n\nFor more details, see the akka-http 10.1.x [release notes](https://doc.akka.io/docs/akka-http/current/release-notes/10.1.x.html)\n\n## Quick start\n\nFor the examples, we are using the following thrift domain model \n\n```thrift\nstruct Item {\n  1: string name\n  2: i64 id\n}\n\nstruct Order {\n  1: list\u003cItem\u003e items\n}\n```\n\nMarshalling/Unmarshalling of the generated classes depends on the `Accept`/`Content-Type` header sent by the client:\n- `Content-Type: application/json`: json\n- `Content-Type: application/vnd.apache.thrift.json`: json\n- `Content-Type: application/vnd.apache.thrift.binary`: binary\n- `Content-Type: application/vnd.apache.thrift.compact`: compact\n\n-No `Accept` header or matching several (eg `Accept: application/*`) will take the 1st matching type from the above list.\n\n### Thrift\n\nThe implicit marshallers and unmarshallers for your generated thrift classes are defined in \n`ThriftSupport`. Specific (un)marshallers can be imported from `ThriftBinarySupport`, `ThriftCompactSupport` and `ThriftJsonSupport`. \nYou simply need to have them in scope.\n\n```scala\nimport akka.http.scaladsl.server.Directives\nimport fr.davit.akka.http.scaladsl.marshallers.thrift.ThriftSupport\n\n\nclass MyThriftService extends Directives with ThriftSupport {\n\n  // format: OFF\n  val route =\n    get {\n      pathSingleSlash {\n        complete(Item(\"thing\", 42))\n      }\n    } ~\n    post {\n      entity(as[Order]) { order =\u003e\n        val itemsCount = order.items.size\n        val itemNames = order.items.map(_.name).mkString(\", \")\n        complete(s\"Ordered $itemsCount items: $itemNames\")\n      }\n    }\n  // format: ON\n}\n```\n\n### Scrooge\n\nThe implicit marshallers and unmarshallers for your generated thrift classes are defined in \n`ScroogeSupport`. Specific (un)marshallers can be imported from `ScroogeBinarySupport`, `ScroogeCompactSupport` and `ScroogeJsonSupport`. \nYou need to have them in scope as well as the `ThriftStructCodec` for the classes (The companion object generated by scrooge\nis the codec).\n\n```scala\nimport akka.http.scaladsl.server.Directives\nimport fr.davit.akka.http.scaladsl.marshallers.thrift.scrooge.ScroogeSupport\nimport com.twitter.scrooge.ThriftStructCodec\n\nclass MyScroogeService extends Directives with ScroogeSupport {\n\n  implicit val itemCodec: ThriftStructCodec[Item] = Item\n  implicit val orderCodec: ThriftStructCodec[Order] = Order\n\n  // format: OFF\n  val route =\n    get {\n      pathSingleSlash {\n        complete(Item(\"thing\", 42))\n      }\n    } ~\n    post {\n      entity(as[Order]) { order =\u003e\n        val itemsCount = order.items.size\n        val itemNames = order.items.map(_.name).mkString(\", \")\n        complete(s\"Ordered $itemsCount items: $itemNames\")\n      }\n    }\n  // format: ON\n}\n```\n\n## Limitation\n\nEntity streaming (http chunked transfer) is at the moment not supported by the library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustedbones%2Fakka-http-thrift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustedbones%2Fakka-http-thrift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustedbones%2Fakka-http-thrift/lists"}