Skip to content
keshav
Work
02 — Active · 2026

peerY

developer matching & collaboration platform

React · Node.js · MongoDB · Socket.ioFull-stack, productLive ↗Source ↗

Problem

When I started programming, finding teammates meant shouting into Discord servers and hoping. peerY is the platform I wish existed then: a place where builders discover each other through skill-aware matching, connect in real time, and actually ship projects together — with the team tooling (applications, kanban, roles) built into the same product instead of bolted onto a social network.

Thinking

The match feed is the product, so ranking had to be honest and explainable: a weighted score over shared skills (×3), tech stack (×2), and experience — computed server-side, with liked and matched profiles excluded before a page of results is ever built.

Real-time features fail in the real world, so every realtime path has a durable fallback. Messages are persisted to MongoDB before they're broadcast, and Socket.io runs with a polling fallback so connections survive behind firewalls and proxies. Delivery correctness outranks delivery speed.

Collaboration needed to be a first-class object, not a chat group. Projects own roles, openings, applications, invitations, and a workspace — which meant designing permissions (owner, contributor, applicant) across every feature from day one.

Architecture

client
React + ReduxSocket.io-client
api
ExpressJWT authZod validation
realtime
Socket.ioPolling fallback
data
MongoDBMessage storeProject state
REST handles discovery, projects, and applications; Socket.io carries matches and messages; MongoDB is the source of truth both paths write through.

Engineering

Data flow
Discovery, profiles, projects, and applications run as REST endpoints behind JWT bearer auth with Zod validation on every request. The like → match flow is a single transactional comparison: a like that creates a mutual match emits a Socket.io event to both users immediately.
Persistence
Messages are written to MongoDB before broadcast — a disconnect between save and broadcast is recoverable, a broadcast before save is not. Conversations are keyed per match and loaded in full on selection, so reconnects never lose history.
Concurrency
Socket.io handles match notifications and chat, with duplicate-message protection on the client and a polling fallback transport for restrictive networks. Rate limiting and Helmet middleware guard the API surface, and passwords are hashed with bcryptjs.
Caching & failure modes
The feed excludes already-liked and already-matched profiles server-side, so stale client state can never surface them. Failure modes designed for explicitly: socket reconnects mid-conversation, duplicate events on redelivery, and abandoned applications that must not lock project openings.

What broke

  • Socket.io died behind campus firewalls

    Websocket upgrades were silently blocked for some users, so matches went dark while REST kept working. Adding the polling fallback transport and reconnect-aware event replay fixed the entire class of 'it works on my network' bugs.

  • Reconnects duplicated messages

    A flaky connection re-broadcast recent messages on resume, double-rendering them. Persisting first, then broadcasting, plus client-side dedupe on message IDs, made the stream idempotent.

  • The feed showed people I'd already matched

    Exclusions were applied client-side initially, so cached state resurfaced handled profiles. Moving exclusion into the server-side query made the feed correct regardless of client state.

What I'd change

  • AI mentor chat and AI-powered project discovery — both on the roadmap, both a natural extension of the match scoring I already compute.
  • Real-time chat channels inside the project workspace, not just per-match DMs.
  • A notification center and activity feed instead of pure Socket.io toasts.