Skip to content
Back to skills

Streaming

ASecurity

Response streaming configuration and real-time output

  • 2,496 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added February 10, 2026
toolstypescriptapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add alsk1992/CloddsBot --skill streaming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Streaming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Streaming
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/alsk1992-streaming/badge)](https://www.skillsdirectory.com/skills/alsk1992-streaming)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: streaming
description: "Response streaming configuration and real-time output"
emoji: "πŸ“‘"
---

# Streaming - Complete API Reference

Configure response streaming, typing indicators, and real-time message delivery.

---

## Chat Commands

### View Settings

```
/streaming                                  Show current settings
/streaming status                           Streaming status
```

### Configure Streaming

```
/streaming enable                           Enable streaming
/streaming disable                          Disable streaming
/streaming chunk-size 50                    Set chunk size (chars)
/streaming delay 100                        Set delay between chunks (ms)
```

### Typing Indicators

```
/streaming typing on                        Enable typing indicators
/streaming typing off                       Disable typing indicators
/streaming typing duration 3000             Typing duration (ms)
```

### Platform Settings

```
/streaming platforms                        Show platform limits
/streaming platform telegram chunk 100      Set per-platform
```

---

## TypeScript API Reference

### Create Streaming Config

```typescript
import { createStreamingConfig } from 'clodds/streaming';

const streaming = createStreamingConfig({
  // Enable streaming
  enabled: true,

  // Chunk settings
  minChunkSize: 20,    // Min chars per chunk
  maxChunkSize: 200,   // Max chars per chunk
  chunkDelayMs: 50,    // Delay between chunks

  // Typing indicators
  showTyping: true,
  typingDurationMs: 3000,

  // Platform-specific limits
  platformLimits: {
    telegram: { maxMessageLength: 4096, maxChunkSize: 100 },
    discord: { maxMessageLength: 2000, maxChunkSize: 150 },
    slack: { maxMessageLength: 40000, maxChunkSize: 200 },
  },
});
```

### Enable/Disable

```typescript
// Enable streaming
streaming.enable();

// Disable streaming
streaming.disable();

// Check status
const enabled = streaming.isEnabled();
```

### Configure Chunks

```typescript
// Set chunk size
streaming.setChunkSize(100);

// Set delay
streaming.setChunkDelay(75);

// Get current settings
const settings = streaming.getSettings();
console.log(`Chunk size: ${settings.chunkSize}`);
console.log(`Delay: ${settings.chunkDelayMs}ms`);
```

### Platform Settings

```typescript
// Set platform-specific limit
streaming.setPlatformLimit('telegram', {
  maxMessageLength: 4096,
  maxChunkSize: 80,
});

// Get platform limits
const limits = streaming.getPlatformLimits();
```

### Typing Indicators

```typescript
// Enable typing
streaming.enableTyping();

// Disable typing
streaming.disableTyping();

// Set duration
streaming.setTypingDuration(5000);
```

---

## Platform Limits

| Platform | Max Message | Recommended Chunk |
|----------|-------------|-------------------|
| Telegram | 4,096 chars | 80-100 |
| Discord | 2,000 chars | 100-150 |
| Slack | 40,000 chars | 150-200 |
| WhatsApp | 65,536 chars | 100-150 |
| WebChat | Unlimited | 150-200 |

---

## Best Practices

1. **Smaller chunks for mobile** β€” Better UX on slow connections
2. **Adjust delay for readability** β€” 50-100ms feels natural
3. **Disable for short responses** β€” Don't stream "OK"
4. **Monitor performance** β€” Streaming adds overhead

Files in this skill

  • SKILL.md3.2 KB
  • index.ts5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.