← All @molecule/* packages · App templates
@molecule/api-activity-consoleProvider bond · activity · API (Node) · v1.0.1 · Apache-2.0
Console activity sink for molecule.dev
npm install @molecule/api-activity-consolenpm · Source on GitHub · Implements @molecule/api-activity
@molecule/api-activity-console is a provider bond on the API (Node) side: it implements the activity core interface (@molecule/api-activity) with a concrete vendor or library behind it.
Your code calls the core; you wire this provider once at startup. Swapping vendors later is one line in that wiring, not a rewrite.
import { setSink } from '@molecule/api-activity'
import { provider } from '@molecule/api-activity-console'
setSink(provider)Works with: @molecule/api-activity, @molecule/api-logger
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Console activity sink for molecule.dev.
Logs captured activity events via @molecule/api-logger. The default sink
for standalone scaffolded apps.
import { setSink } from '@molecule/api-activity'
import { provider } from '@molecule/api-activity-console'
setSink(provider)
provider
npm install @molecule/api-activity-console @molecule/api-activity @molecule/api-logger
createConsoleSink()Creates a console activity sink that logs each event via the bonded logger.
function createConsoleSink(): ActivitySink
Returns: An {@link ActivitySink} that logs events and never throws.
providerDefault console activity sink instance.
const provider: ActivitySink
Implements @molecule/api-activity interface.
Setup function to register this provider with the core interface:
import { setSink } from '@molecule/api-activity'
import { provider } from '@molecule/api-activity-console'
export function setupActivityConsole(): void {
setSink(provider)
}
Peer dependencies:
@molecule/api-activity ^1.0.1@molecule/api-logger ^1.0.1@molecule/api-activity@molecule/api-logger