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

@presentations-ai/cloudy-runtime

v0.2.2

Published

Create presentations with natural language using Claude and the Presentations.AI MCP server

Readme

@presentations-ai/cloudy-runtime

Build a Claude-powered chatbot that creates presentations. The user types a natural-language message; the runtime returns a presentation URL. No manual tool routing, no async polling logic — just one chat() call.

npm version npm downloads license

When to use this

You're building something that takes natural language as input — a Slack bot, a chat product, an AI agent — and you want "create a presentation" to be one of its capabilities.

A user types "make me a 12-slide pitch deck for an AI healthcare startup, targeting Series B VCs." You forward that message to cloudy.chat(). Behind the scenes Claude figures out which Presentations.AI tool to use, calls it, and returns a clean response with the deck URL.

If your code already knows the exact topic, slide count, and format — no LLM needed in the middle — use @presentations-ai/api-client instead.

Installation

npm install @presentations-ai/cloudy-runtime

You'll need two API keys: an Anthropic API key for Claude, and a Presentations.AI API key for the MCP server.

Quick start

import { CloudyRuntime } from '@presentations-ai/cloudy-runtime';

const cloudy = new CloudyRuntime({
  anthropicApiKey: process.env.ANTHROPIC_API_KEY!,
});

const response = await cloudy.chat(
  'Create a 12-slide investor pitch deck for an AI-powered design platform',
  process.env.PRESENTATIONS_AI_API_KEY!,
);

console.log(response.text);            // What Cloudy said back
console.log(response.presentationUrl); // The deck — share this URL
console.log(response.documentId);      // For follow-up edits

That's the happy path. The rest of this README covers conversation history, configuration, the response shape, and error handling.

How it works

The runtime uses Anthropic's MCP Connector to give Claude access to the Presentations.AI MCP server and its 9 tools. Your message goes to Claude → Claude picks the right tool → the MCP server creates the presentation → you get a unified response.

You don't manage tool selection, async polling, or response parsing — the runtime handles all of that. You only see the final result.

Multi-turn conversations

For follow-ups like "add a slide comparing our timeline against competitors," pass the prior conversation back in:

const apiKey = process.env.PRESENTATIONS_AI_API_KEY!;

const turn1 = await cloudy.chat(
  'Create a product roadmap presentation for Q1 2025',
  apiKey,
);

const turn2 = await cloudy.chat(
  'Add a slide comparing our timeline against competitors',
  apiKey,
  [
    { role: 'user', content: 'Create a product roadmap presentation for Q1 2025' },
    { role: 'assistant', content: turn1.text },
  ],
);

Cloudy will reuse the document ID from turn 1 and edit the existing deck rather than creating a new one.

Configuration

const cloudy = new CloudyRuntime({
  anthropicApiKey: 'sk-ant-...',          // Required
  mcpServerUrl: '...',                    // Default: https://api.presentations.ai/mcp
  model: 'claude-sonnet-4-5-20250929',    // Default Claude model
  maxTokens: 4096,                        // Max tokens in Claude's response
  maxContinuations: 5,                    // How many pause_turn continuations to follow
  systemPrompt: '...',                    // Override Cloudy's persona/instructions
});

Most users only need anthropicApiKey. The rest have sensible defaults.

Response shape

interface CloudyResponse {
  text: string;                // Cloudy's natural-language reply
  presentationUrl?: string;    // The deck URL (when one was created)
  documentId?: number;         // Document ID (use this for follow-up edits)
  animatedUrl?: string;        // Animated preview (some export types)
  jobId?: string;              // Async job ID (when the tool fired async)
  toolCalls: CloudyToolCall[]; // Every MCP tool called this turn
  stopReason: string;          // Why the turn ended
  usage: { inputTokens: number; outputTokens: number };
}

presentationUrl and documentId are present when a presentation was created or edited. They're undefined for purely conversational turns ("hi", "what can you do?", etc.).

Error handling

Failures throw a StructuredError from @presentations-ai/shared:

import { StructuredError } from '@presentations-ai/shared';

try {
  await cloudy.chat('Create a presentation', apiKey);
} catch (error) {
  if (error instanceof StructuredError) {
    error.code;        // e.g. "MCP_TOOL_EXECUTION_FAILED"
    error.message;     // e.g. "Anthropic API call failed: 401 Unauthorized"
    error.remediation; // e.g. "Check your Anthropic API key..."
  }
}

Each error carries a remediation field with an actionable next step — show this to your user when appropriate.

Requirements

License

MIT