CN
May 1st, 2024

Nuxt - 5 Addons You Have to Use!

Understanding Nuxt Modules

Nuxt Modules is the way to add features and integrate 3rd party libraries or services into your Nuxt apps.

If you need to add TailwindCSS, Database or handle images the right way - you just install a module, easy - plug&play.

Here's a list of 5 must-have moudles for your next Nuxt app!

Wait! You might be interested in a video course!

Master Nuxt 3 - Full-Stack Complete Guide

Everything you need to learn full-stack development with Nuxt 3, build 2 projects incl. Supabase!

Must Have Nuxt Modules

Analyze & Debug Your Nuxt App

The DevTools Module is essential. It gives you all the info about your app, component tree, pages, routes - you name it.

A must have tool! That's why it's installed and enabled by default.

Logo of the Nuxt devtools module

Pinia - Manage State, Track State Changes

The Pinia Module installs Pinia, a store library. Pinia helps you share state application wide - between components/pages, track state changes and more.

Installation
npm i @pinia/nuxt 
Screenshot of the Pinia website

TailwindCSS Module - Style the Website

The TailwindCSS Module installs TailwindCSS - utility based CSS framework. The most popular CSS utility/framework/library these days. Most new UI frameworks are based on Tailwind, so knowing and using Tailwind will open a lot of doors for you.

Let's see how to integrate TailwindCSS with Nuxt:

Installation
npx nuxi@latest module add tailwindcss

Add the tailwindcss module to your nuxt.config.js or nuxt.config.ts file:

nuxt.config.js
export default defineNuxtConfig({
  modules: [
    '@nuxtjs/tailwindcss'
  ]
})
Logo of the Tailwind Nuxt module

i18n Module - Internationalization

The i18n Module - internationalization library for you Nuxt apps. Required if your app is to support more than one language.

Installation
npx nuxi@latest module add i18n 

Add the i18n module to your nuxt.config.js or nuxt.config.ts file:

nuxt.config.js
export default defineNuxtConfig({
  modules: [
    '@nuxtjs/i18n',
  ],
})
Logo of the i18n Nuxt module

NuxtImage - Optimizing Images

The NuxtImage Module - automatic image optimization, resize & transform images. Really needed for any website with images (which is almost 99% of websites). A real must-have if your project is media heavy. It's one of the Nuxt modules for better app performance.

Installation
nuxi@latest module add image

Add the image module to your nuxt.config.js or nuxt.config.ts file:

nuxt.config.js
export default defineNuxtConfig({
  modules: [
    '@nuxt/image',
  ]
})
Screenshot of the NuxtModule Nuxt module