@lssm/module.community-intelligence
v2.0.1
Published
Governed, provider-neutral community analytics, coaching views, and Kaizen digests.
Readme
@lssm/module.community-intelligence
Provider-neutral community intelligence for multiple Discord guilds or other community sources. It converts normalized, tenant-scoped events into per-source and cross-source recurring-question, pain/friction, response, moderation, stable-user journey, coaching, and weekly Kaizen projections.
The module is observation-only. Raw provider ingestion, credentials, storage, moderation actions, and LLM SDKs stay behind host-owned ports. Before optional external analysis, content is redacted and actors are pseudonymized. The analysis boundary accepts only EU-resident, training-disabled providers; an unavailable or non-compliant provider produces the deterministic local fallback.
Individual staff scorecards require community.staff-scorecards.read authority.
Default projections are team-level and deliberately contain no leaderboard,
rank, employment recommendation, or automated HR decision fields.
import { CommunityIntelligenceService } from "@lssm/module.community-intelligence";
const service = new CommunityIntelligenceService();
const projection = await service.analyze({
scope: {
tenantId: "tenant-1",
workspaceId: "workspace-1",
trustZone: "managed-community",
},
sources,
events,
identityLinks,
authority: { capabilities: [] },
window: { from: "2026-08-10T00:00:00.000Z", to: "2026-08-17T00:00:00.000Z" },
});Hosts remain responsible for durable encrypted evidence, retention enforcement, row-level security, and resolving evidence references under authorization.
