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

@sensedealai/cuecue

v1.0.9

Published

TypeScript SDK for CueCue's AI-powered multi-agent research system

Readme

CueCue SDK

Conduct deep financial research using CueCue's AI-powered multi-agent system

CueCue SDK is a TypeScript library and CLI tool that enables developers and researchers to leverage CueCue's AI-powered multi-agent system for comprehensive financial research and analysis.

Features

  • 🤖 AI-Powered Research - Leverage multi-agent AI system for in-depth research
  • 📡 Real-time Streaming - SSE-based streaming for live progress updates
  • 📋 Task Tracking - Monitor individual research tasks as they complete
  • 📝 Report Generation - Automatically generate comprehensive research reports
  • 🔄 Conversation Continuity - Continue existing research conversations
  • 📋 Templates - Use predefined research frameworks
  • 🎨 Style Mimicry - Mimic writing styles from any URL

Installation

npm install @sensedealai/cuecue

CLI Usage

The CLI binary is cue.

Basic Usage

# Set your API key (recommended)
export CUECUE_API_KEY=your_api_key

# Run a research query
cue research "Tesla Q3 2024 revenue analysis"

# Short alias
cue r "Tesla Q3 2024 revenue analysis"

API Key Configuration

You can store your API key persistently using the config command:

cue config set api_key YOUR_KEY

Command Options

Global Options

| Option | Description | |--------|-------------| | --api-key KEY | CueCue API key (defaults to CUECUE_API_KEY env var) | | --base-url URL | CueCue API base URL (defaults to https://cuecue.cn) |

cue research <query> Options

| Option | Description | |--------|-------------| | --conversation-id ID | Continue an existing conversation | | --template-id ID | Use a predefined research framework | | --mimic-url URL | Mimic writing style from a URL | | --output, -o FILE | Save report to file (markdown format) | | --verbose, -v | Enable verbose logging | | --foreground | Run in foreground (default: background) | | --openclaw-channel CHANNEL | OpenClaw channel name for notifications | | --openclaw-channel-id ID | OpenClaw channel ID for notifications |

cue config <subcommand> Options

| Subcommand | Description | |------------|-------------| | cue config set <key> <value> | Save a config value | | cue config get [key] | Get a config value, or list all if no key given |

Examples

# Specify API key directly
cue research "Tesla Q3 2024 revenue" --api-key YOUR_KEY

# Save API key to config
cue config set api_key YOUR_KEY

# Save report to file
cue research "BYD financial analysis" --output report.md

# Continue existing conversation
cue research "Further analysis" --conversation-id CONV_ID

# Use a template
cue research "Company analysis" --template-id TEMPLATE_ID

# Mimic writing style from a URL
cue research "Market analysis" --mimic-url https://example.com/article

# Run in foreground (blocking)
cue research "Analysis topic" --foreground

# Send OpenClaw notification when done
cue research "Analysis topic" --openclaw-channel feishu --openclaw-channel-id YOUR_CHAT_ID

# Enable verbose logging
cue research "Analysis topic" --verbose

Library Usage

Import and Initialize

import { CueCueDeepResearch } from '@sensedealai/cuecue';

// Initialize with your API key
const client = new CueCueDeepResearch('your-api-key');

Basic Research

import { CueCueDeepResearch } from '@sensedealai/cuecue';

const client = new CueCueDeepResearch('your-api-key');

const result = await client.research('Tesla Q3 2024 revenue analysis');

console.log(`Conversation ID: ${result.conversationId}`);
console.log(`Report URL: ${result.reportUrl}`);
console.log(`Report: ${result.report}`);

Advanced Options

const result = await client.research('Company analysis', {
  // Continue existing conversation
  conversationId: 'existing-conversation-id',
  
  // Use a predefined template
  templateId: 'template-id',
  
  // Mimic writing style from URL
  mimicUrl: 'https://example.com/article',
  
  // Enable verbose logging
  verbose: true,
});

Using Custom Base URL

const client = new CueCueDeepResearch('your-api-key', 'https://custom-api.example.com');

API Reference

CueCueDeepResearch

Constructor

constructor(apiKey: string, baseUrl?: string)
  • apiKey - Your CueCue API key
  • baseUrl - Optional custom base URL (defaults to https://cuecue.cn)

Methods

research(query: string, options?: ResearchOptions): Promise<ResearchResult>

Execute a deep research query.

  • query - The research question or topic
  • options - Optional research parameters (see ResearchOptions)
  • Returns: Promise<ResearchResult>

Type Definitions

ResearchOptions

interface ResearchOptions {
  conversationId?: string;  // Continue existing conversation
  templateId?: string;      // Template ID for predefined framework
  mimicUrl?: string;        // URL to mimic writing style
  verbose?: boolean;        // Enable verbose logging
}

ResearchResult

interface ResearchResult {
  conversationId: string;  // Unique conversation identifier
  chatId: string;          // Chat session identifier
  tasks: string[];         // List of research tasks completed
  report: string;          // Generated research report
  reportUrl: string;       // URL to view report online
}

SSE Events

The library also exports types for SSE events:

import type {
  SSEEvent,
  RequestPayload,
  AgentStartEvent,
  AgentEndEvent,
  MessageEvent,
  FinalSessionStateEvent,
} from '@sensedealai/cuecue';

Getting an API Key

  1. Log in to CueCue at https://cuecue.cn
  2. Go to Settings → API Keys
  3. Generate a new API key

Building from Source

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run CLI
node dist/cli.js research "your research query"

License

Apache 2.0 License - see LICENSE file for details.

Keywords

  • research
  • financial-analysis
  • ai-agents
  • report-generation
  • data-analysis