---
Ship your SaaS faster with Nexty
Nexty.dev is a comprehensive Next.js SaaS boilerplate that provides everything developers need to rapidly build and launch modern AI web applications
Try [Nexty.dev today](https://nexty.dev?utm_source=github-nextjs-starter)
---
[
](https://nexty.dev?utm_source=github-nextjs-starter)
đ *[English](README.md) â [įŽäŊ䏿](README_zh.md) â [æĨæŦčĒ](README_ja.md)*
# Next Forge - Multilingual Next.js 16 Starter
A feature-rich Next.js 16 multilingual starter template to help you quickly build globally-ready websites.
- [đ Source Code](https://github.com/weijunext/nextjs-starter)
- [đ Live Demo](https://nextforge.dev/)
**đ Looking for a full-featured SaaS Starter Template? [Check out the complete version](https://nexty.dev)**
## ⨠Features
- đ Built-in i18n support (English, Chinese, Japanese)
- đ¨ Modern UI design with Tailwind CSS
- đ Dark/Light theme toggle
- đą Responsive layout
- đ MDX blog system
- đ SEO optimization
- đ Integrated analytics tools
- Google Analytics
- Baidu Analytics
- Google Adsense
- Vercel Analytics
## đ Quick Start
### Prerequisites
- Node.js 20.9 or higher
- pnpm 9.0 or higher (recommended)
> **Note**: The project has configured `packageManager` field, we recommend using pnpm for the best experience.
### Installation
1. Clone the repository:
```bash
git clone https://github.com/weijunext/nextjs-starter.git
cd nextjs-starter
```
2. Enable Corepack (recommended):
```bash
corepack enable
```
3. Install dependencies:
```bash
pnpm install
# or use other package managers
npm install
yarn
```
4. Copy environment variables:
```bash
cp .env.example .env
```
5. Start the development server:
```bash
pnpm dev
# or npm run dev
```
Visit http://localhost:3000 to view your application.
## âī¸ Configuration
1. Basic Setup
- Edit `config/site.ts` for website information
- Update icons and logo in `public/`
- Configure `app/sitemap.ts` for sitemap
- Update `app/robots.ts` for robots.txt
2. i18n Setup
- Add/modify language files in `i18n/messages/`
- Configure supported languages in `i18n/routing.ts`
- Set up i18n routing in `middleware.ts`
- Create pages under `app/[locale]/`
- Use the `Link` component from `i18n/routing.ts` instead of Next.js default
## đ Content Management
### Blog Posts
Create MDX files in `blog/[locale]` with the following format:
```markdown
---
title: Post Title
description: Post Description
image: /image.png
slug: /url-path
tags: tag1,tag2
date: 2025-02-20
visible: published
pin: true
---
Post content...
```
Reference `types/blog.ts` for supported fields.
### Static Pages
Manage static page content in `content/[page]/[locale].mdx`.
## đ SEO Optimization
Built-in comprehensive SEO features:
- Server-side rendering and static generation
- Automatic sitemap.xml generation
- robots.txt configuration
- Optimized metadata
- Open Graph support
- Multilingual SEO support
## đ Analytics
Enable analytics by adding IDs in `.env`:
```
NEXT_PUBLIC_GOOGLE_ANALYTICS=
NEXT_PUBLIC_BAIDU_TONGJI=
NEXT_PUBLIC_GOOGLE_ADSENSE=
```
## đ Project Structure
```
nextjs-starter/
âââ app/ # App directory
â âââ [locale]/ # Internationalized routes
â â âââ about/ # About page
â â âââ blog/ # Blog pages
â â âââ ... # Other pages
â âââ api/ # API routes
â âââ globals/ # Global components
âââ blog/ # Blog content (MDX)
â âââ en/ # English blog
â âââ ja/ # Japanese blog
â âââ zh/ # Chinese blog
âââ components/ # Reusable components
â âââ ui/ # Base UI components
â âââ header/ # Header components
â âââ footer/ # Footer components
â âââ ... # Other components
âââ config/ # Configuration files
âââ content/ # Static content (MDX)
âââ i18n/ # Internationalization
â âââ messages/ # Translation files
â âââ routing.ts # Routing configuration
â âââ request.ts # Request configuration
âââ lib/ # Utility functions
âââ public/ # Static assets
âââ types/ # Type definitions
```
## đ ī¸ Tech Stack
- **Framework**: Next.js 16 (App Router)
- **Language**: TypeScript
- **Styling**: Tailwind CSS + Shadcn/ui
- **Internationalization**: next-intl
- **Content**: MDX
- **State Management**: Zustand
- **Deployment**: Vercel
- **Package Manager**: pnpm (recommended)
## đ Deployment
### One-Click Deploy
[](https://vercel.com/new/clone?repository-url=https://github.com/weijunext/nextjs-starter&project-name=&repository-name=nextjs-starter&demo-title=NextjsStarter&demo-description=Nextjs%2015%20starter.&demo-url=https://nextforge.dev&demo-image=https://nextforge.dev/og.png)
### Manual Deployment to Vercel
1. Push your code to GitHub
2. Import project in Vercel
3. Configure environment variables
4. Deploy
### Other Platforms
```bash
# Build for production
pnpm build
# Start production server
pnpm start
```
## đĄ Development Best Practices
### Package Manager
- Project configured with `packageManager: "pnpm@10.12.4"`
- Enable Corepack: `corepack enable`
- Team members should use the same pnpm version
### Code Quality
```bash
# Lint code
pnpm lint
# Type checking
pnpm type-check
```
### Internationalization Development
1. Adding new language support:
- Add new language files in `i18n/messages/`
- Update `i18n/routing.ts` configuration
- Create corresponding language directories in `blog/` and `content/`
2. Using translations:
```tsx
import { useTranslations } from 'next-intl';
export default function MyComponent() {
const t = useTranslations('namespace');
return
[](https://ko-fi.com/G2G6TWWMG)