Skip to content

Jason4Jason/Delta-Hacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moorcheh Chat Boilerplate

A Next.js boilerplate for building AI-powered chat applications with customizable themes, fonts, and branding.

Quick Start

  1. Install dependencies:
npm install
  1. Get your API key:

  2. Create text namespace and upload documents:

  3. Set up environment variable:

    • Create .env.local in your project root (or use your existing env setup)
    • Add your API key:
NEXT_PUBLIC_MOORCHEH_API_KEY=584r2xs2e2
  1. Configure API request body:

    • Visit Moorcheh Console Playground
    • Configure your namespace, model, and settings
    • Export the complete JSON configuration
    • Create config/api-config.json and paste the configuration
    • See config/README.md for detailed instructions
  2. Start development server:

npm run dev

Open 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:

  1. API Key Setup - Connect to Moorcheh AI services
  2. Branding - Configure app name, company, and contact info
  3. Theme Selection - Choose from 10+ beautiful themes
  4. 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.

Features

  • 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

Configuration Guides

  • 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

Project Structure

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

Customization

Change Theme

// customize/themes/theme-config.ts
export const themeConfig = {
  defaultTheme: 'dark', // 'light', 'dark', 'blue', 'green'
};

Change Fonts

// customize/fonts/font-config.ts
export const fontConfig = {
  primaryFont: 'Inter',
  monoFont: 'Fira Code',
};

Change Chat Mode

// lib/chat-config.ts
export const chatConfig = {
  type: 'interface', // 'interface' or 'widget'
};

Change Branding

// config/appearance.json
{
  "branding": {
    "appName": "My Chat App",
    "appTitle": "My Chat",
    "appSubtitle": "Your AI assistant",
    "companyName": "My Company",
    "contactEmail": "support@mycompany.com"
  }
}

Deployment

Deploy to Vercel with one click:

Deploy with Vercel

Or follow the Next.js deployment guide.

Support

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors