Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deno-libs/rpc
📡 JSONRPC server router for Deno
https://github.com/deno-libs/rpc
deno deno-server jsonrpc jsonrpc-server rpc typescript
Last synced: 3 days ago
JSON representation
📡 JSONRPC server router for Deno
- Host: GitHub
- URL: https://github.com/deno-libs/rpc
- Owner: deno-libs
- License: mit
- Created: 2021-09-24T15:10:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-04T11:25:15.000Z (over 1 year ago)
- Last Synced: 2024-10-05T14:17:44.716Z (about 1 month ago)
- Topics: deno, deno-server, jsonrpc, jsonrpc-server, rpc, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/rpc
- Size: 32.2 KB
- Stars: 23
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - rpc - JSONRPC server implementation for Deno. (Modules / Web utils)
README
# rpc
[![nest badge][nest-badge]](https://nest.land/package/rpc/mod.ts)
[![][docs-badge]][docs] [![][code-quality-img]][code-quality]JSONRPC server router for Deno using native WebSocket, based on
[jsonrpc](https://github.com/Vehmloewff/jsonrpc).## Features
- No dependencies
- Typed parameters## Example
```ts
import { App } from 'https://deno.land/x/rpc/app.ts'const app = new App()
app.method<[string]>('hello', (params) => {
return `Hello ${params[0]}`
})app.listen({ port: 8080, hostname: '0.0.0.0' })
```See client-server example [here](/example)
[docs-badge]: https://img.shields.io/github/v/release/deno-libs/rpc?label=Docs&logo=deno&style=for-the-badge&color=black
[docs]: https://doc.deno.land/https/deno.land/x/rpc/mod.ts
[code-quality-img]: https://img.shields.io/codefactor/grade/github/deno-libs/rpc?style=for-the-badge&color=black&
[code-quality]: https://www.codefactor.io/repository/github/deno-libs/rpc
[nest-badge]: https://img.shields.io/badge/publushed%20on-nest.land-black?style=for-the-badge