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

@myconsilium/sdk

v0.3.0

Published

TypeScript SDK for the Consilium AI Council Platform

Readme

@myconsilium/sdk

TypeScript SDK for the Consilium AI Council Platform.

The Consilium source repository is private as of April 2026. The SDK is publicly distributed via npm; the hosted API is at https://api.myconsilium.xyz. Bring your own LLM keys (OpenAI, Anthropic, Google, Groq, xAI, Moonshot, OpenRouter), or run without keys and Consilium falls back to a platform-hosted free-tier pool (Groq + OpenRouter) so debates keep running at zero cost.

Install

npm install @myconsilium/sdk

Quick Start

import { ConsiliumClient } from '@myconsilium/sdk';

const client = new ConsiliumClient({
  apiUrl: 'https://api.myconsilium.xyz',
  apiKey: 'your-api-key',
});

const result = await client.deliberate({
  topic: 'Should we migrate to microservices?',
  mode: 'council',
});

console.log(result.goldenPrompt);
console.log(result.confidenceScores);

Deliberation Modes

| Mode | Description | |------|-------------| | quick | Single round, fastest response | | council | Multi-round deliberation | | deep | Multi-round with sub-agent research | | blind | Names hidden until scored | | redteam | Adversarial red team assessment | | jury | Panel deliberation with voting | | market | Prediction market style confidence | | auto | Automatically selects best mode |

Red Team

const report = await client.redTeam({
  content: 'Our new authentication flow uses...',
  categories: ['injection', 'auth-bypass'],
});

console.log(report.overallScore);
console.log(report.vulnerabilityCount);

Blind Evaluation

const evaluation = await client.blindEval({
  topic: 'Explain quantum computing',
  responses: [responseA, responseB, responseC],
});

console.log(evaluation.rankings);
console.log(evaluation.scores);

Streaming

for await (const event of client.streamDeliberation({
  topic: 'Evaluate our security posture',
  mode: 'deep',
})) {
  switch (event.type) {
    case 'round_start':
      console.log(`Round ${event.round}`);
      break;
    case 'argument':
      console.log(`${event.model}: ${event.content}`);
      break;
    case 'result':
      console.log('Final:', event.data);
      break;
  }
}

Cost Estimation

const estimate = await client.estimateCost({
  topic: 'Complex analysis topic',
  mode: 'deep',
});

console.log(`Estimated: $${estimate.estimatedCost}`);
console.log(estimate.breakdown);

Health Check

const health = await client.healthCheck();
console.log(health.status);
console.log(health.services);

Configuration

const client = new ConsiliumClient({
  apiUrl: 'https://api.myconsilium.xyz',
  apiKey: 'your-api-key',
  timeout: 60_000,
  maxRetries: 3,
  retryDelay: 1_000,
});

Error Handling

import {
  ConsiliumError,
  AuthenticationError,
  TimeoutError,
  ServerError,
  RateLimitError,
} from '@myconsilium/sdk';

try {
  await client.deliberate({ topic: '...', mode: 'council' });
} catch (err) {
  if (err instanceof RateLimitError) {
    console.log(`Retry after ${err.retryAfter}s`);
  } else if (err instanceof AuthenticationError) {
    console.log('Invalid API key');
  } else if (err instanceof TimeoutError) {
    console.log('Request timed out');
  } else if (err instanceof ServerError) {
    console.log(`Server error: ${err.statusCode}`);
  }
}

License

Proprietary — © Consilium. All rights reserved. The TypeScript SDK is distributed publicly via npm; the source repository is private. Contact [email protected] for source access or self-hosting.