Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

This is the main point why Elysia exists Not performance, not fancy stuffs This problem is very real and I learnt it a hard way Type signature from your actual code IS the documentation not the other way around We spent ~3 years to perfect this

93,834 Aufrufe • vor 8 Monaten •via X (Twitter)

20 Kommentare

Profilbild von SaltyAom
SaltyAomvor 8 Monaten

A lot of people are ok with writing input validation but not output validation This means that output is not described and not possible to document what API would returns Elysia fix that by using infer TypeScript type to schema NO MANUAL ANNOATION Your code is your schema

Profilbild von SaltyAom
SaltyAomvor 8 Monaten

Interestingly, this problem is universal and ranks at 7th among all pain points with a JavaScript backend

Profilbild von 不俱戴天 // Jose
不俱戴天 // Josevor 8 Monaten

Will try Elysia in my next project, any tips to start with the right foot?

Profilbild von SaltyAom
SaltyAomvor 8 Monaten

Use the interactive tutorial

Profilbild von Jason Kwok
Jason Kwokvor 8 Monaten

that openapi type spec is MINT dev x being able to integrate with other parts of your codebase NOT written in ts was the main reason i switched

Profilbild von Code Vader
Code Vadervor 8 Monaten

Been taking the interactive Elysia tutorial, I can tell a lot of work went into building Elysia. The only bummer for me was the drizzle ORM setup, seemed a little too much just to get things working, maybe cuz most frameworks I've used come with built-in ORMs

Profilbild von pegas
pegasvor 8 Monaten

what's this theme for vscode, looking so cool

Profilbild von SaltyAom
SaltyAomvor 8 Monaten

Not VSCode, Zed Catppuccin Latte Blur

Profilbild von Nikhil Karmakar
Nikhil Karmakarvor 8 Monaten

what Alien software do you use😭😭😭 Can u please tell me also

Profilbild von Parthajeet Sarmah
Parthajeet Sarmahvor 8 Monaten

Anything that can self document my APIs instantly to this level is a blessing for any developer. It is an absolutely necessary factor of API frameworks now I feel, because the world moves so fast. I can't be sitting here documenting each and every endpoint!

Profilbild von Sebastian Buzdugan
Sebastian Buzduganvor 8 Monaten

using actual types as docs saves so many bugs

Profilbild von Ahmed Mbarek
Ahmed Mbarekvor 8 Monaten

i really appreciate if the Nextjs team use elysia as a base so we get a good file based routing with more performance and cleaner syntax.

Profilbild von Sean
Seanvor 8 Monaten

Other than the on-hover tooltips, can’t you do something like this in ts with zod-to-openapi?

Profilbild von SaltyAom
SaltyAomvor 8 Monaten

What make this difference is that you don’t annotate output with zod or any validation library It is inferred from your code using type signature

Profilbild von OneManSaas
OneManSaasvor 8 Monaten

What's been the biggest challenge in getting devs to trust type signatures as documentation? I've seen teams that religiously maintain separate docs even when the types tell the whole story.

Profilbild von DeadPoule
DeadPoulevor 8 Monaten

does Elysia have middleware type propagation ?

Profilbild von PerryFinn
PerryFinnvor 8 Monaten

I like this API documentation, and I also like this framework. It would be even better if there were more examples on the official website, just like NestJS.

Profilbild von Zoe Sterling
Zoe Sterlingvor 8 Monaten

documentation that lies vs code that can't lie. choose your fighter

Profilbild von Yamin
Yaminvor 8 Monaten

Share your zed theme! it looks so good!

Profilbild von SaltyAom
SaltyAomvor 8 Monaten

Catppuccin Late Blur

Ähnliche Videos