{"id":38606312,"url":"https://github.com/tkroman/micromarshal","last_synced_at":"2026-01-17T08:38:12.418Z","repository":{"id":57729080,"uuid":"83936574","full_name":"tkroman/micromarshal","owner":"tkroman","description":"Autoderivation of Akka HTTP marshallers/unmarshallers with uPickle","archived":false,"fork":false,"pushed_at":"2017-03-08T13:23:32.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T05:51:41.264Z","etag":null,"topics":["akka-http","json","scalameta","upickle"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/tkroman.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":"2017-03-05T01:31:15.000Z","updated_at":"2018-05-29T15:44:12.000Z","dependencies_parsed_at":"2022-09-10T21:50:09.244Z","dependency_job_id":null,"html_url":"https://github.com/tkroman/micromarshal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tkroman/micromarshal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkroman%2Fmicromarshal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkroman%2Fmicromarshal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkroman%2Fmicromarshal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkroman%2Fmicromarshal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkroman","download_url":"https://codeload.github.com/tkroman/micromarshal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkroman%2Fmicromarshal/sbom","scorecard":{"id":889085,"data":{"date":"2025-08-11","repo":{"name":"github.com/tkroman/micromarshal","commit":"495d4fd626ba4575fc5eaee27600e29c06549a44"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 1/20 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":"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":"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":"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":"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":"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":"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-24T11:06:11.255Z","repository_id":57729080,"created_at":"2025-08-24T11:06:11.255Z","updated_at":"2025-08-24T11:06:11.255Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["akka-http","json","scalameta","upickle"],"created_at":"2026-01-17T08:38:12.343Z","updated_at":"2026-01-17T08:38:12.402Z","avatar_url":"https://github.com/tkroman.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micromarshal\n\n[![Join the chat at https://gitter.im/micromarshal/Lobby](https://badges.gitter.im/micromarshal/Lobby.svg)](https://gitter.im/micromarshal/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\nAutoderivation of Akka-HTTP marshallers/unmarshallers with [uPickle](http://www.lihaoyi.com/upickle-pprint/upickle) in \u003c 200 LOC.\n\n## Usage\n\n### Dependency\n\nVery much beta. Cross-build for scala 2.11/2.12.\n\n`\"com.tkroman\" %% \"micromarshal\" % \"0.0.8\"`\n\nIn order to expand macro annotations client projects should also have these options enabled:\n\n```scala\nlazy val expandMacroAnnotations: Seq[Def.Setting[_]] = Seq(\n  addCompilerPlugin(\n    (\"org.scalameta\" % \"paradise\" % \"3.0.0-M7\").cross(CrossVersion.full)\n  ),\n\n  libraryDependencies +=\n    \"org.scalameta\" %% \"scalameta\" % \"1.6.0\" % Provided,\n\n  scalacOptions += \"-Xplugin-require:macroparadise\",\n\n  // macroparadise plugin doesn't work in repl yet.\n  scalacOptions in (Compile, console) := Seq(),\n\n  // macroparadise doesn't work with scaladoc yet.\n  sources in (Compile, doc) := Nil\n)\n```\n\n### Code\n\n[Full example in tests](src/test/scala/com/tkroman/micromarshal/MarshallingSuite.scala)\n\nIn short: just slap `@com.tkroman.micromarshal.deriveAkkaMarshalling` on your case class\nor sealed trait to get an automatic upickle-powered JSON encoding/decoding support + Akka HTTP (un)marshallers.\n\n```scala\nimport com.tkroman.micromarshal.deriveAkkaMarshalling\n\n@deriveAkkaMarshalling\ncase class Foo(str: String)\n```\n\nso later in your Akka-HTTP router you can do this:\n\n```scala\nget {\n  path(\"foo\") {\n    complete(Foo(\"content\"))\n  }\n}\n```\n\n## Hygiene\n\nMicromarshal does not rely on generation of fresh names and does not employ typechecking of any kind\nto ensure that companion objects of classes already contain implicit `ReadWriter` definitions.\n\nInstead, there is a simple convention:\nif the companion object contains a definition of type `upickle.default.ReadWriter[A]`\n(or `custom.pickler.ReadWriter[A]`),\nno `ReadWriter` implicit is generated. This might come in handy when a need arises to\n[manually define and instance for a sealed hierarchy](http://www.lihaoyi.com/upickle-pprint/upickle/#ManualSealedTraitPicklers).\n\n## Custom (un)picklers\n\nConsistently with uPickle, `deriveAkkaMarshalling` accepts a custom pickler. For example:\n\n```scala\npackage a.b.c\n\nobject CustomPickler extends upickle.AttributeTagged {\n  // custom pickling here\n}\n\n@deriveAkkaMarshalling(\"a.b.c.OptionPickler\")\ncase class Foo(x: Int)\n```\n\n## TODO\n\n* Abstraction over JSON library (would like to support circe)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkroman%2Fmicromarshal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkroman%2Fmicromarshal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkroman%2Fmicromarshal/lists"}