Skip to content

feat(streamdown): add Octane binding - #432

Merged
WebEferen merged 15 commits into
octanejs:mainfrom
zhsama:feat/streamdown-binding
Jul 31, 2026
Merged

WebEferen merged 15 commits into
octanejs:mainfrom
zhsama:feat/streamdown-binding

Conversation

@zhsama

@zhsama zhsama commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add @octanejs/streamdown, an Octane-native port of [email protected] for rendering static and streaming Markdown without a React runtime dependency
  • cover the main Streamdown surface, including incomplete streaming blocks, custom components and tags, code blocks, tables, images, link controls, animation, SSR, and hydration
  • expose the official code, math, Mermaid, and CJK plugins through @octanejs/streamdown/code, /math, /mermaid, and /cjk
  • ship precompiled client/server builds, declarations, and styles, and register the package across the workspace, Vitest, CLI/MCP metadata, generated docs, website data, and changesets
  • add differential parity tests against upstream Streamdown, focused SSR/hydration/plugin coverage, and a hosted React-vs-Octane benchmark harness

Compatibility notes

  • The port is pinned to [email protected] and the current official plugin releases.
  • Framework-neutral Markdown, HAST, highlighting, math, Mermaid, and CJK logic is retained from upstream; React-owned components, hooks, contexts, portals, and JSX-runtime integration are implemented for Octane.
  • The official plugins are consolidated as subpath exports of @octanejs/streamdown. Browser-only controls remain inactive during SSR and initialize after mount.

Validation

  • pnpm --dir packages/streamdown test — 19 tests across 7 files
  • pnpm --dir packages/streamdown typecheck
  • pnpm --dir packages/streamdown types:check
  • pnpm --dir packages/streamdown build
  • pnpm format:check
  • pnpm typecheck
  • pnpm test — 15,675 tests across 1,477 files
  • generated package inventory, binding status, parity-gap, and eval corpus checks

Note

Medium Risk
Large new public binding surface (streaming Markdown, plugins, SSR/hydration) with broad repo touchpoints, but risk is tempered by differential tests, dedicated SSR/hydration coverage, and a correctness-gated hosted benchmark.

Overview
Introduces @octanejs/streamdown, an Octane-native port of Streamdown 2.5.0 for static and streaming Markdown (incomplete blocks, custom renderers, code/tables/images, animation, SSR/hydration) without a React runtime. Official code, math, Mermaid, and CJK plugins ship as ./code, ./math, ./mermaid, and ./cjk subpaths on the same package instead of separate @streamdown/* packages; consumers get precompiled client/server JS, types, and styles.

Workspace wiring adds the binding to inventory/status/parity docs, CLI/MCP bridge maps (streamdown and plugin packages → @octanejs/streamdown), bindings:typecheck, and Prettier ignores for generated .tsrx.d.ts. A small UX fix skips empty code-block action chrome when every code control is disabled.

A new streamdown-hosted benchmark suite runs upstream React Streamdown vs @octanejs/streamdown via OctaneCompat on the same React 19 host, with semantic DOM parity, mount/replace/stream timings, bundle sizes, and a stream → static lifecycle gate; it is registered in bench.mjs and MCP benchmark suite lists.

Reviewed by Cursor Bugbot for commit f46d2b8. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Jul 31, 2026 12:32am
octane-website-mcp Ready Ready Preview Jul 31, 2026 12:32am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 18:53 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 18:53 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 19:05 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 19:05 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 19:46 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 19:46 Inactive
@leonidaz
leonidaz marked this pull request as draft July 30, 2026 19:58
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 19:59 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 19:59 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:26 Inactive
@zhsama
zhsama force-pushed the feat/streamdown-binding branch from e569351 to a2e796f Compare July 30, 2026 20:39
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:40 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:40 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 20:44 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 20:45 Inactive
Comment thread packages/streamdown/src/index.tsrx Resolved
Comment thread packages/streamdown/src/index.tsrx Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 21:04 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 21:04 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 21:39 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 21:40 Inactive
@WebEferen

Copy link
Copy Markdown
Contributor

@zhsama could you run: pnpm binding-parity:gaps - this will remove lint check :)

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 22:34 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 22:34 Inactive
@WebEferen

Copy link
Copy Markdown
Contributor

@zhsama one last resolve please and we're ready to go!

@leonidaz

Copy link
Copy Markdown
Collaborator

i'll take care of the conflicts

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 23:28 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 23:29 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 23:36 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 23:37 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 30, 2026 23:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 30, 2026 23:52 Inactive

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 59d5178. Configure here.

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 31, 2026 00:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 31, 2026 00:10 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp July 31, 2026 00:32 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website July 31, 2026 00:32 Inactive
@WebEferen
WebEferen merged commit 42b4b75 into octanejs:main Jul 31, 2026
29 checks passed
trueadm added a commit that referenced this pull request Sep 27, 2026
…1335)

The committed src/**/*.tsrx.d.ts files had drifted since #432: #1069 added a
top-level JSX namespace to octane/jsx-runtime, and #943 changed memo's return
type. Streamdown's types:check was never run by CI, so the drift went unnoticed.

Regenerate the declarations and run `pnpm --dir packages/streamdown types:check`
as a root `test` precheck alongside Visx's.

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

2 inactive deployments
Preview – octane-website — f46d2b80 Deployed Jul 31, 2026 by vercel[bot]
Preview – octane-website-mcp — f46d2b80 Deployed Jul 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants