Pusher alternative for developer by developers

Your WebSocket platform for Node JS and beyond


Streamthing offers lightning fast and effortlessly configurable WebSocket servers tailored to meet your requirements, ensuring swift deployment and enhanced realtime features for your application.


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({
  channel: "main",
  id: env.SERVER_ID,
  region: env.SERVER_REGION,
  password: env.SERVER_PASSWORD,
});

// 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 stream = await createClientStream(env.SERVER_REGION);
const res = await fetch("/api/get-token?id=" + stream.id);
const { token } = await res.json();

// Authenticate stream
stream.authenticate(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

No credit card required

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.

14.99

Or £150 a year

Includes:

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

Premium

The perfect plan for those wishing to venture further.

39.99

Or £400 a year

Includes:

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

Enterprise

For making massive real-world ready applications.

99.99

Or £1000 a year

Includes:

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