Kickstart Next.js
Kickstart Next.js: Code Overview
A lightweight Next.js boilerplate to get you up and running with Contentstack—complete with live preview, Visual Builder support, and essential content types.
Features
- Barebones setup: Minimal code to connect a Next.js 15 app (using the App Router) to Contentstack.
- Live Preview: Instantly preview content edits in-context.
- Visual Builder: Click-to-edit UI overlays for titles, images, and rich text.
- Modular Blocks: Demonstrates Contentstack’s block-based content modeling.
- Rich Text & Images: Built-in support for rendering Contentstack rich text fields and media assets.
- Tailwind CSS: Utility-first styling out of the box.
Prerequisites
- Node.js >= 18
- Next.js 15 (App directory)
- A Contentstack account with:
- Stack API Key
- Delivery Token
- Environment (“development”, “preview”, etc.)
- Live Preview API Key
Extending the Kickstart
- Add Additional Content Types
Copy the pattern in lib/contentstack.ts to initialize and query new types—e.g., blog_post, author. - Modular Blocks
Explore modular blocks in the “Modular Blocks” demo page; see our Modular Blocks Docs. - Rich Text Customization
Use the @contentstack/rich-text-react-renderer to map rich-text JSON to custom React components. See the other video in the Kickstart Learning path. - Deployment
Host on Content Launch, Vercel, Netlify, or your preferred platform. Ensure environment variables are set for API keys & tokens.
Next Steps & Resources
- Deep-dive videos:
- Live Preview internals
- Modular Blocks usage
- Rich Text rendering
- Documentation:
- Community & Support:
- Join our Discord community for real-time help and discussion.
- Explore full courses on the Contentstack Academy.
Related Content

Studio Foundations
Course23m 49s
Understanding Contentstack Studio
Explainer4m 34s
APIs and Developer Tooling
Course1h 36m 25s
Preview, Visual Builder, and Releases
Course1h 2m 25s
CMS Developer Orientation
Course23m 30s
Integrations and the Composable DXP
Course41m 15s
Content Modeling
Course1h 20m 35s
Extending and Customizing Contentstack
Course58m 30s
CMS Developer Foundations
Course32m 30s
Workflow, Branches, and Collaboration
Course48m 45s
Agent OS Foundations
Course26m 40s
Understanding Assets
Explainer4m 41s
Contentstack Assets Foundations
Course39m 32s
Live Preview: Editing with Confidence
Explainer2m 3s
Visual Experience: In-Context Editing
Explainer3m 9s