DEV Community

Mobin Poursalami
Mobin Poursalami

Posted on

I rebuilt Stack Overflow with AI in it — here's why and how (SvelteKit + Cloudflare Workers)

The Problem Nobody Is Talking About

Every day, millions of developers solve coding problems with AI.
The solutions work. But those conversations are private.

Stack Overflow's traffic has dropped significantly since ChatGPT launched.
The knowledge that used to be publicly indexed is now locked in
private chat windows, never to be found again.

My Solution: CodeAnswr

What if AI-assisted Q&A was public by default?

  1. You chat with AI to solve your problem
  2. You get a pre-publish privacy review
  3. A scanner strips API keys, passwords, AWS credentials automatically
  4. You confirm → the Q&A is published and searchable forever

Live: https://codeanswr.com

Tech Stack (all free)

Layer Tech
Frontend SvelteKit → Cloudflare Pages
Backend Hono.js → Cloudflare Workers
Database Cloudflare D1 (SQLite)
Cache Cloudflare KV
AI Puter.js (free, unlimited)
Cost ~$1/month (domain only)

What I'm Most Proud Of

Privacy Scanner: Scans for 20+ sensitive data patterns before
anything is published — AWS keys, GitHub tokens, Stripe keys, JWTs,
private keys. Shows exact line numbers in a warning before publish.

MCP Server: There's a Model Context Protocol server so
Claude/Cursor users can search CodeAnswr directly from their editor.

Zero rate limits: Because AI runs through Puter.js, there are
no per-user API limits. Anyone, anywhere can use it freely.

What I Learned Building on Cloudflare Workers

  1. D1 is fast enough for a Q&A platform — sub-100ms query times
  2. Hono.js is the right framework for Workers (tiny bundle, great middleware)
  3. KV caching is essential — hot question lists cached for 15 min
  4. adapter-cloudflare in SvelteKit works great, but you lose Node.js APIs (plan for this early)

Open Source

Full source: https://github.com/mobinpo/Implementing-Developer-Hub-APIs

Would love feedback — especially on the privacy scanner approach
and whether you'd actually use a platform like this.

Top comments (0)