Logo di Catalyst Datastreams

Catalyst Datastreams

Organizzazione
catalystbyzoho
catalyst-datastreams

Catalyst Data Streams — real-time publish/subscribe channels over WebSocket. Publish from a function with publishData / publish_data, issue a token pair with getTokenPair / get_token_pair, subscribe with DataStreamsWebSocket / ZCDataStreamsWebSocket (Node.js, browser, Java, Python), sendAck, live/earliest/resume subscribe types, 48-hour retention, User Roles vs Custom Logic access control. Trigger on 'Data Streams', 'datastreams', 'real-time channel', 'live updates', 'pub/sub', 'WebSocket subscriber', 'token pair', 'wss-id', 'app_user_id is missing', 'Invalid access control source', 'Authentication failed 3000', '@zcatalyst/datastreams', or 'zcatalyst_sdk.datastreams'.

Panoramica

Pubblicato dacatalystbyzoho
Repositoryagent-skills
Nome della skillcatalyst-datastreams
Stelle
70
Fork
17
File inclusi
4
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 4

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da catalystbyzoho su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Catalyst Datastreams in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/catalystbyzoho/agent-skills/tree/main/skills/catalyst-datastreams
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/catalystbyzoho/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/catalyst-datastreams .claude/skills/catalyst-datastreams
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Catalyst Datastreams in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Catalyst Datastreams non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Catalyst Datastreams non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

How It Works

  1. Channels and access control are console-only. Create the channel and choose its access control in Console → Cloud Scale → Data Streams; no SDK, REST, or MCP tool creates channels. Ask the user for the channel ID and its access control type, or list channels with getAllChannels() (control_type 0 = User Roles, 1 = Custom Logic). Load references/datastreams-basics.md for concepts, the token rules, subscribe types, acknowledgement, and the REST API.

  2. Pick the token identifier from the access control — it is not interchangeable.

    • User Roles → userId = an app user's ID from Catalyst Authentication. A console admin's user ID is rejected; connectionName fails with "Mandatory parameter app_user_id is missing."
    • Custom Logic → connectionName, and the token must be generated inside the Advanced I/O function selected as the channel's access control. That function is the token endpoint: it runs your check, then calls getTokenPair. Catalyst never calls it on its own. From any other function or REST: "Invalid access control source!". User-ID tokens on these channels are issued but the WebSocket rejects them (3000).
  3. Server code (publish, token pair, channel reads) — load the runtime reference.

    • Node.js / JavaScript → references/datastreams-javascript-basics.md. Initialize with the app: new DataStreams(await zcAuth.init(req)). Advanced I/O handlers get Node's raw req/res: no req.body, res.status(), or res.json().
    • Python → references/datastreams-python-basics.md. Requires zcatalyst-sdk 1.5.0+ (Python 3.10+). app = zcatalyst_sdk.initialize(req=request), then app.datastreams() (plural). Pass get_token_pair a string channel ID and a keyword user_id= / connection_name=; the result's keys are hyphenated (token["wss-id"]). The subscriber does nothing until connect().
    • Java → references/datastreams-java-basics.md. Dependency is com.zoho.catalyst:java-sdk (2.5.0+) from https://maven.zohodl.com; no datastreams artifact exists.
    • publishData, getAllChannels, getChannelDetails and getLiveCount are admin methods: server only, never in browser or mobile code. getTokenPair also exists in the browser SDK, but a Custom Logic token must come from the configured function.
  4. Subscriber code — read the token correctly and always acknowledge. The token pair's keys are hyphenated: pass token['wss-id'] as zuid, plus token.url and token.key. Subscribe only after the open event. Call sendAck() after every message, or the next message is never delivered. Messages carry data (always a string) and streamingId (plus url/method on API-operation messages). To reconnect, release the old session (old token → unsubscribe()), take a fresh token, subscribe('0'), and reload state from your own store; resuming a dropped session with '-2' redelivers missed messages twice and replays the 48-hour retention. Unsubscribe before every deliberate close; the error event with code 1000 that follows your own unsubscribe() is expected. In Node, getLiveCount() returns { status, data: { connections } }. Java: subscribe() throws the checked ZCDataStreamException, and outside a Catalyst function create the client with new ZCDataStreamsWebSocket(config), not ZCDatastream.getInstance().

  5. Verify end to end before reporting success. Open a subscriber, check getLiveCount() shows it, publish a test message, and confirm the subscriber received it. For anything the references do not cover, fetch the page under https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/ as Markdown (<page-url>/index.md), and prefer the references where they disagree.

Security Checklist

  • publishData and the channel-read methods are admin operations: run them only in a Catalyst function, never in a browser or mobile app.
  • Protect the token endpoint. Anyone who can call it can subscribe to the channel, so authenticate the caller before issuing a token.
  • On Custom Logic channels, the configured function is the only gatekeeper: put the real validation there before calling getTokenPair.
  • Do not log or return the token key anywhere except to the client that asked for it.

Triggers

Use this skill for: "Data Streams", "Catalyst Data Streams", "datastreams", "real-time channel", "live updates", "push updates to the browser", "pub/sub", "publish data", publishData, getTokenPair, "token pair", "wss-id", DataStreamsWebSocket, ZCDataStreamsWebSocket, ZCDatastream, "WebSocket subscriber", sendAck, "subscribe type", "resume from last message", "live count", getLiveCount, "channel access control", "User Roles channel", "Custom Logic channel", "app_user_id is missing", "Invalid access control source", "Authentication failed 3000", "reconnect", "duplicate messages after reconnect", "DUPLICATE_VALUE", @zcatalyst/datastreams, zcatalyst_sdk, get_token_pair, publish_data, send_ack, or "Data Streams Python".

References

ReferenceLoad when the query is about…
references/datastreams-basics.mdConcepts, channels, access control (User Roles vs Custom Logic), which token identifier to use, token pair shape, subscribe types, acknowledgement, retention, message fields, REST API endpoints and scopes
references/datastreams-javascript-basics.mdNode.js functions (init, publish, token endpoint, Custom Logic function, channel reads), Node and browser subscribers, package versions
references/datastreams-python-basics.mdPython functions and subscribers: zcatalyst-sdk 1.5.0+, app.datastreams(), get_token_pair argument rules, DataStreamsWebSocket with connect() and set_on_* callbacks, deploying Python functions
references/datastreams-java-basics.mdJava functions and subscribers: Maven setup, ZCDatastream, ZCDataStreamsWebSocket, checked exceptions, running outside Catalyst

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Catalyst Datastreams?

Catalyst Data Streams — real-time publish/subscribe channels over WebSocket. Publish from a function with publishData / publish_data, issue a token pair with getTokenPair / get_token_pair, subscribe with DataStreamsWebSocket / ZCDataStreamsWebSocket (Node.js, browser, Java, Python), sendAck, live/earliest/resume subscribe types, 48-hour retention, User Roles vs Custom Logic access control. Trigger on 'Data Streams', 'datastreams', 'real-time channel', 'live updates', 'pub/sub', 'WebSocket subscriber', 'token pair', 'wss-id', 'app_user_id is missing', 'Invalid access control source', 'Authen...

Perché usare Catalyst Datastreams su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Catalyst Datastreams è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Catalyst Datastreams in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/catalystbyzoho/agent-skills/tree/main/skills/catalyst-datastreams. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Catalyst Datastreams?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Catalyst Datastreams?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Catalyst Datastreams: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Catalyst Datastreams è gratuita?

Sì. È pubblicata su GitHub da catalystbyzoho con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇