Skip to content

Repository files navigation

Free AI

A 100% free, open-source web application that gives anyone instant access to powerful artificial intelligence — no sign-up, no credit card, no limits.

Chat with Groq's LLaMA models directly from your browser using your own API key. Your key never leaves your device.


Features

  • No sign-up required — open the page and start chatting immediately
  • Privacy-first — your Groq API key is stored only in your browser's localStorage, never sent to any server other than Groq
  • Multi-language support — English and Finnish UI with locale-aware translations
  • Open-source — released under the MIT License
  • Responsive design — works on desktop and mobile

Pages

RouteDescription
/Landing page with hero, features, social proof
/chatAI chat interface — paste your Groq API key and start chatting
/aboutAbout Free AI — how it works, why it exists
/contactContact form backed by SMTP (Nodemailer) with anti-spam honeypot
/privacyPrivacy Policy
/termsTerms of Service
/cookiesCookies & Storage Policy
/licenseMIT License text

Tech Stack

LayerTechnology
FrameworkNext.js 16 (App Router)
LanguageTypeScript 5
StylingTailwind CSS v4 + @tailwindcss/postcss
FontsGeist Sans + Mono via next/font/google
EmailNodemailer for contact form delivery
AI ProviderGroq API — LLaMA-3.3 70B with streaming SSE responses
SecurityRate limiting, input sanitization, CSP/HTTP security headers, honeypot anti-spam, API key expiry

Getting Started

Prerequisites

Installation

git clone https://github.com/yourusername/free-ai.git
cd free-ai
npm install
cp .env.example .env.local

Development

npm run dev

Open http://localhost:3000.

Build & Deploy

npm run build # Optimized production build
npm start # Start the server

Environment Variables

VariableRequiredDescription
SMTP_HOSTNoSMTP host (default: smtp.gmail.com)
SMTP_PORTNoSMTP port (default: 587)
SMTP_SECURENoUse SSL/TLS (default: false)
SMTP_USERNoSMTP username
SMTP_PASSNoSMTP password (App Password)
SMTP_FROMNoSender address for contact emails
SMTP_TONoRecipient address for contact form submissions

Security Features

  • Rate limiting on all public API routes — 30 req/min for chat, 10 req/min for contact
  • CSP + HTTP security headers — prevents XSS, clickjacking, MIME sniffing
  • Input sanitization — HTML escaping, CRLF stripping, length limits on all inputs
  • Honeypot anti-spam on the contact form
  • Groq error mapping — raw provider errors are never shown to end users
  • API key expiry — stored keys automatically expire after 30 days

How It Works

  1. User visits /chat and enters their own Groq API key → stored in browser localStorage
  2. When sending a message, the key travels from the client through our serverless route (/api/chat) to Groq's streaming API
  3. Responses stream back via Server-Sent Events for instant display

Your API key never touches our servers — it travels only: your browser → our proxy → Groq → back. We have no access to it.


License

MIT — free to use, modify, and distribute.

About

Free AI Website that dosent store any data. No login needed, Works with Groq api key what is stored in user browser.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages