π Live Demo β’ π Documentation β’ π― Features β’ β‘ Quick Start
Looka AI is a modern, feature-rich chatbot powered by multiple cutting-edge AI models including GLM 4.5 Air, DeepSeek R1, and Llama 3.3. Experience lightning-fast responses, beautiful UI, and seamless chat history management.
|
|
| Model | Provider | Parameters | Context | Speed |
|---|---|---|---|---|
| GLM 4.5 Air β | Zhipu AI | - | 90k tokens | β‘β‘β‘ |
| DeepSeek R1 | DeepSeek | - | 32k tokens | β‘β‘ |
| Llama 3.3 | Meta | 70B | 8k tokens | β‘β‘β‘ |
| Llama 3.1 | Meta | 405B | 8k tokens | β‘β‘ |
| Qwen 3 | Alibaba | 4B | 8k tokens | β‘β‘β‘ |
| Mistral Small | Mistral AI | 24B | 8k tokens | β‘β‘ |
| Llama 3.2 | Meta | 3B | 8k tokens | β‘β‘β‘ |
| Gemma 3 | 4B | 8k tokens | β‘β‘β‘ |
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Supabase Account (for chat history)
- OpenRouter API Key
# 1. Clone the repository
git clone https://github.com/Looka708/Looka-chat-bot
cd Looka-chat-bot
# 2. Copy environment variables
cp .env.example .env.local
# 3. Edit .env.local with your credentials
# Add your OpenRouter API key and Supabase credentials
# 4. Open in browser
# Simply open index.html in your browser
# or use a local server:
npx serveCreate a .env.local file with:
# OpenRouter API Key
NEXT_PUBLIC_OPENROUTER_API_KEY=sk-or-v1-your-key-here
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key-here
# Model Settings
NEXT_PUBLIC_DEFAULT_MODEL=z-ai/glm-4.5-air:free
NEXT_PUBLIC_MAX_TOKENS=90000
NEXT_PUBLIC_TEMPERATURE=0.7Run this SQL in your Supabase dashboard to create the required table:
-- Create chats table
CREATE TABLE chats (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
title TEXT NOT NULL,
messages JSONB NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);
-- Create index for faster queries
CREATE INDEX idx_chats_created_at ON chats(created_at DESC);
-- Enable Row Level Security
ALTER TABLE chats ENABLE ROW LEVEL SECURITY;
-- Create policy to allow all operations
CREATE POLICY "Enable all access for chats" ON chats
FOR ALL USING (true);
-- Function to auto-delete old chats (older than 7 days)
CREATE OR REPLACE FUNCTION delete_old_chats()
RETURNS void AS $$
BEGIN
DELETE FROM chats
WHERE created_at < NOW() - INTERVAL '7 days';
END;
$$ LANGUAGE plpgsql;
-- Schedule automatic cleanup (requires pg_cron extension)
SELECT cron.schedule(
'delete-old-chats',
'0 0 * * *', -- Run daily at midnight
$$SELECT delete_old_chats()$$
);- Open the application in your browser
- Type your message in the input box
- Press
Enteror click Send - Watch the AI respond in real-time with streaming
- Click the π paperclip icon
- Select files (images, PDFs, documents)
- Files appear as badges above the input
- Send your message with context
- Type your image description
- Click the πΌοΈ gallery icon
- Looka will create/describe your image
- New Chat: Click "New Chat" button
- View History: Click on any previous chat in the sidebar
- Delete Chat: Click the delete icon on any chat
- Auto-delete: Chats older than 7 days are automatically removed
Use the dropdown menu to switch between different AI models based on your needs:
- Fast: Llama 3.2, Qwen 3, Gemma 3
- Balanced: Llama 3.3, Mistral Small
- Smart: GLM 4.5 Air, Llama 3.1
- Planning: DeepSeek R1
| Category | Technologies |
|---|---|
| Frontend | HTML5, CSS3, JavaScript (ES6+) |
| Styling | Tailwind CSS, Custom CSS Animations |
| AI Models | OpenRouter API (GLM, DeepSeek, Llama, etc.) |
| Database | Supabase (PostgreSQL) |
| Animation | WebGL Fluid Simulation |
| Code Highlighting | Prism.js |
| Code Formatting | Prettier |
| Icons | Iconify |
| Font | Inter (Google Fonts) |
| Deployment | Vercel |
looka-ai/
βββ π index.html # Main application file
βββ π¨ animations.css # Animation styles
βββ βοΈ config.js # Configuration & API keys
βββ π¬ chat-history.js # Supabase integration
βββ π§ complete-integration.js # Core chatbot logic
βββ π streaming-animation.js # Streaming effects
βββ πΌοΈ logo.svg # Looka logo
βββ π¦ package.json # Node.js dependencies
βββ π§ vercel.json # Vercel configuration
βββ π .env.example # Environment template
βββ π« .gitignore # Git ignore rules
βββ π« .vercelignore # Vercel ignore rules
βββ π LICENSE # MIT License
βββ π README.md # This file
βββ π DEPLOYMENT.md # Deployment guide
βββ β‘ QUICK_DEPLOY.md # Quick deploy guide
βββ π api/
βββ proxy.js # Serverless API proxy
Quick Deploy:
# Install Vercel CLI
npm install -g vercel
# Deploy
vercel --prod
# Add environment variables
vercel env add OPENROUTER_API_KEY
vercel env add NEXT_PUBLIC_SUPABASE_URL
vercel env add NEXT_PUBLIC_SUPABASE_ANON_KEY
# Redeploy
vercel --prodπ Detailed guides:
- DEPLOYMENT.md - Comprehensive deployment guide
- QUICK_DEPLOY.md - 5-minute deployment
Edit config.js:
AI_MODEL: 'z-ai/glm-4.5-air:free', // Change to your preferred modelmax_tokens: 90000, // Modify as neededUpdate the Supabase function:
WHERE created_at < NOW() - INTERVAL '14 days'; -- Change to 14 daysEdit the CSS variables in index.html:
:root {
--primary-color: #3b82f6;
--background-color: #050505;
--text-color: #ffffff;
}-
Enable Proxy Mode in
config.js:USE_PROXY: true, PROXY_URL: '/api/proxy',
-
Store API Keys Server-Side:
- Use Vercel environment variables
- Never commit
.env.localorconfig.js
-
Configure CORS:
- Update
api/proxy.jsto restrict origins - Only allow your domain in production
- Update
-
Enable Rate Limiting:
- Use Vercel's built-in rate limiting
- Add custom rate limiting logic if needed
| Metric | Score | Details |
|---|---|---|
| First Contentful Paint | < 1s | β‘ Lightning fast |
| Time to Interactive | < 2s | π Instant interaction |
| Lighthouse Score | 95+ | π― Excellent |
| Bundle Size | < 100KB | π¦ Lightweight |
| API Response Time | < 2s | β‘ Real-time streaming |
We welcome contributions! Here's how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow existing code style
- Add comments for complex logic
- Test thoroughly before submitting
- Update documentation as needed
Found a bug or have a feature idea? Please open an issue!
- Bug Report: Create Issue
- Feature Request: Create Issue
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2026 Muhammad Umer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Powered by amazing open-source projects:
| Project | Purpose |
|---|---|
| OpenRouter | AI model API access |
| Supabase | Database & backend |
| Tailwind CSS | Utility-first CSS |
| Prism.js | Syntax highlighting |
| Prettier | Code formatting |
| Iconify | Beautiful icons |
| Vercel | Deployment platform |
Special thanks to:
- Zhipu AI for GLM 4.5 Air
- DeepSeek for DeepSeek R1
- Meta for Llama models
- Google for Gemma
- Mistral AI for Mistral models
- Alibaba for Qwen
- π€ Voice input/output
- π Multi-language support
- π§ Custom AI training
- π± Mobile app (React Native)
- π Browser extension
- π₯ Team collaboration features
- π€ Export to various formats (PDF, Markdown, JSON)
- π¨ Theme customization (Dark/Light modes)
- π Advanced search in chat history
- π Analytics dashboard
- π API for third-party integrations
- π€ Custom chatbot personalities
- β Vercel deployment support
- β Server-side API proxy
- β Code syntax highlighting
- β Code auto-formatting
- π Real-time collaboration
- πΈ Screenshot support
- π΅ Audio file support
If you find Looka AI helpful, please consider:
β Starring this repository
π Reporting bugs
π‘ Suggesting new features
π€ Contributing to the code
π’ Sharing with others
Made with β€οΈ by Muhammad Umer
Β© 2026 Looka AI. All rights reserved.