sse-chunk-boundary-debug

Community

Fix browser SSE JSON parse errors from chunk splits

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill resolves the "Unterminated string in JSON" parse error that occurs in browser SSE streams when HTTP chunked transfer encoding splits large SSE data lines (such as base64-encoded image payloads) mid-content, breaking standard line-based SSE parsing logic.

Core Features & Use Cases

  • Diagnostic Workflow: Step-by-step checks to rule out nginx misconfiguration as the root cause of SSE parse failures.
  • Line Buffer Accumulator Fix: Implements a proven pattern to reassemble split SSE lines across chunk boundaries before JSON parsing.
  • Use Case: Debug and fix broken SSE streaming for AI chatbot frontends that send large base64 image payloads via server-sent events from backend services.

Quick Start

Use the sse-chunk-boundary-debug skill to resolve the "Unterminated string in JSON" parse error occurring in your browser when receiving large base64 image payloads via server-sent events.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sse-chunk-boundary-debug
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#sse-chunk-boundary-debug

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.