GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AndriP8/explaina: Explaina is a Chrome extension that helps you understand any word or sentence on a website. Just highlight the text, and get a smart, AI-powered explanation — instantly and in context.

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CONTEXT.md
CONTEXT.md
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
build.mjs
build.mjs
 
 
index.css
index.css
 
 
input.css
input.css
 
 
manifest.json
manifest.json
 
 
options.html
options.html
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
popup.html
popup.html
 
 
skills-lock.json
skills-lock.json
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Explaina - Explain with AI

Overview

Explaina is an AI-powered Chrome extension that explains complex terms by analyzing the context of the page you're on. Select any word or phrase, and get a concise, context-aware explanation.

Features

  • Contextual Explanations: AI explains selected text using the surrounding page content.
  • Two entry points: Right-click "Explain with AI" context menu, or select text and click the extension icon.
  • Smart context extraction: Captures nearby paragraphs (up to 2000 chars) instead of the full page.
  • Works everywhere: Content script injected into all websites.
  • Streaming support: Displays responses incrementally when the backend supports it.
  • Retry with backoff: Automatically retries on transient failures.
  • Dark mode: Adapts to your system color scheme.
  • Keyboard shortcut: Press Ctrl+Shift+E (Cmd+Shift+E on Mac) to open the popup.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/explaina.git
    cd explaina
  2. Install dependencies:

    pnpm install
    pnpm approve-builds esbuild
  3. Build the extension:

    pnpm run build    # compiles TypeScript src/ → dist/
    pnpm run tailwind # compiles input.css → index.css
  4. Load the extension into Chrome:

    • Open chrome://extensions/
    • Enable "Developer mode"
    • Click "Load unpacked" and select the explaina directory

Usage

  • Select text → right-click → "Explain with AI" — quick entry from context menu.
  • Select text → click extension icon — popup opens with text pre-filled.
  • Press Ctrl+Shift+E — opens the popup instantly.
  • Edit the text in the popup textarea, then click Explain.

Development

pnpm run dev    # watch mode — rebuilds on file changes
pnpm run tailwind  # rebuild CSS after theme changes

Project Structure

explaina/
├── src/               # TypeScript source files
│   ├── background.ts  # Service worker (context menu)
│   ├── content.ts     # Content script (text selection)
│   ├── popup.ts       # Popup UI logic
│   └── types.ts       # Shared type definitions
├── dist/              # Compiled JS output (gitignored)
├── input.css          # Tailwind CSS input
├── index.css          # Compiled CSS (gitignored)
├── manifest.json      # Chrome extension manifest
├── popup.html         # Popup UI
├── tsconfig.json      # TypeScript config
└── package.json       # Dependencies & build scripts

License

ISC

About

Explaina is a Chrome extension that helps you understand any word or sentence on a website. Just highlight the text, and get a smart, AI-powered explanation — instantly and in context.

Topics

aichatgptchrome-extension

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.