RIFACTS is a Google Docs sidebar for investigative journalists. Highlight a claim, point to a Drive folder of evidence, and get AI-scored verification with exact quotes — all without your data ever leaving Google Workspace.
A typical investigation involves leaked PDFs, internal spreadsheets, recorded interviews, government reports, and hundreds of pages of notes. When you need to verify a single claim, you're digging through all of it manually.
RIFACTS changes that. It reads every document in your evidence folder — including scanned PDFs via OCR and YouTube video transcripts — and tells you exactly which files support or contradict your claim, with quoted passages and page references.
It works with your own documents, not a public database. Your investigation stays yours.
Works inside the Google Doc you're already writing in. No tab-switching, no copy-pasting.
Select any sentence in your article — a figure, a quote, a date — that you want to check against your evidence.
Search for and select a Drive folder containing your investigation files. You can also add YouTube video URLs as additional sources.
Gemini processes every file in the folder: Google Docs, scanned PDFs (via automatic OCR), spreadsheets, and YouTube video transcripts.
Each source gets a 0–100 confidence score with exact quoted passages and their location, so you can verify every match yourself.
Journalists work with confidential sources. RIFACTS was designed from the ground up to keep your data under your control.
RIFACTS has no backend and no database. It runs entirely as a Google Apps Script inside your Workspace session.
RIFACTS cannot modify, delete, or create any files in your Drive. Evidence is read in-session and sent directly to Google's Gemini API. Nothing is stored or cached.
The only stored value is your Gemini API key, kept in Google's secure Properties Service. You can revoke access anytime.
Every line of code is on GitHub under the MIT License. Audit it, fork it, or run your own deployment.
Scanned documents are automatically converted to searchable text using Google's built-in OCR. No manual transcription needed.
Paste a video URL and RIFACTS pulls the full transcript — from official captions, page metadata, or YouTube's internal API — and includes it as evidence.
Browse and search any folder in My Drive or Shared Drives. Not limited to starred items or recent files.
Each evidence source is scored 0–100 and labeled: exact match, strong alignment, partial match, or contradiction. Scores come with the quoted passage and its location.
Images embedded in your evidence are analyzed directly by Gemini — not converted to text first. Charts, photos, and scanned pages are all understood natively.
No new tools to learn. RIFACTS lives in the sidebar of the document you're already writing. Highlight, click, verify.
When you click "Verify", RIFACTS runs a four-stage pipeline entirely inside Google's infrastructure.
RIFACTS is free and open source. You'll need a Google account and a Gemini API key.
Create a free Gemini API key from Google AI Studio. It takes 30 seconds.
Clone the repo and push to your Google account using clasp.
npm run deploy
Find RIFACTS in the Add-ons menu and open the sidebar.
Paste your API key once. It's stored securely in your Google account. You're ready to go.
RIFACTS is open-source, free, and built for the journalists who need it most. Clone the repo and start fact-checking your next investigation.
View on GitHub →