Frobot is a responsive web-based chatbot built with React and powered by OpenAI's API. Talk to your virtual friend with different personality options!
-
Multiple Personalities: Chat with Frobot in three different modes:
- Supportive: A encouraging friend who's always on your side
- Funny: A witty companion with a great sense of humor
- Honest: A straightforward friend who tells it like it is
-
Responsive Design: Clean chat interface that works on mobile and desktop
- Fixed header and input area
- Scrollable chat history
-
Token-Based Rate Limiting:
- 8000 tokens per hour (~50 messages)
- Visual feedback with usage bars and remaining token counts
- Automatic reset after one hour
-
Debug Mode:
- Toggle to view detailed token usage statistics
- Per-message token information
- Usage summary panel
- Frontend: React.js
- API Integration: OpenAI Chat API via Netlify serverless functions
- Deployment: Netlify
- Security: API keys stored in environment variables
- Clone this repository
- Install dependencies:
npm install - Create a
.envfile with your OpenAI API key:OPENAI_API_KEY=your_api_key_here - Run the development server:
npm run dev - Open http://localhost:3000 in your browser
This project is set up for deployment on Netlify:
- Push your code to a GitHub repository
- Connect your repository to Netlify
- Add your environment variable (OPENAI_API_KEY) in the Netlify dashboard