A Next.js boilerplate for building AI-powered chat applications with customizable themes, fonts, and branding.
- Install dependencies:
npm install-
Get your API key:
- Visit Moorcheh Console API Keys
- Copy your API key
-
Create text namespace and upload documents:
- Visit Moorcheh Console Namespaces
- Create a new text namespace
- Upload your documents to the namespace
-
Set up environment variable:
- Create
.env.localin your project root (or use your existing env setup) - Add your API key:
- Create
NEXT_PUBLIC_MOORCHEH_API_KEY=584r2xs2e2-
Configure API request body:
- Visit Moorcheh Console Playground
- Configure your namespace, model, and settings
- Export the complete JSON configuration
- Create
config/api-config.jsonand paste the configuration - See
config/README.mdfor detailed instructions
-
Start development server:
npm run devOpen http://localhost:3000 to see your chat application.
Complete setup: Visit http://localhost:3000/landing to configure your chat application through our 4-step interactive setup:
- API Key Setup - Connect to Moorcheh AI services
- Branding - Configure app name, company, and contact info
- Theme Selection - Choose from 10+ beautiful themes
- Typography & Complete - Configure fonts and finish setup
Test your customizations: Visit http://localhost:3000/demo to test themes and fonts.
Build your app: Use components/ui for additional UI components throughout your application.
- Next.js 15 with React 19 and TypeScript
- Pre-built chat components ready to use
- Moorcheh AI integration with easy configuration
- 10+ Customizable themes with Tailwind CSS
- 30+ fonts with Next.js optimization
- Tailwind CSS and Radix UI components
- Complete branding system via appearance.json configuration
- Interactive setup flow with live preview and automatic configuration saving
- API Setup:
config/README.md- Configure your AI API - Branding:
BRANDING_GUIDE.md- Customize app name, logo, colors - Themes & Fonts:
customize/README.md- Change appearance
your-project/
├── app/ # Next.js pages
├── components/ # React components
│ ├── chat/ # Chat components
│ └── ui/ # UI components
├── config/ # API configuration
├── customize/ # Themes and fonts
├── hooks/ # React hooks
├── lib/ # Utilities
└── public/ # Static files
// customize/themes/theme-config.ts
export const themeConfig = {
defaultTheme: 'dark', // 'light', 'dark', 'blue', 'green'
};// customize/fonts/font-config.ts
export const fontConfig = {
primaryFont: 'Inter',
monoFont: 'Fira Code',
};// lib/chat-config.ts
export const chatConfig = {
type: 'interface', // 'interface' or 'widget'
};// config/appearance.json
{
"branding": {
"appName": "My Chat App",
"appTitle": "My Chat",
"appSubtitle": "Your AI assistant",
"companyName": "My Company",
"contactEmail": "support@mycompany.com"
}
}Deploy to Vercel with one click:
Or follow the Next.js deployment guide.
- Chat Boilerplate Documentation - Complete guide and API reference
- Moorcheh Console - API configuration
- Next.js Documentation - Framework guide