Getting Started
Introduction
Learn about Nuxt Contentstack, a powerful integration module that brings together Contentstack CMS and Nuxt framework for modern content-driven applications.
Welcome to Nuxt Contentstack - a comprehensive and developer-friendly integration between the Contentstack platform and Nuxt.
New to Contentstack? Get started with a free Contentstack Explorer account - perfect for development and testing! No credit card required.
Community Module: This is an open-source community project maintained by @timbenniks and not an officially maintained package by the Contentstack team. Support is provided through GitHub issues and community channels.
What is Nuxt Contentstack?
Nuxt Contentstack is a Nuxt module that provides a seamless, type-safe integration with Contentstack's platform. It offers a complete set of composables, utilities, and features that make building content-driven applications with Nuxt and Contentstack both powerful and enjoyable.
Requirements
This module requires:
- Nuxt
3.20.1or higher (including Nuxt 4.x) - @nuxt/image
^2.0.0(only required for image provider functionality)
@nuxt/image: The module can run without
@nuxt/image, but it's required if you want to use the Contentstack image provider for image optimization features. Install it with: npm install @nuxt/image@^2.0.0Key Features
π Easy Setup & Configuration
- Simple, intuitive configuration API
- Auto-detection of environment settings
- Smart defaults that work out of the box
- Comprehensive error handling and validation
π§ Complete TypeScript Support
- Full type safety for content models
- Intelligent autocomplete and IntelliSense
- Generated types for your content structures
- Runtime type checking for development
π¦ Rich Composables
useContentstack- Access the Contentstack SDK, Live Preview, and Personalize instancesuseGetEntry- Fetch single entries by UIDuseGetEntryByUrl- Query entries by URL fielduseGetEntries- Fetch multiple entries with filteringuseGetAsset&useGetAssets- Asset managementuseImageTransform- Dynamic image transformations
β‘ Live Preview & Visual Builder
- Real-time content editing experience
- Visual Builder integration
- Instant preview without page refreshes
- Configurable edit buttons and tagging
π¨ Image Optimization
- Seamless
@nuxt/imageintegration - Contentstack Image Delivery API support
- Responsive images with automatic optimization
- Advanced transformation capabilities
π§© Vue Components
ContentstackModularBlocks- Flexible modular block rendering- Auto-fetch capability for dynamic page building
- Built-in SEO metadata support with useSeoMeta integration
- Live Preview integration with visual builder support
- Fallback components for unmapped block types
π Personalization
- Built-in Contentstack Personalize support
- Easy attribute setting and event tracking
- Variant-based content delivery
- Real-time personalization
π Multi-Region & Localization
- Support for all Contentstack regions
- Comprehensive localization features
- Fallback content handling
- Multi-branch support
Getting Started
Ready to dive in? Let's get you set up with Nuxt Contentstack:
Need Help?
- π Documentation: You're reading it! Comprehensive guides and examples
- π Academy Courses: Learn Contentstack fundamentals with Contentstack Academy developer courses
- π Issues: GitHub Issues for bugs and feature requests
- π¬ Community: Contentstack Discord for discussions
- π¦ Updates: Follow @timbenniks for news and updates
Let's build something amazing with Nuxt and Contentstack! π