Pusher alternative for developers by developers

Your WebSocket platform for Node JS and beyond

Developers deserve better than Pusher. That's why we created Streamthing, an easier and more cost-effective alternative. Whether you're creating a chat app or a real-time dashboard, we'll meet your needs.

See what you can build with Streamthing today.

Initiate connection

status STRING

user JSON

messages ARRAY

Status: GOOD

status STRING

messages ARRAY

The right balance of security and flexibility.

server.ts

import { createServerStream } from "streamthing";

// Initialize stream out of route handler for better performance
const stream = createServerStream({
  id: process.env.SERVER_ID,
  region: process.env.SERVER_REGION,
  password: process.env.SERVER_PASSWORD,
  channel: "main",
});

// Route handler
let request, response; // Sample request and response
const { event, message } = request.body;

const { user } = await auth(request);
if (!user) {
  return response.json({ error: "Unauthenticated" }, 401);
}

await stream.send(event, message);
return response.json({ message: "Success" }, 200);

client.tsx

import { createClientStream } from "streamthing";

const res = await fetch("/api/get-streamthing-token");
const data = await res.json();

const stream = createClientStream({
  region: process.env.SERVER_REGION,
  id: process.env.SERVER_ID,
  token: data.token,
});

stream.receive("event", (message) => {
  console.log(message);
});

// Close to avoid hanging connections
stream.disconnect();

Easily manage your servers all in one place.

DashboardDashboard

Worry about your apps,
not your pricing.

Hobby

The perfect plan for enthusiasts wishing to make small projects.

0

Includes:

Fast Servers
1k Concurrent Connections
100k Messages per day
15 KB Max message size
1 Server
Get started now

Startup

The perfect plan for small production ready apps.

9.99

Includes:

Fast Servers
10k Concurrent Connections
1 million Messages per day
15 KB Max message size
Unlimited Servers
Get started now

Premium

The perfect plan for those wishing to venture further.

19.99

Includes:

Fast Servers
50k Concurrent Connections
5 million Messages per day
15 KB Max message size
Unlimited Servers
Get started now