🇷🇴 Built for RISE Project Romania

Cross-reference claims
against your own evidence

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.

Investigations produce mountains of evidence. Finding the right piece takes hours.

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.

0–100
Confidence score per evidence source
5
File types supported: Docs, PDFs, Sheets, images, YouTube
0
External servers. No backend, no database, no tracking.
100%
Open source and auditable on GitHub

Four Steps to Verified Facts

Works inside the Google Doc you're already writing in. No tab-switching, no copy-pasting.

1
📝

Highlight a Claim

Select any sentence in your article — a figure, a quote, a date — that you want to check against your evidence.

2
📁

Choose Your Evidence

Search for and select a Drive folder containing your investigation files. You can also add YouTube video URLs as additional sources.

3
🤖

AI Reads Everything

Gemini processes every file in the folder: Google Docs, scanned PDFs (via automatic OCR), spreadsheets, and YouTube video transcripts.

4
📊

Get Scored Results

Each source gets a 0–100 confidence score with exact quoted passages and their location, so you can verify every match yourself.

Built for Sensitive Investigations

Journalists work with confidential sources. RIFACTS was designed from the ground up to keep your data under your control.

🛡

No Servers

RIFACTS has no backend and no database. It runs entirely as a Google Apps Script inside your Workspace session.

🔒

Read-Only Access

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.

🔑

Your Key, Your Control

The only stored value is your Gemini API key, kept in Google's secure Properties Service. You can revoke access anytime.

📜

Fully Open Source

Every line of code is on GitHub under the MIT License. Audit it, fork it, or run your own deployment.

What It Can Do

📄

Scanned PDF Support

Scanned documents are automatically converted to searchable text using Google's built-in OCR. No manual transcription needed.

📺

YouTube Transcripts

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.

🗂️

Full Drive Access

Browse and search any folder in My Drive or Shared Drives. Not limited to starred items or recent files.

🎯

Precision Scoring

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.

🧠

Multimodal Analysis

Images embedded in your evidence are analyzed directly by Gemini — not converted to text first. Charts, photos, and scanned pages are all understood natively.

Works Inside Google Docs

No new tools to learn. RIFACTS lives in the sidebar of the document you're already writing. Highlight, click, verify.

How Your Evidence Is Processed

When you click "Verify", RIFACTS runs a four-stage pipeline entirely inside Google's infrastructure.

📝
Read Claim
Extract highlighted text from your Doc
📁
Gather Evidence
Scan folder for Docs, PDFs, Sheets
📺
Enrich Sources
OCR scanned PDFs, fetch YouTube transcripts
🤖
Analyze & Score
Gemini compares claim to each source

What Powers RIFACTS

Google Apps Script V8
Gemini 2.0 Flash
Vite + Single-File Build
Vanilla JS / CSS
Google Drive API
YouTube Data API

Get Started in Minutes

RIFACTS is free and open source. You'll need a Google account and a Gemini API key.

1

Get an API Key

Create a free Gemini API key from Google AI Studio. It takes 30 seconds.

2

Clone & Deploy

Clone the repo and push to your Google account using clasp.

npm run deploy
3

Open a Google Doc

Find RIFACTS in the Add-ons menu and open the sidebar.

4

Enter Your Key

Paste your API key once. It's stored securely in your Google account. You're ready to go.

Your Evidence. Your Verification.

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 →