bat9r / 0cfg-rpc

Modern open source RPC framework for Typescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt text

Codesphere RPC

Codesphere RPC is a modern, modular open source RPC framework for Typescript, which abstracts away HTTP and WebSocket and lets you write code as if there was no network layer in between.

It is intended for fullstack microservice applications and optimized for usage with DI containers (see: inversify.js).

Codesphere RPC is built on top of express and ws for node and the WebSocket and fetch API's in the browser.

The express app can be used outside Codesphere RPC if needed (e.g. to comply with the requirements of external integrations).

WIP

This is still a work in progress and under active development by the Codesphere team.

Current features:

  • Request reply (like HTTP)
  • Serverside streaming
  • Bidirectional streaming
  • Middlewares (including OAuth support)

Planned:

  • Clientside streaming
  • Automatic type checks via a TypeScript transformer
  • Stub generation as a tsc compile step
  • CLI generation
  • API Documentation generation as a tsc compile step
  • Implementations for other languages
  • 100% test coverage
  • Tutorials and more documentation

Prerequisites

  • Node.js 14.4.0 or higher
  • Yarn

Build

  1. yarn
  2. yarn bootstrap
  3. yarn build
  4. yarn test
  5. yarn lintFix

Contribute

Fork the project and send a PR. PR's will be reviewed on a best effort basis and integrated into the next release.

About

Modern open source RPC framework for Typescript.


Languages

Language:TypeScript 96.5%Language:JavaScript 3.5%