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

[Feature Request] add handler for elysia #37

Open
oSethoum opened this issue Nov 4, 2023 · 2 comments
Open

[Feature Request] add handler for elysia #37

oSethoum opened this issue Nov 4, 2023 · 2 comments

Comments

@oSethoum
Copy link

oSethoum commented Nov 4, 2023

elysia is the best bun framework fro building api's so far, can you add handler.js in the build output like svelte node adapter does for express js? that will be very helpful.

@silvio2402
Copy link
Contributor

#28 would resolve this. Elysia supports .mount with WinterCG-compliant fetch function.

@notramo
Copy link

notramo commented Oct 2, 2024

@oSethoum, could you elaborate some of the use cases for this?

I found that tRPC is quite good for API calls where form actions are not idiomatic. It provides fron-end type safety and input validation with any validation library (e.g. Arktype, Valibot, Zod, etc).
When the API is not consumed by the same SvelteKit app frontend but a 3rd party (e.g. native) app, GraphQL Yoga seems to be a good option although I haven't tried it yet. It also provides type safety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants