Skip to content

artttj/sento

Repository files navigation

Sentō

License: MIT TypeScript Google Chrome

Rewrite anywhere

Sentō is a Chrome extension that adds a floating AI rewrite bubble to any editable field. Select text, choose a template, review the result, and apply it instantly.

No copy-paste. No switching tabs. No context loss.

Sentō in action

Key Features

  • Works everywhere: textareas, contenteditable, ProseMirror, Jira, Confluence.
  • Preview before applying: nothing changes until you click Apply. Hold Shift to skip preview.
  • Bring your own API key: OpenAI, Gemini, or Grok. No subscriptions, no markup.
  • Appears only when needed: bubble shows only when text is selected.
  • Flexible site control: All Sites, Allow List, or Block List.
  • Privacy by design: keys stay local, requests go directly to AI providers.

Quick Start

1. Clone and build

git clone https://github.com/artttj/sento.git
cd sento
npm install
npm run build

2. Install the extension

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

3. Add your API key

Click the Sentō icon → Settings → AI Connections

Provider Get a key
OpenAI https://platform.openai.com/api-keys
Google Gemini https://aistudio.google.com/app/apikey
Grok (xAI) https://console.x.ai/

How It Works

  1. Select text in any editable field
  2. The rewrite bubble appears
  3. Choose a template (Fix, Pro, Mine, Trim)
  4. Review the rewritten text
  5. Click Apply or Retry

Formatting like lists and bullet points is preserved, including in Jira, Confluence, and ProseMirror.

Rewrite Templates

Template Purpose
Fix Correct grammar, spelling, and clarity
Pro Rewrite with a concise professional tone
Mine Your custom instruction
Trim Shorten text by about 40%

Templates can be reordered, disabled, or customized in Settings.

Languages

The interface supports English and Deutsch (German). Change it in Settings → General → Language.

Prompts sent to AI providers remain in English.

Common Use Cases

  • Jira / Linear tickets: turn rough notes into a clean update
  • Email drafts: fix tone and grammar before sending
  • Slack / Teams: rewrite messages for clarity
  • Code review comments: make suggestions concise
  • Markdown: improve formatting and readability

Privacy and Security

  • API keys stored only in chrome.storage.local
  • Text goes directly to the AI provider
  • No backend: runs entirely client-side

Provider policies: OpenAI, Google, xAI

Tech Stack

  • TypeScript (strict mode)
  • Chrome Extension Manifest V3
  • Shadow DOM UI isolation
  • esbuild bundling

License

MIT: see LICENSE for details.

About

Sentō is a high-performance Chrome MV3 BYOK rewrite assistant that injects a Shadow DOM “liquid glass” bubble into editable fields and rewrites selected text via OpenAI, Gemini, or xAI Grok, with framework-aware text replacement for React/Vue/contenteditable editors.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors