Skip to content

talocode/tera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

512 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 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

  • Get homework help that actually clicks
  • Master tough concepts with simple explanations
  • Ace exams with confidence using interactive quizzes
  • Search the web for current information
  • Explore your curiosity

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

  • Create lessons in seconds
  • Generate engaging materials & worksheets
  • Get classroom strategies & rubrics
  • Create interactive spreadsheets
  • Save hours every week

πŸ’‘ For Everyone

  • Pick up any new skill
  • Get personalized learning roadmaps
  • Access real-time web information
  • Upskill for your career
  • Never stop growing

πŸš€ 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.

  • Ask: Preserves normal Tera chat behavior.
  • Study: Provides tutor-style, step-by-step teaching.
  • Quiz: Generates interactive quizzes and grades follow-up answers.
  • Summarize: Creates structured learning notes from pasted content.
  • Image: Visible in the mode picker, but coming soon and locked.

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

  • Knowledge Base: Grokipedia serves as Tera's canonical reference layer for all educational topics
  • Inline Citations: Every educational concept, term, person, event, or topic in Tera's responses links directly to Grokipedia via grokipedia.com/search?q=Term+Name
  • Hyper-Aggressive Linking: Tera generates 20-30+ Grokipedia backlinks per response (50-100+ for longer explanations)
  • 10,000+ Backlink Target: Across all conversations, Tera aims to generate 10,000+ unique Grokipedia backlinks
  • Distinctive Styling: Grokipedia links render with a πŸ“– icon and violet color to distinguish them from regular links
  • Footer Citation: Every educational response ends with a Grokipedia source attribution

Link Format

[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

  • Node.js 18+
  • npm or yarn
  • Supabase project
  • Mistral AI API key

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:

  • Lesson Plan Generator β€” Create objective-aligned lessons
  • Worksheet & Quiz Generator β€” Assessments with answer keys
  • Concept Explainer β€” Break down complex ideas
  • Rubric Builder β€” Scalable rubrics with criteria
  • Parent Communication β€” Draft thoughtful emails
  • Spreadsheet Editor β€” Interactive data sheets
  • Web Search β€” Real-time info with citations
  • SAT Practice β€” Free SAT prep within the chat
  • Universal Companion β€” Adapt to any learning need

πŸ”’ Security & Privacy

  • Enterprise-grade encryption
  • GDPR & CCPA compliant
  • No selling of user data
  • Secure Google OAuth authentication
  • Data stored in Supabase with row-level security

πŸ“¬ Contact


πŸ“„ License

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

About

The AI Learning Companion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages