tera

🧠 Tera β€” Your AI Learning Companion for Anything

Learn anything. Master everything. Powered by AI.

Tera is a free, AI-powered learning companion designed for anything you want to learn β€” school subjects, work skills, creative projects, and everyday curiosity. Built with conversational AI at its core, Tera makes learning simple, personal, and powerful.

🌐 Live: teraai.chat


✨ Features

πŸŽ“ For Students

πŸ‘¨β€πŸ« For Teachers

πŸ’‘ For Everyone


πŸš€ Key Capabilities

Feature Free Pro ($5/mo) Plus ($15/mo)
AI Conversations βœ… Unlimited βœ… Unlimited βœ… Unlimited
File Uploads (per day) 3 (10MB) 25 (500MB) Unlimited (2GB)
Web Searches (monthly) 5 100 Unlimited
Deep Research Mode β€” βœ… βœ…
Export to PDF/Word β€” βœ… βœ…
Advanced Analytics β€” β€” βœ…
Team Collaboration β€” β€” βœ…
API Access β€” β€” βœ…

Chat Learning Modes

Tera chat includes learning modes that shape the assistant experience without changing existing usage limits or introducing new plan limits for this foundation.

Mode configuration and prompts live in lib/ai/chat-modes.ts. Document any migration added for mode metadata alongside this foundation; no new plan limits are introduced, so existing usage limits continue to apply.


πŸ“– Grokipedia Integration

Tera integrates Grokipedia β€” an open-source AI-powered encyclopedia with 362,000+ pages β€” as its primary knowledge base and citation source.

How It Works

[Term](https://grokipedia.com/search?q=Term+Name)

πŸ› οΈ Tech Stack

Layer Technology
Framework Next.js (App Router)
Language TypeScript
Styling Tailwind CSS
AI Model Mistral AI (Pixtral 12B)
Database Supabase (PostgreSQL)
Auth NextAuth.js (Google OAuth)
Payments Lemon Squeezy
Hosting Vercel
Mobile React Native (Expo)
Charts Recharts
Diagrams Mermaid.js
Markdown react-markdown

πŸ“ Project Structure

Tera/
β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”œβ”€β”€ about/              # About page
β”‚   β”œβ”€β”€ admin/              # Admin dashboard
β”‚   β”œβ”€β”€ api/                # API routes (billing, auth, agent)
β”‚   β”œβ”€β”€ auth/               # Authentication pages
β”‚   β”œβ”€β”€ help/               # Help center
β”‚   β”œβ”€β”€ history/            # Chat history
β”‚   β”œβ”€β”€ new/                # New chat & chat by ID
β”‚   β”œβ”€β”€ notes/              # Notes feature
β”‚   β”œβ”€β”€ plus/               # Premium features
β”‚   β”œβ”€β”€ pricing/            # Pricing page
β”‚   β”œβ”€β”€ privacy/            # Privacy policy
β”‚   β”œβ”€β”€ terms/              # Terms of service
β”‚   └── tools/              # AI tools page
β”œβ”€β”€ components/             # React components
β”‚   β”œβ”€β”€ visuals/            # Chart, Mermaid, Spreadsheet renderers
β”‚   β”œβ”€β”€ AppLayout.tsx       # Main app layout
β”‚   β”œβ”€β”€ MarkdownRenderer.tsx # Markdown rendering with Grokipedia link styling
β”‚   β”œβ”€β”€ PromptShell.tsx     # Main chat interface
β”‚   β”œβ”€β”€ Sidebar.tsx         # Navigation sidebar
β”‚   └── ...
β”œβ”€β”€ lib/                    # Core logic & utilities
β”‚   β”œβ”€β”€ mistral.ts          # AI model integration & system prompt
β”‚   β”œβ”€β”€ supabase.ts         # Database client
β”‚   β”œβ”€β”€ auth.ts             # Authentication config
β”‚   β”œβ”€β”€ quiz.ts             # Quiz generation
β”‚   β”œβ”€β”€ tools-data.ts       # Tool definitions
β”‚   └── ...
β”œβ”€β”€ mobile/                 # React Native mobile app (Expo)
β”‚   β”œβ”€β”€ app/                # Expo Router pages
β”‚   └── ...
β”œβ”€β”€ backend-server/         # Backend API server
β”‚   └── src/
β”‚       └── services/       # Mistral & Ollama services
β”œβ”€β”€ styles/                 # Global CSS
└── public/                 # Static assets & images

πŸƒβ€β™‚οΈ Getting Started

Prerequisites

Environment Variables

MISTRAL_API_KEY=your_mistral_api_key
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret

Installation

# Clone the repo
git clone https://github.com/Abdulmuiz44/Tera.git
cd Tera

# Install dependencies
npm install

# Run development server
npm run dev

Mobile App

cd mobile
npm install
npx expo start

🎨 Design System

Tera uses a custom design system with CSS variables for theming:

Token Purpose
tera-bg Background color
tera-primary Primary text color
tera-secondary Secondary text color
tera-panel Panel/card backgrounds
tera-border Border colors
tera-neon Accent/highlight color
tera-muted Muted backgrounds

Supports dark mode and light mode via ThemeProvider.


πŸ“Š AI Tools

Tera includes specialized tools for different use cases:


πŸ”’ Security & Privacy


πŸ“¬ Contact


πŸ“„ License

Β© 2025 Tera. All rights reserved. Built with care for curious minds everywhere.