Convert Figma logo to code with AI

blefnk logorelivator-nextjs-template

✨ Relivator: Next.js 15 React 19 eCommerce Template ▲ Better-Auth Polar Shadcn/UI Tailwind Drizzle ORM TypeScript TS Radix, Postgres Neon, App Router SaaS Commerce eCommerce Shop Pricing Payments Dark Mode Full Stack Free ⭐ more stars 👉 more features

1,220
233
1,220
2

Top Related Projects

12,200

Next.js Commerce

18,908

An open source application built using the new router, server components and everything new in Next.js 13.

An opinionated collection of components, hooks, and utilities for your Next.js project.

🔋 Next.js + Tailwind CSS + TypeScript starter and boilerplate packed with useful development features

The best way to start a full-stack, typesafe Next.js app

Quick Overview

Relivator is a Next.js 13 template designed for building modern web applications. It combines the latest features of Next.js with a curated set of tools and best practices, aiming to provide a robust starting point for developers.

Pros

  • Comprehensive setup with latest Next.js 13 features
  • Integrated authentication and internationalization
  • Extensive UI components and styling options
  • Strong focus on performance and SEO optimization

Cons

  • Steep learning curve for beginners due to complex setup
  • Potentially overwhelming for simple projects
  • Frequent updates may require regular maintenance
  • Some features might be overkill for smaller applications

Code Examples

  1. API Route Example:
import { NextResponse } from 'next/server'

export async function GET() {
  return NextResponse.json({ message: 'Hello from Relivator API!' })
}

This code creates a simple API route using Next.js 13 app router.

  1. Server Component Example:
import { Suspense } from 'react'
import Loading from './loading'
import ProductList from './product-list'

export default function Page() {
  return (
    <Suspense fallback={<Loading />}>
      <ProductList />
    </Suspense>
  )
}

This example demonstrates the use of React Server Components with Suspense for improved loading states.

  1. Internationalization Example:
import { useTranslations } from 'next-intl'

export default function LocalizedComponent() {
  const t = useTranslations('Common')

  return <h1>{t('welcome')}</h1>
}

This code snippet shows how to use internationalization in components.

Getting Started

  1. Clone the repository:

    git clone https://github.com/blefnk/relivator-nextjs-template.git
    
  2. Install dependencies:

    cd relivator-nextjs-template
    npm install
    
  3. Set up environment variables:

    cp .env.example .env.local
    
  4. Run the development server:

    npm run dev
    
  5. Open http://localhost:3000 in your browser to see the application running.

Competitor Comparisons

12,200

Next.js Commerce

Pros of Commerce

  • More established project with a larger community and contributor base
  • Comprehensive e-commerce features out-of-the-box
  • Tighter integration with Vercel's ecosystem and optimizations

Cons of Commerce

  • Less flexible and customizable compared to Relivator
  • Steeper learning curve for developers new to e-commerce
  • More opinionated architecture that may not fit all use cases

Code Comparison

Commerce:

export const product = {
  id: string
  name: string
  description: string
  slug: string
  path: string
  images: ProductImage[]
}

Relivator:

export interface Product {
  id: string
  name: string
  description: string
  price: number
  image: string
  category: string
}

Key Differences

  • Commerce focuses on a complete e-commerce solution, while Relivator provides a more general-purpose Next.js template
  • Relivator offers more flexibility for customization and integration with various backends
  • Commerce has more advanced product management features, whereas Relivator keeps it simpler
  • Relivator includes additional features like authentication and internationalization out-of-the-box

Recommendation

Choose Commerce for a robust, ready-to-use e-commerce platform with Vercel integration. Opt for Relivator if you need a more flexible, customizable Next.js template with additional features beyond e-commerce.

18,908

An open source application built using the new router, server components and everything new in Next.js 13.

Pros of Taxonomy

  • More comprehensive UI component library with a wider range of pre-built components
  • Stronger focus on accessibility and keyboard navigation
  • Better documentation and examples for each component

Cons of Taxonomy

  • Less opinionated structure, requiring more setup for a full-fledged application
  • Fewer built-in features for e-commerce and user authentication
  • May require more customization for specific use cases

Code Comparison

Taxonomy component usage:

import { Button } from "@/components/ui/button"

export default function Home() {
  return <Button>Click me</Button>
}

Relivator component usage:

import { Button } from "@/components/ui/button"

export default function Home() {
  return <Button variant="default">Click me</Button>
}

Both repositories use similar component structures, but Relivator often includes more variants and customization options out of the box.

An opinionated collection of components, hooks, and utilities for your Next.js project.

Pros of Precedent

  • Simpler and more lightweight structure, making it easier for beginners to understand and customize
  • Includes built-in analytics with Vercel Analytics, providing out-of-the-box insights
  • Offers a clean, minimalistic design that can be quickly adapted for various projects

Cons of Precedent

  • Lacks some advanced features and integrations that Relivator offers, such as internationalization and e-commerce capabilities
  • Has fewer pre-built components and utilities, potentially requiring more custom development for complex projects
  • Does not include as comprehensive documentation or as many code examples as Relivator

Code Comparison

Precedent (pages structure):

pages/
  _app.tsx
  _document.tsx
  index.tsx

Relivator (app directory structure):

app/
  (auth)/
  (marketing)/
  (shop)/
  api/
  layout.tsx
  page.tsx

Relivator uses the newer Next.js 13+ app directory structure, offering more granular routing and layout control, while Precedent uses the traditional pages directory structure.

🔋 Next.js + Tailwind CSS + TypeScript starter and boilerplate packed with useful development features

Pros of ts-nextjs-tailwind-starter

  • Simpler and more lightweight structure, making it easier for beginners to understand and customize
  • Includes a comprehensive set of pre-configured ESLint and Prettier rules for consistent code style
  • Provides a clear and well-documented folder structure with explanations for each directory

Cons of ts-nextjs-tailwind-starter

  • Lacks advanced features like authentication, database integration, and internationalization that Relivator includes
  • Does not include pre-built components or layouts, requiring more initial setup for complex projects
  • Misses out on some modern Next.js 13+ features and optimizations present in Relivator

Code Comparison

ts-nextjs-tailwind-starter:

// pages/index.tsx
export default function HomePage() {
  return (
    <Layout>
      <Seo templateTitle='Home' />
      <main>
        <section className='bg-white'>
          <div className='layout flex min-h-screen flex-col items-center justify-center text-center'>
            <h1 className='mt-4'>Next.js + Tailwind CSS + TypeScript Starter</h1>
          </div>
        </section>
      </main>
    </Layout>
  );
}

Relivator:

// app/page.tsx
export default async function HomePage() {
  return (
    <>
      <Hero />
      <Features />
      <CTA />
      <Testimonials />
      <Pricing />
    </>
  );
}

The code comparison shows that Relivator uses a more modular approach with separate components for each section, while ts-nextjs-tailwind-starter provides a simpler, single-component structure.

The best way to start a full-stack, typesafe Next.js app

Pros of create-t3-app

  • Well-established project with a larger community and more extensive documentation
  • Focuses on a specific tech stack (T3 Stack), providing a more opinionated and streamlined setup
  • Offers a CLI for easy project initialization and customization

Cons of create-t3-app

  • Less flexibility in terms of pre-built features and UI components
  • May require more manual setup for additional functionalities not included in the base template
  • Limited styling options out of the box compared to Relivator's Tailwind CSS integration

Code Comparison

create-t3-app:

import { type NextPage } from "next";
import Head from "next/head";
import { trpc } from "../utils/trpc";

const Home: NextPage = () => {
  const hello = trpc.example.hello.useQuery({ text: "from tRPC" });

Relivator:

import { type NextPage } from "next";
import { useTranslations } from "next-intl";
import { Button } from "~/islands/primitives/button";

const Home: NextPage = () => {
  const t = useTranslations("Index");

The code snippets show that create-t3-app focuses on tRPC integration, while Relivator emphasizes internationalization and UI components. Both use TypeScript and Next.js, but their approach to structuring components and handling data fetching differs slightly.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Relivator Next.js eCommerce Template

A robust, efficient, and engaging foundation for your eCommerce projects, designed for seamless integration, rapid development, and maximum profitability.

Quick Start

Ensure Git, Node.js, and Bun are installed, then:

  1. bun i -g @reliverse/cli
  2. reliverse cli
  3. Choose ✨ Create a brand new project
  4. Provide/skip details about your project
  5. It's ready—enjoy! 😊

Support Relivator

If you found Relivator helpful, please consider:

Tech Stack

Note: Relivator v1.3.0 has been renamed to Versator. If you prefer using Clerk for authentication and Stripe for payments, explore the Versator Demo, Repository, or Documentation.

Available Commands

CommandDescription
bun buildBuilds the project
bun devStarts the development server
bun db:pushApplies database schema changes
bun db:authUpdates src/db/schema/users.ts
bun db:studioOpens Drizzle ORM visual editor
bun uiInstalls shadcn/ui components
bun latestUpdates all dependencies
bun checkRuns type checks, linting, and formatting

License

MIT © blefnk Nazar Kornienko