Self-hosted multi-platform broadcast newsroom for activist collectives: publishing pipeline with group approval and DST-proof scheduling, TweetDeck-style column wall with hostile-content-safe rendering, live control room with Auto Director, bridged chat governance with polls and quorum, distributed sandboxed transcode workers, encrypted content-addressed archive, monthly analytics. MIT licensed. See README.md and docs/.
18 lines
1 KiB
TypeScript
18 lines
1 KiB
TypeScript
import type { CredentialAccessor } from "@tactical-media-broadcast-hub/connector-sdk";
|
|
import { connectionRegistry } from "../connections/connector-registry.js";
|
|
import { oauthFetch } from "../connections/oauth-fetch.js";
|
|
import { createMockSocialConnector, createMockSocialState } from "../../../../packages/connector-mock-social/src/index.js";
|
|
|
|
/** Composition boundary: the demo connector uses deterministic public data, no OAuth. */
|
|
export function feedRegistry(credentials: CredentialAccessor) {
|
|
const registry = connectionRegistry(credentials, oauthFetch);
|
|
const state = createMockSocialState();
|
|
const now = Date.now();
|
|
state.feed = Array.from({ length: 12 }, (_, index) => ({
|
|
id: `demo-feed-${index}`, remoteId: `demo-feed-${index}`, provider: "mock-social",
|
|
authorHandle: "mock@social", text: `Mock Social feed item ${index + 1}: ready for Streams.`,
|
|
mediaUrls: [], createdAt: new Date(now - index * 60_000), metrics: { likes: index },
|
|
}));
|
|
registry.register(createMockSocialConnector(state));
|
|
return registry;
|
|
}
|