Skip to content

About

🖱️ An inline AI note-taking extension. Hover, press, and get LLM-powered insights seamlessly embedded into your reading flow. | 随指随析的网页沉浸式 AI 笔记插件,支持 Markdown 纯粹导出

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InlineNote

InlineNote Icon

中文版 | English

A lightweight browser extension for capturing web page notes with LLM-powered analysis. Hover over any paragraph, press Alt+Click, and get AI-generated insights displayed in a non-intrusive card — without polluting the original page styles.

Features

  • Inline Annotations — Select any paragraph on a webpage and get instant AI analysis displayed directly below it
  • Streaming Responses — Watch AI responses type out in real-time with SSE streaming support
  • Multi-Provider Support — Works with OpenAI, DeepSeek, SiliconFlow, TogetherAI, Ollama, and any OpenAI-compatible API
  • Per-Site Toggle — Enable or disable the extension on specific websites
  • Think Content Filter — Toggle visibility of AI reasoning content (e.g., <think> blocks from models like DeepSeek)
  • Markdown Export — Export all notes from the current page as a formatted Markdown file

How It Works

  1. Hover over any paragraph on a webpage
  2. Press Alt to see a highlight feedback
  3. Alt+Click to capture the text and trigger AI analysis
  4. View the AI response in a collapsible card rendered below the paragraph
  5. Use Esc to dismiss the card
  6. Click the extension icon to export all notes from the current page

Screenshots

InlineNote Popup UI

Installation

Prerequisites

  • Node.js 18+
  • npm 9+

Build from Source

# Install dependencies
npm install --legacy-peer-deps

# Build for Chrome
npm run build:chrome

# Build for Firefox
npm run build:firefox

Load in Browser

Chrome / Chromium-based browsers:

  1. Open chrome://extensions/
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select the dist_chrome directory

Firefox:

  1. Open about:debugging#/runtime/this-firefox
  2. Click Load Temporary Add-on
  3. Select dist_firefox/manifest.json

Configuration

  1. Click the InlineNote icon in your browser toolbar
  2. Click the Settings (gear) icon to open the Options page
  3. Add your API keys for supported providers
  4. Optionally customize prompt templates

Supported Providers

Provider Default Model API Format
OpenAI gpt-3.5-turbo OpenAI
DeepSeek deepseek-chat OpenAI-compatible
SiliconFlow deepseek-chat OpenAI-compatible
TogetherAI meta-llama/Llama-3-70b-chat-hf OpenAI-compatible
Ollama llama3 OpenAI-compatible
Custom User-defined OpenAI-compatible

Keyboard Shortcuts

Shortcut Action
Alt (hold) Preview highlight on hovered element
Alt+Click Capture text and create note
Esc Dismiss active note card

Architecture

src/
├── pages/
│   ├── content/       # Content Script - DOM interaction, Shadow DOM rendering
│   ├── background/    # Service Worker - LLM API communication, storage
│   ├── popup/         # Popup UI - quick actions, notes overview
│   └── options/       # Options page - API keys, prompt templates

Communication Flow:

Content Script ──message──> Background Worker ──fetch──> LLM API
                              │                          │
                              │                          (streaming SSE)
                              │                          │
Content Script <──message─── Background Worker <──────────┘
     │                              │
     └── Shadow DOM card update ◄───┘

Tech Stack

Category Technology
Build Tool Vite 6 + @crxjs/vite-plugin
Framework React 19
Language TypeScript 5 (strict mode)
Styling Tailwind CSS 4
Browser Chrome / Firefox (Manifest V3)
Testing Vitest + jsdom

Development

# Run tests
npm test           # Watch mode
npm run test:run   # Single run
npm run test:ui    # UI mode

# Linting & Formatting
npm run lint        # ESLint
npm run format      # Prettier

# Type checking
npm run typecheck

License

MIT

About

🖱️ An inline AI note-taking extension. Hover, press, and get LLM-powered insights seamlessly embedded into your reading flow. | 随指随析的网页沉浸式 AI 笔记插件,支持 Markdown 纯粹导出

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages