P
patuih
Developer Hub

Documentation

Find API specifications, quickstart templates, framework plugins, and code playgrounds to coordinate realtime events.

Quickstart

Configure Patuih and publish your first realtime event in less than 2 minutes.

Welcome to the Patuih developer platform. In this guide, you will learn how to integrate our lightweight, sub-5ms pub/sub gateway into your services and clients.

Step 1: Install client package

Instantly connect backend databases, microservices, or client interfaces.

npm install @patuih/client

Step 2: Initialize & Publish

Instantiate a client and stream events with simple payloads.

import { Patuih } from "@patuih/client"
const patuih = new Patuih("pt_live_9f8a...")
 
await patuih.publish("global.feed", "chat.message", {
  text: "Hello World!"
})

Live API Playground

Test your pipelines directly below. Type event arguments and trigger broadcasts.

Edge Console Logs
// Ready to test event pipelines.
// Type event type and payload above, then click Send Event.