mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

338K
active users

#fastify

0 posts0 participants0 posts today

NEST.js — уродливый монстр или мощный энтерпрайз?

Если, когда вы смотрите на NEST.js вас гнетёт необъяснимая тоска. Если вы не можете понять воодушевления и радости от использования декораторов. Если рассмотрение очередного NEST-инструмента вызывает лёгкое недоумение — не стесняйтесь, вы не одиноки. NEST.js – это фреймворк для написания REST серверов под Node.js на языке TypeScript, который потом транспилируется в JavaScript. Он написан поверх библиотеки Express (или Fastify – можно выбрать) и привносит модные концепции – Inversion of Control, Dependency Injection и т. п. в мир JavaScript. Нередко описание этого инструмента сопровождается восторженным настроением. Как мне кажется, эта восторженность несколько преувеличена, сложность излишняя, а чудо-сила отсутствует. Некоторые неудобства вынудили нас отказаться от его использования после нескольких лет разработки.

habr.com/ru/articles/890058/

ХабрNEST.js — уродливый монстр или мощный энтерпрайз?Если, когда вы смотрите на NEST.js вас гнетёт необъяснимая тоска. Если вы не можете понять воодушевления и радости от использования декораторов. Если рассмотрение очередного NEST-инструмента вызывает...
#nestjs#nest#rest

Безопасное взаимодействие с API: от ошибок к стабильности

Каждый frontend-разработчик сталкивался с ошибкой вида TypeError: Cannot read property 'name' of undefined . Это часть целого класса ошибок в JavaScript, возникающих из-за несоответствия фактического формата данных ожидаемому. В этой статье расскажу, как избавиться от подобных проблем и добиться стабильности, внедрив три ключевых шага: API-слой , Backend-for-Frontend (BFF) и проверку с помощью Zod .

habr.com/ru/companies/domclick

ХабрБезопасное взаимодействие с API: от ошибок к стабильностиКаждый frontend-разработчик сталкивался с ошибкой вида TypeError: Cannot read property 'name' of undefined . Это часть целого класса ошибок в JavaScript, возникающих из-за несоответствия фактического...
#bff#api#zod

Hi!

I'm Adrian, a FullStack #Developer looking for a job either in #Québec (or from it if you allow for remote work). I already have a permanent and open visa

I have experience building and maintaining web apps and APIs, designing systems, doing #DevOps and a bit of #BigData, #MachineLearning and #IoT

I'm experienced using #Elixir, #Phoenix, #LiveView, #NodeJS, #TypeScript, #Fastify, #Express and #Python ; and on the DevOps side in CI/CD pipelines (either #GithubActions and Gitlab CI/CD), #Docker and a bit of #Kubernetes

I was tasked with a lot of the #innovation happening in my previous company, researching tools, librairies, patterns or general technologies either for our own #DeveloperExperience or for our products

I also wrote a lot of technical and non technical documentation and internal presentations, and even participated in a few meetups. You can read some of my writing on my blog: blog.adrianc.eu

You might also have seen me on a few Elixir-related Discord servers, or even Bluesky (@adrianc.eu) and Twitter ; either sharing tech news, helping people, reading in book clubs or just chatting

I’m open to full-time right now, contracting work can be discussed.

I'm looking for any developer position, not only #ElixirLang, even though it represents most of my experience. And if the technology you're using isn't on my resume, give me a chance! I'm a fast learner and I might anyway have studied it in class :P

DM me for more info, like github link, my resume or anything :)

Boosts, responses and DM welcome, of course!

#MyElixirStatus #FediJobs #FediJob #FediGetHired #OpenToWork

EDIT: I already have a visa, it was not super clear before 😅

AdrianCAdrianCCuriosity propelled

An SSR Performance Showdown

🔍 Comprehensive #SSR Performance Testing:
• Test setup: 2398 div elements spiral rendering on #NodeJS v22, #M1Mac with 8GB RAM

📊 Performance Rankings (requests/second):
#fastifyhtml: 1088 (baseline templating)
#Vue: 1028 (best full-featured performance)
#Svelte5: 968 (pre-release version)
#SolidJS: 907 (impacted by hydration IDs)
#Preact: 717 (lightweight alternative)
#React19: 572 (RC version)

🛠️ Testing Environment:
• Built using #Fastify and @fastify/vite
• Production builds tested
• Consistent styling and template implementations
• No client-side reactivity features

💡 Key Findings:
#Vue and #Svelte offer best balance of performance and ecosystem maturity
• Hydration markers impact performance (demonstrated in #SolidJS)
• Simple templating (#fastifyhtml) outperforms full frameworks

Source: blog.platformatic.dev/ssr-perf

Platformatic Blog · An SSR Performance ShowdownBy Matteo Collina

My PR supporting style queries got merged and released in 5.0.0!

This enables easier handling of fragments in , and I decided to follow up with a real world example in the PR post release to aid as a future reference for people: github.com/mercurius-js/mercur

Thanks for the merge @mcollina 🙏

GitHubfeat: support pre-parsed queries (eg. `graphql-tag`) by voxpelli · Pull Request #1108 · mercurius-js/mercuriusBy voxpelli

If you're seeing Dependabot PRs on Node projects named "Bump find-my-way and fastify" today and were not already on Fastify v5, be aware you'll need to update your Fastify config/usage (see fastify.dev/docs/latest/Guides).

The `find-my-way` (indirect for me) update requires Fastify v5 apparently and that broke several projects which weren't on Fastify v5 yet. Luckily (well, intentionally, obv) the breakages were caught by CICD in dev.

fastify.devV5 Migration Guide | FastifyThis guide is intended to help with migration from Fastify v4 to v5.
Continued thread

Updating the Fastify logger constructor config has allowed the web server to start now. I'm using a parent logger so this meant adding:
`loggerInstance: parentLogger` to the Fastify instantiation, e.g. the last property in:
```
const fastify = Fastify({
trustProxy: true,
keepAliveTimeout: 3600000,
loggerInstance: parentLogger
});
```
Tests now pass locally, 🤞for the same on Cloud Build!

Docs:
fastify.dev/docs/latest/Guides

fastify.devV5 Migration Guide | FastifyThis guide is intended to help with migration from Fastify v4 to v5.

Dependabot raised a PR against on of my Node projects this morning and the build failed. The PR was to move to Fastify 5 (from 4.x).

I pulled the branch down and sure enough the web server no longer starts. I'd spotted Fastify 5 now requires Node 20+ but I'm already on that.

Time to dig in to the migration guide: fastify.dev/docs/latest/Guides

fastify.devV5 Migration Guide | FastifyThis guide is intended to help with migration from Fastify v4 to v5.

Fastify 5 est officiellement de sortie ! 🎉

Un excellent framework back-end que j'adore toujours autant utiliser. Léger, plein de plugins officiels, avec un rythme d'évolution soutenable et un grand soin apporté à la facilité de mise à jour et à l'expérience de développement.

Fastify v5 is Now Officially Released! | OpenJS Foundation
openjsf.org/blog/fastifys-grow

OpenJS FoundationFastify v5 is Now Officially Released! | OpenJS FoundationFastify v5

Гонка за скоростью: сравнение производительности ведущих фреймворков JavaScript в веб-разработке. Fastify, Express, Koa

Недавно я задался вопросом «Какой JS фреймворк самый быстрый». Я обратился с этим запросом в гугл и нашел очевидный ответ «это fastify!». Но почему именно он?. Я практически сразу наткнулся на статью, результаты которой меня немного расстроили, так как в качестве дополнительной нагрузки на endpoint автор использовал вычисление ряда Фибоначчи, что, по моему мнению, не раскрывает всей сути сравнения. Тогда я решил провести собственное исследование.

habr.com/ru/articles/798469/

#expressjs #express #fastify #koa #koajs #koajs #koa_(nodejs) #expressjs #performance #performance_testing

ХабрГонка за скоростью: сравнение производительности ведущих фреймворков JavaScript в веб-разработке. Fastify, Express, KoaПочему я это сделал? Недавно я задался вопросом «Какой JS фреймворк самый быстрый?». Я обратился с этим запросом в google и нашел очевидный ответ «это Fastify!». Но почему именно...

#100DaysOfCode

#Day50 : continue Bookshelf project
- implemented reservation function, clicking on a book card button "reserve", adds the book to the reservation modal `<dialog>`
- deployed #Fastify #SQLite backend to fly.io @flydotio
- deployed #Vite frontend @vercel

bookshelf.teotimepacreau.fr/

Source Code : github.com/teotimepacreau/book

@fastify

#100DaysOfCode

#Day49 : continue Bookshelf project
- implemented View Transitions API fade animation when changing page
- implemented Scroll-Progress-Timeline to animate with CSS only the elements entry on scroll using `animation: book-entry linear forwards; animation-timeline: view(); animation-range: entry 0% 35%;`

Source Code : github.com/teotimepacreau/book

@fastify
#WebDev #Frontend #LearnWebDev #Javascript #LearnToCode #LearnJavascript #JS #HTML #CSS #Vite #Fastify #UI #VanillaJS

#100DaysOfCode

#Day48 : continue Bookshelf project
- Authorization : only authenticated user that have a session-cookie can add a book to the collection and the SQL DB
- Adding book to the collection : when addBookForm is received it visually adds, and adds to the DB
- At reload : it combines "goodreads" & "bookviaform" table

Source Code : github.com/teotimepacreau/book

@fastify