Skip to content

rajraulo/LingAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✦ LingAI — Intelligent AI Assistant

A beautiful, ChatGPT-style AI chat app powered by Claude (Anthropic).
Real-time streaming responses, conversation history, and a polished dark UI.


🚀 Quick Start

1. Prerequisites

2. Clone the repo

git clone https://github.com/YOUR_USERNAME/lingai.git
cd lingai

3. Install dependencies

npm install

4. Set up your API key

cp .env.example .env

Open .env and replace your_api_key_here with your real Anthropic API key:

ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxx
PORT=3000

5. Run the app

npm start

Open your browser at → http://localhost:3000

For development with auto-reload:

npm run dev

📁 Project Structure

lingai/
├── public/
│   └── index.html       # Full frontend (HTML + CSS + JS)
├── server.js            # Express backend with streaming API
├── package.json
├── .env.example         # Copy to .env and add your key
├── .gitignore
└── README.md

☁️ Deploy to GitHub

Step 1 — Create a new GitHub repo

  1. Go to https://github.com/new
  2. Name it lingai
  3. Leave it empty (no README)
  4. Click Create repository

Step 2 — Push your code

cd lingai
git init
git add .
git commit -m "Initial commit — LingAI"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/lingai.git
git push -u origin main

🌐 Deploy to the Internet (Free)

Option A — Render.com (recommended, free tier)

  1. Go to https://render.com and sign in with GitHub
  2. Click New → Web Service
  3. Select your lingai repo
  4. Settings:
    • Build Command: npm install
    • Start Command: npm start
    • Environment: Node
  5. Add environment variable: ANTHROPIC_API_KEY = your key
  6. Click Deploy — you get a live URL in ~2 minutes!

Option B — Railway.app

  1. Go to https://railway.app
  2. New Project → Deploy from GitHub repo
  3. Add ANTHROPIC_API_KEY in Variables tab
  4. Done — Railway auto-detects Node and deploys

Option C — Fly.io

npm install -g flyctl
flyctl auth login
flyctl launch
flyctl secrets set ANTHROPIC_API_KEY=sk-ant-xxxxxxxx
flyctl deploy

✨ Features

  • 💬 Real-time streaming responses
  • 🧠 Powered by Claude Sonnet 4 (Anthropic)
  • 💾 Conversation history saved in browser
  • 🌙 Elegant dark UI with animations
  • 📱 Responsive layout
  • ⚡ Lightweight — no build tools needed

🔑 Getting an Anthropic API Key

  1. Go to https://console.anthropic.com/
  2. Sign up / log in
  3. Navigate to API Keys
  4. Click Create Key
  5. Copy and paste into your .env file

📄 License

MIT — free to use, modify, and distribute.

About

LingAI — your own intelligent AI assistant. Real-time streaming, beautiful UI, one API key. Deploy in minutes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors