Streamdown components for Solid.js.
This project is a Solid.js port of Vercel's Streamdown: https://github.com/vercel/streamdown. All credit for the original idea, API design, and core UX belongs to the upstream project and its contributors.
- SolidStart SSR friendly (no
document/windowaccess on the server, plus a dedicated server entry for SSR resolution) - Built-in UI styles via
streamdown-solidjs/styles.css - Markdown rendering + common extensions (tables, code blocks, Mermaid, etc.)
- Upstream project (Vercel Streamdown): https://github.com/vercel/streamdown
Install:
npm i streamdown-solidjs
# or
yarn add streamdown-solidjs
# or
pnpm add streamdown-solidjsUse:
import "streamdown-solidjs/styles.css";
import { StreamdownSolid } from "streamdown-solidjs";
export default function Demo() {
return (
<StreamdownSolid>
{`# Hello Streamdown (Solid)`}
</StreamdownSolid>
);
}This package is designed to work in SolidStart SSR out of the box. If you run into dependency-cache issues after upgrading, try:
- Removing
node_modules/.vite(or your bundler cache directory) - Restarting the dev server
pnpm smoke:packThis command will:
- Build the library
- Create a local tarball with
pnpm pack - Install that tarball in a temporary Vite + Solid consumer app
- Run the consumer build to catch package/runtime integration issues early
If you also want to test in a real browser dev server:
pnpm smoke:pack:serve