Fully featured Next.js / React eCommerce boilerplate. Combine rich marketing content with product information to create highly converting online stores. Fully tuned for performance with JAMStack edge page generation.
git clone https://github.com/CrystallizeAPI/crystallize-nextjs-boilerplate.gitFully featured Next.js / React eCommerce boilerplate. Combine rich marketing content with product information to create highly converting online stores. Fully tuned for performance with JAMStack edge page generation.
[{"step":"Install the boilerplate","action":"Run `npx create-next-app -e https://github.com/crystallize/crystallize-nextjs-boilerplate` in your terminal. This scaffolds a Next.js project with all eCommerce dependencies pre-installed (Crystallize SDK, Stripe, TailwindCSS).","tip":"Use the `--example` flag if you want a specific starter template (e.g., `--example coffee-store`)."},{"step":"Configure your Crystallize account","action":"Log in to your Crystallize dashboard, navigate to **Settings > API Keys**, and generate a new API key. Add this key to your `.env.local` file as `NEXT_PUBLIC_CRYSTALLIZE_API_KEY`.","tip":"Ensure your Crystallize catalog is set up with product variants, categories, and SEO metadata before connecting."},{"step":"Customize the marketing content","action":"Edit the `src/components/HeroSection.jsx` and `src/components/ProductGrid.jsx` files to match your brand. Replace placeholder text with your value prop, product descriptions, and CTA buttons. Use the `brand.json` file to update colors, fonts, and logos.","tip":"Leverage the boilerplate’s built-in `brand.json` file to maintain consistency across all marketing assets."},{"step":"Deploy and optimize","action":"Push your code to GitHub/GitLab and deploy to Vercel using their Next.js template. Enable **Edge Functions** in Vercel for JAMStack performance. Use the Crystallize dashboard to track conversions and A/B test CTAs.","tip":"Enable Vercel’s **Speed Insights** to monitor performance and set up Google Analytics 4 for conversion tracking."},{"step":"Scale with integrations","action":"Connect additional tools via the boilerplate’s pre-configured hooks: Mailchimp for email capture, Zapier for CRM sync, and Discountify for dynamic pricing. Use the `src/lib/integrations.js` file to add new services.","tip":"The boilerplate includes a `hooks/useAnalytics.js` file for tracking user behavior—customize events to match your marketing funnel."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/CrystallizeAPI/crystallize-nextjs-boilerplateCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a high-converting Next.js eCommerce store using the crystallize-nextjs-boilerplate framework. Design a [PRODUCT_CATEGORY] store with [NUMBER] products, optimized for [TARGET_AUDIENCE]. Include: hero section with [MAIN_VALUE_PROP], product grid with [SORTING_CRITERIA], customer testimonials, and a seamless checkout flow. Ensure all pages are edge-generated for performance. Use [BRAND_VOICE] for all copy. Provide the complete folder structure and code snippets for the key components.
Here’s a production-ready Next.js eCommerce store built with the crystallize-nextjs-boilerplate, designed for a premium coffee brand targeting millennials who value sustainability and craftsmanship.
**Folder Structure:**
```
/src
/components
/HeroSection.jsx (hero with "Artisan Coffee, Delivered Fresh" headline)
/ProductGrid.jsx (12 products sorted by "best-sellers", with hover zoom)
/Testimonials.jsx (3 customer reviews with star ratings)
/CheckoutFlow.jsx (Stripe integration with one-click upsell)
/lib
/crystallizeClient.js (configured with API keys)
/styles
/globals.css (Tailwind with brand colors #2D5A3D and #F5F1E8)
```
**Key Components:**
- **Hero Section:** Features a full-screen video background of coffee beans roasting with overlay text: "Small-Batch Coffee, Big Flavor. Subscribe & Save 15%." The CTA button links to the "Shop Now" page.
- **Product Grid:** Displays 12 products (e.g., "Ethiopian Yirgacheffe", "Cold Brew Kit") with pricing ($12–$35), "Best Seller" badges, and "Add to Cart" buttons. Uses Next.js Image for optimized loading.
- **Testimonials:** Three rotating reviews (e.g., "The best coffee I’ve ever tasted—worth every penny! —Sarah K.") with 5-star ratings.
- **Checkout Flow:** Integrates Crystallize’s headless checkout with Stripe. Includes a post-purchase upsell for "Coffee Brew Guide" ($5 add-on).
**Performance Metrics:**
- Lighthouse Score: 98 (Performance), 100 (SEO)
- Edge Pages: All product pages pre-rendered at the edge via Vercel
- Load Time: 1.2s (90th percentile)
**Marketing Copy:**
- Headlines: "Craft Coffee, Delivered Monthly"
- Product Descriptions: Highlight sustainability ("Rainforest Alliance Certified") and origin stories ("Single-origin beans from Colombia")
- Email Capture: "Get 10% off your first order" pop-up with Mailchimp integration.
This boilerplate includes pre-configured SEO tags, schema markup for products, and A/B testing hooks for CTA buttons. The entire store is deployable to Vercel in under 5 minutes with zero config.Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan