{"id":37130837,"url":"https://github.com/deliveroo/jsonrpc-go","last_synced_at":"2026-01-14T15:02:25.914Z","repository":{"id":56529412,"uuid":"258647440","full_name":"deliveroo/jsonrpc-go","owner":"deliveroo","description":"A microframework for writing JSON-RPC web applications.","archived":true,"fork":false,"pushed_at":"2023-02-28T19:21:55.000Z","size":48,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":35,"default_branch":"master","last_synced_at":"2024-06-21T19:03:23.456Z","etag":null,"topics":["library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deliveroo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2020-04-24T23:35:19.000Z","updated_at":"2023-03-20T12:17:04.000Z","dependencies_parsed_at":"2024-06-21T17:54:44.151Z","dependency_job_id":"5f93d47c-2044-4683-98f9-2f403ad5fb16","html_url":"https://github.com/deliveroo/jsonrpc-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/deliveroo/jsonrpc-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Fjsonrpc-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Fjsonrpc-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Fjsonrpc-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Fjsonrpc-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deliveroo","download_url":"https://codeload.github.com/deliveroo/jsonrpc-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deliveroo%2Fjsonrpc-go/sbom","scorecard":{"id":333133,"data":{"date":"2025-08-11","repo":{"name":"github.com/deliveroo/jsonrpc-go","commit":"e17dee0c10c0f774361d9b7194f6eb56cad242da"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":3,"reason":"Found 3/8 approved changesets -- score normalized to 3","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":"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":"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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:30","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency_enforcement.yml:10","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/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/deliveroo/jsonrpc-go/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/deliveroo/jsonrpc-go/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/deliveroo/jsonrpc-go/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/deliveroo/jsonrpc-go/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency_enforcement.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/deliveroo/jsonrpc-go/dependency_enforcement.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency_enforcement.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/deliveroo/jsonrpc-go/dependency_enforcement.yml/master?enable=pin","Info:   0 out of   6 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":"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":"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: The Unlicense: 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: 'allow deletion' enabled on branch 'master'","Warn: 'force pushes' enabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is required - but no codeowners file found in repo","Warn: 'last push approval' is disabled on branch 'master'","Warn: no status checks found to merge onto branch 'master'","Info: PRs are required in order to make changes on 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":"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 7 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":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"}}]},"last_synced_at":"2025-08-18T04:03:33.297Z","repository_id":56529412,"created_at":"2025-08-18T04:03:33.298Z","updated_at":"2025-08-18T04:03:33.298Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","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":["library"],"created_at":"2026-01-14T15:02:25.102Z","updated_at":"2026-01-14T15:02:25.895Z","avatar_url":"https://github.com/deliveroo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonrpc-go\n\n[![CircleCI](https://img.shields.io/circleci/build/github/deliveroo/jsonrpc-go)](https://circleci.com/gh/deliveroo/jsonrpc-go/tree/master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/deliveroo/jsonrpc-go)](https://goreportcard.com/report/github.com/deliveroo/jsonrpc-go)\n[![GoDoc](https://godoc.org/net/http?status.svg)](https://godoc.org/github.com/deliveroo/jsonrpc-go)\n[![go.dev](https://img.shields.io/badge/go.dev-pkg-007d9c.svg?style=flat)](https://pkg.go.dev/github.com/deliveroo/jsonrpc-go)\n\nPackage jsonrpc implements a microframework for writing JSON-RPC web\napplications.\n\n## Methods\n\nMethods are defined as:\n\n```\nfunc(ctx context.Context, params T) (interface{}, error) // JSON unmarshable params\nfunc(ctx context.Context) (interface{}, error)           // no params\n```\n\nwhere `T` can be any time which can be unmarshaled from JSON (structs and\nprimitives).\n\nIf a method returns a value along with a nil error, the value will be rendered\nto the client as JSON.\n\nIf an error is returned, it will be sanitized and returned to the client as\njson. Errors generated by a call to `jsonrpc.Error(name, message, args)` will be\nrendered as-is to the client. Any other errors will be obfuscated to the caller\n(unless `server.DumpErrors` is enabled).\n\n## Spec\n\n`jsonrpc` loosely follows the [JSON-RPC 2.0\nSpecification](https://www.jsonrpc.org/specification), with some notable\ndifferences:\n\n* the version parameter is not expected, and will not be returned\n* errors include a `Name` string, rather than an integer `Code`\n\n## Example\n\n```go\nvar logger = log.New(os.Stderr, \"server: \", 0)\n\nfunc main() {\n\tserver := jsonrpc.New()\n\tserver.Use(LoggingMiddleware(logger))\n\tserver.Register(jsonrpc.Methods{\n\t\t\"Hello\": hello,\n\t})\n\n\thttp.ListenAndServe(\":80\", server)\n}\n\ntype helloParams struct {\n\tName string `json:\"name\"`\n}\n\nfunc hello(ctx context.Context, params *helloParams) (interface{}, error) {\n\treturn jsonrpc.M{\"message\": fmt.Sprintf(\"Hello, %s\", params.Name)}, nil\n}\n\nfunc LoggingMiddleware(logger *logger.Logger) Middleware {\n\treturn func (next jsonrpc.Next) jsonrpc.Next {\n\t\treturn func(ctx context.Context, params interface{}) (interface{}, error) {\n\t\t\tmethod := jsonrpc.MethodFromContext(ctx)\n\t\t\tstart := time.Now()\n\t\t\tdefer func() {\n\t\t\t\tlogger.Printf(\"%s (%v)\\n\", method, time.Since(start))\n\t\t\t}()\n\t\t\treturn next(ctx, params)\n\t\t}\n\t}\n}\n```\n\nRequest:\n```json\n{\n\t\"id\": 1,\n\t\"method\": \"Hello\",\n\t\"params\": {\n\t\t\"name\": \"Alice\"\n\t}\n}\n```\n\nResponse:\n```json\n{\n\t\"id\": 1,\n\t\"result\": {\n\t\t\"message\": \"Hello, Alice!\"\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeliveroo%2Fjsonrpc-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeliveroo%2Fjsonrpc-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeliveroo%2Fjsonrpc-go/lists"}