npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cccc-sdk

v0.4.4

Published

Client SDK for the CCCC daemon (IPC v1)

Readme

CCCC TypeScript SDK

TypeScript/Node.js client for the CCCC daemon (IPC v1).

Relationship to CCCC core

  • CCCC core repository: https://github.com/ChesterRa/cccc
  • cccc core provides daemon/web/CLI and owns runtime state.
  • cccc-sdk provides Node.js client APIs that call the daemon over IPC.

Installation

npm install cccc-sdk

Compatibility is determined by Daemon IPC v1 contracts and operation probing, not by strict package-version matching.

Quick start

import { CCCCClient } from 'cccc-sdk';

async function main() {
  const client = await CCCCClient.create();

  await client.assertCompatible({
    requireIpcV: 1,
    requireCapabilities: { events_stream: true },
    requireOps: ['groups', 'send', 'reply', 'tracked_send', 'context_sync'],
  });

  const group = await client.groupCreate({ title: 'TS demo' });
  const groupId = group.group.group_id;

  await client.send({
    groupId,
    text: 'Please check this and reply.',
    priority: 'attention',
    replyRequired: true,
  });
}

main().catch(console.error);

Message semantics

  • priority: 'normal' | 'attention'
  • replyRequired: boolean (maps to daemon reply_required)

Supported in:

  • send(options)
  • reply(options)
  • sendCrossGroup(options)
  • trackedSend(options)

Workflow helpers

Current CCCC workflow contracts are exposed as focused wrappers over daemon IPC:

await client.trackedSend({
  groupId,
  title: 'Update SDK',
  text: 'Please handle the compatibility update.',
  outcome: 'Tests and live compat pass',
  assignee: 'peer-impl',
});

await client.coordinationBriefUpdate({
  groupId,
  objective: 'Ship SDK updates',
  currentFocus: 'context v3 compatibility',
});

await client.taskMove({ groupId, taskId: 't_xxx', status: 'done' });
await client.agentStateUpdate({ groupId, actorId: 'peer-impl', focus: 'testing' });
await client.capabilitySearch({ groupId, query: 'docs' });
await client.memoryHealth({ groupId });
const profile = await client.memoryProfileGet({
  groupId,
  actorId: 'dingtalk-worker',
  tags: ['dingtalk-profile', 'reply-style'],
});
const hits = await client.memorySearch({
  groupId,
  actorId: 'dingtalk-worker',
  query: 'How should I reply to this message?',
  limit: 5,
  target: 'memory',
});
await client.memoryWrite({
  groupId,
  actorId: 'dingtalk-worker',
  target: 'daily',
  content: 'user: ...\nassistant: ...',
  tags: ['dingtalk-auto-reply'],
  sourceRefs: ['dingtalk:message:m1'],
  idempotencyKey: 'dingtalk-reply:m1',
});

Local memory helpers use daemon memory_* ops and are intended for fast local CCCC memory access. They do not depend on Group Space / NotebookLM bindings.

Automation semantics

groupAutomationManage is action-list based (canonical daemon shape):

await client.groupAutomationManage({
  groupId,
  actions: [
    {
      type: 'create_rule',
      rule: {
        id: 'standup',
        enabled: true,
        scope: 'group',
        to: ['@foreman'],
        trigger: { kind: 'interval', every_seconds: 900 },
        action: { kind: 'notify', snippet_ref: 'standup' },
      },
    },
  ],
});

Actor Profiles (global reusable runtime presets)

const client = await CCCCClient.create();

const upsert = await client.actorProfileUpsert({
  profile: {
    name: 'Codex PTY',
    runtime: 'codex',
    runner: 'pty',
    command: ['codex', 'exec'],
    submit: 'enter',
    env: { CODEX_MODEL: 'gpt-5' },
    capabilityDefaults: {
      autoloadCapabilities: ['pack:space'],
      defaultScope: 'actor',
    },
  },
});

const profile = upsert.profile as { id?: string } | undefined;
const profileId = String(profile?.id ?? '');

await client.actorAdd({
  groupId,
  actorId: 'reviewer',
  profileId,
});

await client.actorProfileSecretUpdate({
  profileId,
  set: { OPENAI_API_KEY: '...' },
});

Current high-value surfaces

const client = await CCCCClient.create();

const caps = await client.capabilityState({
  groupId,
  actorId: 'foreman',
});

const policy = await client.capabilityAllowlistGet();
const preview = await client.capabilityAllowlistValidate({
  mode: 'patch',
  patch: { defaults: { source_level: { skillsmp_remote: 'indexed' } } },
});

const space = await client.groupSpaceStatus({
  groupId,
});

await client.contextSync({
  groupId,
  by: 'user',
  ops: [
    { op: 'coordination.note.add', kind: 'decision', summary: 'Use the simpler path' },
  ],
});

If you need a daemon op that does not have a dedicated helper yet, you can always fall back to call() / callRaw().

Events stream

for await (const item of client.eventsStream({ groupId })) {
  if (item.t === 'event') {
    console.log(item.event.kind, item.event.id);
  }
}

Build and checks

npm ci
npm run typecheck
npm run build

Requirements

  • Node.js 18+
  • Running CCCC daemon

License

Apache-2.0