Buy now

Read sample

Included

  • The full book in PDF & HTML formats.
  • Complete source code for all examples.
  • Access to book support Discord server.

Chapters

  • 1. Introduction
  • 2. Modern JavaScript in 2025
    • From 2017 to 2025
    • Essential Node.js
    • Package Management
  • 3. A Fastify and Vite Crash Course
    • Essential Fastify
    • Essential Vite
    • Direct Integration
    • Essential @fastify/vite
    • Universal Routing
  • 4. Choosing a Rendering Strategy
    • Multi Page Applications
    • Single Page Applications
    • Server Side Rendering
    • The Monolithic Architecture
  • 5. Building an Application Shell
    • What Meta Frameworks Have in Common
    • Building a Vue Application Shell
    • A Deep Dive into @fastify/vite
    • A Deep Dive into @fastify/vue
    • A Deep Dive into @fastify/react
  • 6. Fetching and Submitting Data
    • Working with Form Data
    • Working with JSON Data
    • Handling Large Payloads with SIMDJSON
    • From JSON to Cap'n Proto
  • 7. Maintaining Sessions
    • Stateless Sessions
    • Stateful Sessions
    • Federated Authentication
    • Hardening Security
  • 8. Maximizing SSR Performance
    • Avoiding Event Loop Blocking
    • Using SSR Where Needed
    • SSR Caching
    • Graceful Degradation
  • 9. Production Deployment
    • SPA Deployment
    • SSR Deployment
    • Essential Configuration
    • Optimal Structure

Build and deploy full stack Node.js applications with Fastify and Vite.

1st edition
April 18, 2025

All future editions are included.

Examples and code snippets assume Unix-like environment. Software and library versions used:

  • Node v22
  • Fastfiy v5
  • Vite v6
  • Vue v3
  • React v19

Intended Audience

You know a bit of Node.js, a bit of Vue or React. You have previously used or are still using meta-frameworks like Nuxt and Next.js. But you consider yourself a craftsman, an artisan, and have a deep desire to understand how things work. Rather than delegating all of your web application's architecture to a third-party framework, you wish you could do it yourself, mixing up primitive APIs and libraries. If you are this person, this book is for you.

Copyright © 2025 Jonas Galvez

All rights reserved.

About

I'm Jonas Galvez.

I write code and I write about code.

I specialise in Node.js, Fastify and Vue.

I'm a Principal Engineer at feature.fm, where I'm also allowed to work on open source software.

I built and maintain @fastify/vite, @fastify/react, @fastify/vue, @fastify/htmx and fluent-env.

 

 

Follow me on GitHub.

Connect via LinkedIn.

Subscribe via RSS.

Follow me on X.