Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TS server library agnostic #92

Open
joshmossas opened this issue Aug 22, 2024 · 0 comments
Open

Make TS server library agnostic #92

joshmossas opened this issue Aug 22, 2024 · 0 comments
Labels
enhancement New feature or request lang:ts

Comments

@joshmossas
Copy link
Member

joshmossas commented Aug 22, 2024

Describe the feature

Right now the Arri TS server assumes that developers are using H3. However ideally devs should be able to integrate Arri RPC into existing nodeJS servers whether it be Express, Fastify, or whatever.

Additional context

In order to accomplish this we will need to strip out the core Arri server code and allow that to be a standalone library. The existing TS server (with file-based routing and hot-reload for client code) will be converted to a "framework" built on top of the Arri core library.

The "arri-core" library will not be a server in and of itself. Instead it will require an "adapter" that can be used to map it to various different HTTP libraries. (We can possibly use trpc adapters as a point of reference for this). We can ship with some default adapters for vanilla nodejs, express, and fastify. Then we'll also want to document how people can make their own adapters.

@joshmossas joshmossas added enhancement New feature or request lang:ts labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lang:ts
Projects
None yet
Development

No branches or pull requests

1 participant