Skip to content

Repository files navigation

Right Speech

A contemplative Chrome extension that reviews your Gmail drafts against Buddhist Right Speech principles — using a local LLM via Ollama. No data leaves your machine.

What it does

  • Analyzes your Gmail drafts in real-time as you type
  • Intercepts Send and pauses only when the draft needs more care
  • Reflects on five qualities of Right Speech: Sacca (truthful), Attha (beneficial), Piya (kind), Metta (goodwill), and Kala (timely)
  • Suggests a revised draft you can apply with one click

Setup

  1. Install and start Ollama:

    ollama serve
    ollama pull llama3.1
  2. Load the extension in Chrome:

    • Go to chrome://extensions
    • Enable Developer mode
    • Click Load unpacked and select this directory
  3. If Ollama returns 403 Forbidden, allow the extension origin:

    OLLAMA_ORIGINS="chrome-extension://*" ollama serve

Configuration

Click the extension icon to open settings:

  • Provider: Ollama (local) — default
  • Ollama URL: http://localhost:11434
  • Model: any model available in your Ollama instance (e.g. llama3.1)

Architecture

right-speech-extension/
├── engine/          # Core analysis: prompt builder, Ollama client, orchestrator
├── adapters/gmail/  # Gmail-specific: compose detection, UI injection
├── ui/              # Web Components: presence indicator, reflection panel
├── settings/        # Extension popup for configuration
├── background.js    # Service worker: settings, message relay
└── manifest.json    # Chrome MV3 manifest

Privacy

All analysis runs locally through Ollama. No draft text is sent to any external service.

About

A contemplative Chrome extension that reviews Gmail drafts against Buddhist Right Speech principles — using a local LLM via Ollama

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages