Skip to content
Audience view:

05 / 06·2025 – 2026

Doc Hangout

A professional network for verified doctors — case discussions, real-time messaging, communities.

Role
Full stack — every commit
Source
Public repo
Live site ↗Repository ↗
Doc Hangout feed with specialty communities

01

Context & my role

Role: Full stack — every commit

02

Problem

Doctors discuss cases in WhatsApp groups that mix verified colleagues with everyone else. There is no place that is both professional-only and fast enough for a real conversation.

Doc Hangout needed verification at the door, low-latency feeds and chat, and moderation — with a one-person team.

03

Approach

A React SPA with React Query talks directly to Supabase. Postgres row-level security is the authorization boundary: posts, comments, messages and group membership are all enforced in policies, not in client code.

Supabase Realtime drives direct messages, group chats, typing indicators and live feed updates through `postgres_changes` subscriptions.

Thirty-plus migrations evolve the schema in the open: post categories, group conversations, profile ranks, trending posts, AI feature tables, community deletion and policy fixes each have their own migration.

04

Architecture

Doc Hangout Collaborative Knowledge Base

simplified, illustrative

Interactive multi-user document repository featuring verified semantic page citations and real-time collaborative questioning.

Layer:
Flow:
Click any node to inspect trade-offs, or press ▶ Play Flow to animate packets across service boundaries.
Upload PDFRaw TokensEmbeddings + MetaAsk QuestionTop-k ContextCited ResponseLive AnswersCollaborative Web AppReact 19 / Supabase ClientDocument Ingestion WorkerPDF Text & Table ExtractionSemantic Boundary ChunkerPage & Heading MetadataVector Index & StorageCosine Similarity SearchRAG Citation EngineGrounding & Source LinksRealtime Pub/SubWebSocket Presence & Sync
System Overview & Accessible Text Description

Components: Collaborative Web App (client); Document Ingestion Worker (worker); Semantic Boundary Chunker (service); Vector Index & Storage (db); RAG Citation Engine (llm); Realtime Pub/Sub (service).

Key Data & Auth Flows: Collaborative Web App → Document Ingestion Worker [Upload PDF]; Document Ingestion Worker → Semantic Boundary Chunker [Raw Tokens]; Semantic Boundary Chunker → Vector Index & Storage [Embeddings + Meta]; Collaborative Web App → RAG Citation Engine [Ask Question]; Vector Index & Storage → RAG Citation Engine [Top-k Context]; RAG Citation Engine → Realtime Pub/Sub [Cited Response]; Realtime Pub/Sub → Collaborative Web App [Live Answers].

05

Implementation

  • 01Verification captures licence number, institution and specialisation on the profile; unverified users are read-only until approved.
  • 02Karma and ranks are computed from upvotes and contributions and surface in a leaderboard; trending topics are maintained by a manager component over recent activity.
  • 03A multi-tab session manager keeps auth state coherent across browser tabs; the app installs as a PWA with a service worker.
  • 04Jest unit tests and Playwright end-to-end configs sit next to full API, schema and setup documentation in the repo.

06

Outcome

  • Live at doc-hangout.rushil-salian.com.
  • 37 commits, all hand-written, about 23k lines — the most thoroughly documented repo in the portfolio.

07

Stack

  • React 18
  • TypeScript
  • Vite
  • Tailwind
  • Supabase
  • PostgreSQL
  • RLS
  • Realtime
  • PWA
  • Jest
  • Playwright

Skills evidenced: React · TypeScript · Supabase · PostgreSQL · RBAC · OpenAI API

Next case study

Gandharva Fin →

A financial management platform, delivered solo to production for a client.