DEV Community

Ishant Singh
Ishant Singh

Posted on

The Truth Gazette — My AI-Powered Fake News Detector (Capstone Project)

Hey devs, Ishant here 👋

It’s 1 AM, I have an exam tomorrow, and instead of sleeping like a responsible human…

I shipped an AI-powered fake news detector.

Because priorities. 💀

Meet The Truth Gazette — a newspaper-styled AI tool that investigates headlines, URLs, and images and tells you whether they look REAL, FAKE, or UNCERTAIN — with receipts.


What is The Truth Gazette?

Think of it as a desk-checker, not a final judge.

You paste something sketchy from the internet, and it responds like an overly serious newsroom editor who’s had too much coffee:

  • Verdict (REAL / FAKE / UNCERTAIN)
  • Confidence %
  • A dramatic newspaper-style headline
  • A proper investigation report (not just “trust me bro”)
  • Key findings
  • Clickable sources so you can verify it yourself

No vibes-only scores. No mystery boxes.

👉 Live here: https://truthgazette.vercel.app/


💀 Why I made this

Because misinformation spreads faster than exam stress.

Also because:

  • I was tired of “FACT CHECKED ✅” posts with zero sources and points to (Trust me, bro! 😏)
  • Most tools either oversimplify or don’t explain why
  • I wanted something fun and responsible

This isn’t a certified fact-checking authority.

It’s a fast triage tool to help you decide whether something deserves deeper digging.


✅ What it actually does

  • Accepts text, URLs, or images (Images → OCR → analysis)
  • Returns:
    • Verdict (FAKE / REAL / UNCERTAIN)
    • Confidence %
    • Newspaper headline (yes, dramatic on purpose)
    • Investigation report (3–4 paragraphs)
    • Key findings
    • Sources
  • UI: vintage newspaper vibes, confidence meter, and clickable sources

Hidden bonus:

Press Shift + L for a totally unnecessary flashlight Easter egg 🔦

(Press it again to escape before it becomes a horror game, joking LOL 💀)


🔧 Tech & questionable life choices

  • Frontend: plain HTML / CSS / JS (No heavy SPA frameworks — I wanted it fast and simple)
  • Backend: Vercel Serverless API
  • AI calls are server-side only
    • No API keys in the browser
    • Rate-limited to avoid abuse
  • Deployed on Vercel

Yes, I named files like real_new.html.

No, I will not be taking questions at this time. 🙏😭


🧪 Try these test headlines

Paste any of these into the app:

  • “Breaking: Coffee found to cure all coding bugs — scientists baffled”
  • “NASA admits climate change is caused by Earth’s orbit, not humans”
  • “Celebrity secretly funds alien research in their basement”
  • “New study proves chocolate makes you 10 years younger”

Then inspect the verdict, confidence, and sources.

Bonus points if you screenshot the angriest verdict.


⚠️ Disclaimer (important but boring)

This is a capstone project, not legal or medical advice.

Always cross-check important information with primary sources.

The goal is to help you pause before sharing, not replace critical thinking.


🙌 Feedback welcome

This is now live, public, and slightly terrifying.

If you try it:

  • Tell me what worked
  • Tell me what broke
  • Tell me if the AI roasted a headline harder than expected

Now I’m going to sleep and pray this doesn’t 500 error overnight.

— Ishant 🖤

Top comments (0)