Application Sync

Applications

Real-time state between your services and clients.

Connect backends, frontends, devices, and workers into one live ecosystem. Publish versioned state over HTTP and receive matching updates instantly — the same foundation as Humans and AI services.

Why BigState?

Everything you need to build real-time applications without the complexity

Latency

ms latency

📈

Throughput

High-volume concurrent publishers and subscribers.

🛡️

Explicit Access Control

Use principals and policies to control which identities can perform actions on matching resources.

📦

Inline and Binary States

Store JSON, numbers, strings, and Base64 data inline, or binary inlined content.

How It Works

Three simple steps to real-time data synchronization

1

Publish

Your backend, device, or service writes the latest object state through the HTTP API.

await httpClient.stateSet(OBJECT_NAME, { value: data });
2

Route

BigState stores a versioned state row and matches the object against configured delivery channels.

// Automatic routing via Delivery
3

Deliver

Configured delivery channels send matching state updates to their consumers.

// Delivery routes matching updates

Simple & Powerful API

Get started with just a few lines of code

example.js
import { BigStateHttpClient, BigStateWsDeliveryClient } from 'bigstate.client.javascript';

const httpClient = new BigStateHttpClient({
	baseUrl: 'https://api.bigstate.dev',
	apiKey: 'YOUR_API_KEY',
});

const wsClient = new BigStateWsDeliveryClient({
	baseUrl: 'https://ws.delivery.bigstate.dev',
	apiKey: 'YOUR_API_KEY',
});
example.js
const OWNER = 'YOUR_OWNER';
const LOCATION_OBJECT = `user:location@${OWNER}`;

await httpClient.objectCreate(LOCATION_OBJECT, {
	type: 2,
	ttl: 100000,
	validity: 60,
	versionDeep: null,
	info: {
		name: 'User Location',
		desc: 'Real-time user geolocation',
		example: { lat: 40.7128, lng: -74.0060 },
	},
});

await httpClient.stateSet(LOCATION_OBJECT, {
	at: new Date().toISOString(),
	value: { lat: 40.7128, lng: -74.0060 },
});
example.js
import { NotificationType } from 'bigstate.client.javascript';

const DELIVERY_WS = 'my-delivery';

await httpClient.deliveryCreate(DELIVERY_WS, {
	name: 'Location updates',
	objects: [LOCATION_OBJECT],
	type: 1,
});

const handleMessage = (message) => {
	if (message.type !== NotificationType.Message) return;
	console.log('New state:', message.data.state);
};

wsClient.setDeliveries([DELIVERY_WS]);
wsClient.setMessageHandlers([handleMessage]);

Built for Any Use Case

From simple dashboards to complex distributed systems

Real-Time User Experiences

Build responsive applications that sync instantly. Connect frontend interfaces to backend states for live collaboration, chat, dashboards — everything updates in real-time without lag.

🤖

AI-Powered Intelligence

Feed your AI with live data. Use BigState as a data source for analytics, training, and autonomous decision-making. Let AI agents act on real-time insights.

📡

IoT & Connected Devices

Manage thousands of connected devices. Stream sensor data, device states, and commands in real-time across your entire infrastructure.

📦

Instant Content Distribution

Publish once, distribute everywhere. Push digital assets, documents, and media to all applications simultaneously with zero latency.

Ready to Build Real-Time Apps?

Start building with BigState today. Our comprehensive documentation and tutorials will help you get up and running in minutes.