
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@peac/capture-node
Advanced tools
Node.js durable storage for PEAC capture pipeline (filesystem spool store and dedupe index)
Node.js durable storage for the PEAC capture pipeline. Filesystem-backed spool store and dedupe index.
pnpm add @peac/capture-node
@peac/capture-node provides filesystem-backed implementations of the SpoolStore and DedupeIndex interfaces from @peac/capture-core. It handles durable JSONL spool files with fsync-based commit semantics, lockfile-based single-writer guards, corruption detection with read-only fallback, and hard-cap size limits.
import { createFsSpoolStore, createFsDedupeIndex } from '@peac/capture-node';
import { createCaptureSession, createHasher } from '@peac/capture-core';
const store = await createFsSpoolStore({
filePath: '/var/peac/spool.jsonl',
autoCommitIntervalMs: 5000,
});
const dedupe = await createFsDedupeIndex({
filePath: '/var/peac/dedupe.idx',
});
const session = createCaptureSession({
store,
dedupe,
hasher: createHasher(),
});
import { getFsSpoolDiagnostics } from '@peac/capture-node';
const diag = getFsSpoolDiagnostics(store);
console.log(diag.mode); // 'active' or 'read_only'
console.log(diag.entryCount, diag.fileBytes);
import { acquireLock } from '@peac/capture-node';
const lock = await acquireLock('/var/peac/spool.jsonl.lock', {
allowStaleLockBreak: true,
});
// ... perform exclusive work ...
await lock.release();
@peac/capture-core: Core capture pipeline types and session orchestration@peac/schema (Layer 1): Interaction evidence schemas@peac/mcp-server (Layer 5): MCP tool server that uses capture for evidence recordingIf you are building an AI agent or MCP server that needs evidence receipts:
@peac/mcp-server for a ready-to-use MCP tool server@peac/protocol for programmatic receipt issuance and verificationApache-2.0
PEAC Protocol is an open source project stewarded by Originary and community contributors.
FAQs
Node.js durable storage for PEAC capture pipeline (filesystem spool store and dedupe index)
The npm package @peac/capture-node receives a total of 51 weekly downloads. As such, @peac/capture-node popularity was classified as not popular.
We found that @peac/capture-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.