Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 8 месяцев назад •via X (Twitter)

Комментарии: 20

Фото профиля SaltyAom
SaltyAom8 месяцев назад

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

Фото профиля SaltyAom
SaltyAom8 месяцев назад

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

Фото профиля 不俱戴天 // Jose
不俱戴天 // Jose8 месяцев назад

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

Фото профиля SaltyAom
SaltyAom8 месяцев назад

Use the interactive tutorial

Фото профиля Jason Kwok
Jason Kwok8 месяцев назад

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

Фото профиля Code Vader
Code Vader8 месяцев назад

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

Фото профиля pegas
pegas8 месяцев назад

what's this theme for vscode, looking so cool

Фото профиля SaltyAom
SaltyAom8 месяцев назад

Not VSCode, Zed Catppuccin Latte Blur

Фото профиля Nikhil Karmakar
Nikhil Karmakar8 месяцев назад

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

Фото профиля Parthajeet Sarmah
Parthajeet Sarmah8 месяцев назад

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!

Фото профиля Sebastian Buzdugan
Sebastian Buzdugan8 месяцев назад

using actual types as docs saves so many bugs

Фото профиля Ahmed Mbarek
Ahmed Mbarek8 месяцев назад

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.

Фото профиля Sean
Sean8 месяцев назад

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

Фото профиля SaltyAom
SaltyAom8 месяцев назад

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

Фото профиля OneManSaas
OneManSaas8 месяцев назад

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.

Фото профиля DeadPoule
DeadPoule8 месяцев назад

does Elysia have middleware type propagation ?

Фото профиля PerryFinn
PerryFinn8 месяцев назад

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.

Фото профиля Zoe Sterling
Zoe Sterling8 месяцев назад

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

Фото профиля Yamin
Yamin8 месяцев назад

Share your zed theme! it looks so good!

Фото профиля SaltyAom
SaltyAom8 месяцев назад

Catppuccin Late Blur

Похожие видео