Router or ServerFn Level Plugin System Similar to Middleware #6430
Vijayabaskar56
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would be cool to have something like this , a plugin system that extends the server handler that can be serverFn & API Router
or like this
I Know it can be archived simply with middleware, and I also not its wouldn't be straightforward as it involve isomorphic execution Context , but it would be a cool to have plugins system for most common cases like body limit , CSRF or compression etc , and this was inspired by orpc plugin system https://orpc.dev/docs/plugins/body-limit
Having Plugin for common cases, and even community Plugin that allow extended the server capacity would be super cool.
Beta Was this translation helpful? Give feedback.
All reactions