tui-ai-hub
v0.7.1
Published
Terminal AI Hub — Web Scraper, Chat & News tools powered by Gemini
Readme
tui-ai-hub
Terminal AI Hub — three AI-powered tools in your terminal: Web Scraper, Chat, and News. Built with OpenTUI + React, powered by Gemini via the Vercel AI SDK.
Features
- Web Scraper — Enter a URL, get an AI-generated summary with key points
- Chat — Persistent AI chat sessions with streaming responses
- News — Search news articles and get AI-powered summaries
Install
bunx tui-ai-hubOr install globally:
bun install -g tui-ai-hub
tui-ai-hubSetup
Create a .env file in the directory you run the app from:
GEMINI_API_KEY=your_gemini_api_key
NEWS_API_KEY=your_newsapi_keyGet keys from:
- Google AI Studio (Gemini)
- NewsAPI
Usage
| Key | Action |
|-----|--------|
| 1 / 2 / 3 | Switch to Scrape / Chat / News |
| Tab | Toggle sidebar focus |
| ↑ / ↓ | Navigate sidebar or lists |
| q / Ctrl+C | Exit |
Chat shortcuts
| Key | Action |
|-----|--------|
| Ctrl+S / Tab | Toggle session list |
| Ctrl+N | New session |
| Ctrl+D | Delete session |
| Ctrl+R | Rename session |
Development
bun install
bun run dev # watch mode
bun run build # bundle to dist/
bun run lint # lint
bun run fmt # formatTech
- OpenTUI — Terminal UI framework
- Vercel AI SDK — AI streaming & generation
- Gemini 2.0 Flash — LLM
- bun:sqlite — Persistent chat storage
License
MIT
