This is a customized version of assistant-ui using the Google Gemini API.
git clone https://github.com/Dev-CodeBox/Chat-Buddy.git
cd Chat-Buddynpm install
# or
yarn install
# or
pnpm installCreate a .env.local file in the root of your project:
GEMINI_API_KEY=your_google_gemini_api_key_hereYou can get your API key from: Google AI Studio
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devVisit http://localhost:3000 in your browser to see the app in action.
├── app/
│ ├── page.tsx # Main page
│ ├── layout.tsx # App layout
│ └── globals.css # Global Tailwind styles
├── components/
│ └── ui/ # Shadcn UI components
├── lib/
│ └── utils.ts # Utility functions
├── .env.local # Your API key here
├── tailwind.config.ts # Tailwind config
├── postcss.config.js
├── tsconfig.json
├── next.config.js
- ✅ Built with Next.js 14 (App Router, Server Actions)
- ✅ TypeScript & Tailwind CSS
- ✅ Assistant UI integration
- ✅ Google Gemini API for LLM chat
- ✅ Fixed bottom tooltip icon button component
- Uses Gemini Pro via the
GEMINI_API_KEYdefined in.env.local - API integration logic is in
lib/gemini.ts(or your custom backend handler) - Handles user prompts, responses, and assistant behavior
Your TooltipIconButton is always visible, fixed to the bottom center of the screen.
<Button
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50"
...
>
...
</Button>To deploy the app:
npm run build
npm run startOr use platforms like Vercel, Netlify, or Render.
MIT © Dev Raj Singh