Durable Streams Plugin
The @codesordinatestudio/radiant-plugin-durable-streams plugin provides a durable stream and queue backend for Radiant, backed by ElectricSQL or standard data sync layers.
Installation
bun add @codesordinatestudio/radiant-plugin-durable-streams
Usage
Configure the stream adapter in your radiant.config.ts:
import { radiant } from "@codesordinatestudio/radiant-bun";
import { durableStreams } from "@codesordinatestudio/radiant-plugin-durable-streams";
const app = radiant({
// Attach durable streams adapter to the queue/stream manager
streams: durableStreams({
url: "http://localhost:5133", // Electric stream URL
token: process.env.STREAM_TOKEN, // Optional auth token
}),
});