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).
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
- Node.js 14.4.0 or higher
- Yarn
yarn
yarn bootstrap
yarn build
yarn test
yarn lintFix
Fork the project and send a PR. PR's will be reviewed on a best effort basis and integrated into the next release.