{"id":20272326,"url":"https://github.com/steemit/koa-jsonrpc","last_synced_at":"2025-04-11T04:41:59.430Z","repository":{"id":63177216,"uuid":"103996447","full_name":"steemit/koa-jsonrpc","owner":"steemit","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-01T20:11:20.000Z","size":81,"stargazers_count":9,"open_issues_count":1,"forks_count":11,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-11T04:41:56.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steemit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-18T22:01:39.000Z","updated_at":"2024-10-25T15:44:47.000Z","dependencies_parsed_at":"2022-11-14T11:17:17.454Z","dependency_job_id":null,"html_url":"https://github.com/steemit/koa-jsonrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fkoa-jsonrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fkoa-jsonrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fkoa-jsonrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steemit%2Fkoa-jsonrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steemit","download_url":"https://codeload.github.com/steemit/koa-jsonrpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345281,"owners_count":21088242,"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","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":"2024-11-14T12:42:52.417Z","updated_at":"2025-04-11T04:41:59.412Z","avatar_url":"https://github.com/steemit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n@steemit/koa-jsonrpc\n====================\n\n*Build status: [![CircleCI](https://circleci.com/gh/steemit/koa-jsonrpc.svg?style=svg)](https://circleci.com/gh/steemit/koa-jsonrpc)*\n\nSpec compliant JSON RPC Server middleware for Koa\n\n\n```javascript\nconst Koa = require('koa')\nconst {JsonRpc} = require('@steemit/koa-jsonrpc')\n\nconst rpc = new JsonRpc()\nrpc.register('my_method', async (foo, bar) =\u003e {\n    return foo + bar\n})\n\nconst app = new Koa()\napp.use(rpc.middleware)\napp.listen(8080)\n\n```\n\n```\n$ curl -X POST -d '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"my_method\",\"params\":[\"honkey\",\"tonk\"]}' localhost:8080\n{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":\"honkeytonk\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteemit%2Fkoa-jsonrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteemit%2Fkoa-jsonrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteemit%2Fkoa-jsonrpc/lists"}