byjg

Yaj Sse — Development skill for Claude Code

Development community

A lightweigth Yaj Plugin for Server-Sent Events (SSE) EventSource Polyfill.

How to install Yaj Sse

This entry records only its repository, not the path inside it, so there is no exact command to give. Open byjg/yaj-sse and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Yaj Sse does

A lightweigth Yaj Plugin for Server-Sent Events (SSE) EventSource Polyfill.

Alternatives in Development

  • Breach Check — HIBP k-anonymity check on a password wordlist 4.5k ★
  • Galatea Garden Wake Bridge — 独立的 Galatea Garden 智能体唤醒桥:订阅 Garden SSE 事件,并通过可替换的 Runtime Adapter 将消息注入 Codex、Claude Code 等 Agent Runtime 225 ★
  • Claude Code SDK TS — Configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call v 206 ★

README


tags: [node.js, javascript]

Yaj SSE

A lightweight (<2kb) Yaj Plugin for Server-Sent Events (SSE) EventSource Polyfill. This plugin tries to use the native EventSource object if it is supported by the browser. If there is no native support, the request is made by AJAX requests (polling). You do not need to change the server side nor the client side.

[![Build Status](https://github.com/byjg/yaj-sse/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/byjg/yaj-sse/actions/workflows/build.yml) [![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com) [![Install MCP Server](https://img.shields.io/badge/Install-MCP_Server-8A2BE2?logo=modelcontextprotocol&logoColor=white)](https://opensource.byjg.com/docs/ai/mcpserver-byjg-docs/) [![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/yaj-sse/) [![GitHub license](https://img.shields.io/github/license/byjg/yaj-sse.svg)](https://opensource.byjg.com/license/) [![GitHub release](https://img.shields.io/github/release/byjg/yaj-sse.svg)](https://github.com/byjg/yaj-sse/releases/) [![](https://data.jsdelivr.com/v1/package/npm/yaj-sse/badge)](https://www.jsdelivr.com/package/npm/yaj-sse)

Quick Start

Client Side

var sse = new SSE('http://example.com/sse-server.php', {
    onMessage: function(e){
        console.log("Message:", e.data);
    }
});
sse.start();

Server Side

echo "data: My Message\n";
echo "\n";

Documentation

Comprehensive documentation is available in the `/docs` folder:

  1. Getting Started - Installation and basic usage
  2. API Reference - Constructor, methods, and parameters
  3. Event Handlers - Available events and custom events
  4. Configuration Options - Options and custom headers
  5. Examples - Practica