본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)48k · #5172

markstream-react

하는 일

이 도구는 React 18 또는 Next.js 프로젝트에 「markstream-react」라는 새 기능을 통합하도록 돕습니다. 브라우저와 서버 사이에서 모든 것이 올바르게 작동하도록 보장하고, 콘텐츠가 표시되는 방식을 맞춤 설정할 수 있게 합니다.

사용하는 경우

  • ✓새 React 18 또는 Next.js 프로젝트를 설정할 때.
  • ✓점진적으로 도착하는 콘텐츠(스트리밍)를 표시해야 할 때.
  • ✓콘텐츠 렌더링 방식을 교체하거나 업데이트할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-react/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-react/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“점차 나타나는 텍스트를 표시하도록 Next.js 프로젝트에 markstream-react를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 사용자의 컴퓨터(클라이언트)에서 실행되는 코드와 서버에서 실행되는 코드 사이의 연결을 관리합니다. 각 부분에 맞는 특정 파일(클라이언트/서버 진입점)을 사용하며, 외형(CSS)과 점진적으로 도착하는 콘텐츠의 상태를 처리합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Markstream React

Overview

Wire the beta React renderer into React 18+ or Next.js without crossing client/server boundaries or reaching for AST control unnecessarily.

When to Use

Use for React/Next setup, root/next/server entrypoints, streaming, component overrides, or migration support. Pair with markstream-migration for renderer replacement.

Workflow

Inspect the existing package manager, installed package version and project conventions. A requested scoped integration already authorizes routine source/dependency edits; seek approval only for a material scope expansion or unresolved beta/alpha adoption decision.

  1. Confirm React 18+ and acceptance of a beta package.
  2. Install only requested peers and import markstream-react/index.css.
  3. Use the root entry for client rendering, /next for Next-specific components, and /server for server rendering without client hooks.
  4. Start with content and smoothStreaming="auto"; use nodes plus final only when another layer owns parsing.
  5. For live chat disable fade and opt into the cursor. On completion set final, disable pacing/cursor, and enable fade only if desired.
  6. Keep browser-only peers inside 'use client', dynamic ssr: false, or another minimal boundary.
  7. Prefer streamingComponents for parser-backed tags and htmlComponents for sanitized props. Use scoped registry overrides for built-in nodes.
  8. Keep htmlPolicy="safe" and Mermaid strict; validate client, server, and incremental paths.

Example

'use client' // Required when this example is used in a Next.js App Router client boundary

import MarkdownRender from 'markstream-react'
import 'markstream-react/index.css'

export function StreamingAnswer({
  content,
  isDone,
}: {
  content: string
  isDone: boolean
}) {
  return (
    <MarkdownRender
      content={content}
      final={isDone}
      fade={isDone}
      typewriter={!isDone}
      smoothStreaming={isDone ? false : 'auto'}
      htmlPolicy="safe"
    />
  )
}

Limitations

  • The package is beta and requires React 18+.
  • Browser-only peers require client boundaries under SSR.
  • Complex parser parity requires separate migration review.

Security & Safety Notes

Review dependencies and never opt untrusted model output into trusted HTML or loose diagram rendering.

Verify props, export paths and peer ranges against the installed package, not a mutable upstream main. Test partial and completed streams, malformed/untrusted Markdown, links and image URLs, cancellation and reduced motion. Safe HTML and strict diagrams reduce exposure but do not alone enforce URL/network privacy or application component permissions.

자주 묻는 질문

「beta」는 무엇을 뜻하나요?

베타는 기능이 테스트 단계에 있다는 뜻입니다. 일부 문제가 있을 수 있지만 대부분의 용도에서 이미 작동합니다.

React 18을 꼭 써야 하나요?

네. 이 도구는 React 18 이상 버전과 Next.js에서 작동하도록 만들어졌습니다.

「클라이언트/서버 진입점」이란 무엇인가요?

코드에서 서로 다른 시작점입니다. 하나는 사용자의 브라우저에서 실행되는 부분(클라이언트)을 위한 것이고, 다른 하나는 웹사이트가 호스팅되는 서버에서 실행되는 부분을 위한 것입니다.

상세 정보

작성자의 원본 설명

Integrate the beta markstream-react renderer into React 18+ or Next.js with correct client/server entrypoints, CSS, streaming state, and component overrides.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5172
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬