@fetchitai/review
v0.3.0
Published
Drop-in review panel: clean AI text, color-code what changed, let the reader accept/reject/edit, and hand back the final copy. Runs entirely in the browser.
Maintainers
Readme
@fetchitai/review
A drop-in "review before you send" panel. Mount it beside any text box and the
reader sees the cleaned text with color-coded highlights, accepts or rejects each
change, edits by hand, then hands the final text back to your app. Runs
@fetchitai/engine locally, so the text never leaves the page.
import { attachReview } from "@fetchitai/review";
attachReview(document.querySelector("#compose"), {
text: aiDraft,
onApply: (finalText, receipt) => sendEmail(finalText),
});It renders a <fetchit-review> web component (shadow DOM, themeable via --fr-*
CSS custom properties). It shows a small "Powered by Fetch It AI" badge,
which is appreciated but entirely optional: pass badge: false to hide it.
License
Apache-2.0. Free for everyone, including commercial use.
