Skip to content

Case study

pulse-flow

Unified real-time infrastructure for the studio's products: conversations, presence, history, push and audio/video calls — one implementation instead of three.

Client
Think Dev
Years
2024 – present
Domain
SaaS

01

Context

Several products in the same studio need conversations, presence and notifications. pulse-flow brings these mechanisms into a reusable TypeScript foundation instead of rebuilding them inside each application.

02

Problem

Messaging is more than a WebSocket connection: it needs persistent history, conversation membership and a link between events and notifications. It also needs to fit host applications that use different server frameworks.

03

What I did

Architecture and development of a real-time foundation for Think Dev products, keeping business services separate from storage, transport and notification adapters.

04

Key technical decisions

  1. Decouple services from infrastructure

    The core receives storage, real-time and queue interfaces. Memory and Prisma implementations let the same services work with different infrastructure choices.

  2. Keep conversation rules in one place

    Sending and listing messages check conversation membership. Creation, editing, soft deletion and read receipts then feed the events broadcast to clients.

  3. Connect delivery channels through adapters

    Dedicated drivers handle web and mobile notifications. Express, AdonisJS and NestJS adapters expose the foundation to host applications; the calls module coordinates sessions and signalling.

05

Result

The repository contains services for conversations, messages, presence, notifications and call coordination, alongside integration examples. It is a shared foundation under development; each host application still supplies its storage and provider configuration.

06

Stack

  • Node.js
  • TypeScript
  • WebSocket
  • WebRTC
  • Redis
  • Push