@linchkit/cap-chatter
v1.0.0
Published
Record timeline capability for LinchKit — provides messages, audit logging, and GraphQL integration for entity-level discussions and activity tracking.
Readme
@linchkit/cap-chatter
Record timeline capability for LinchKit — provides messages, audit logging, and GraphQL integration for entity-level discussions and activity tracking.
Installation
bun add @linchkit/cap-chatterPeer Dependencies
@linchkit/core^0.1.0drizzle-orm^0.45.1graphql^16.13.1
Usage
Register the Capability
import { createCapChatter } from "@linchkit/cap-chatter";
const chatter = createCapChatter({
// options
});Auto-log Events
import { createChatterAutoLog } from "@linchkit/cap-chatter";
const autoLog = createChatterAutoLog();Service Layer
import { DrizzleChatterService, InMemoryChatterService } from "@linchkit/cap-chatter";
// With PostgreSQL
const service = new DrizzleChatterService(db);
// Without database
const service = new InMemoryChatterService();