Stream‑safe Markdown rendering for Angular, built for AI chat UIs. Angular port of Vercel Streamdown.
This is the Angular workspace for the streamdown-angular library (npm package name; the Angular project folder is ngx-streamdown).
| Project | Path | What |
|---|---|---|
| 📚 Library | projects/ngx-streamdown |
The publishable package — see its README for full usage docs. |
| 🧪 Demo | projects/demo |
A playground app showing streaming, code, tables, math, Mermaid, i18n, caret. |
npm install
# run the demo playground (http://localhost:4200)
npm start # = ng serve demo
# build the library → dist/streamdown-angular
npm run build # = ng build ngx-streamdown
# run the library unit tests (Vitest)
npm test # = ng test ngx-streamdown --watch=falseIf
npm start/npm testaren't defined, use the explicit forms:ng serve demo,ng build ngx-streamdown,ng test ngx-streamdown --watch=false.
ng build ngx-streamdown
cd dist/streamdown-angular
npm publishSee projects/ngx-streamdown/README.md for installation, the <ngx-streamdown> component API, optional plugins (Shiki / Mermaid / KaTeX), styling, and i18n.
import { StreamdownComponent } from 'streamdown-angular';
// <ngx-streamdown [content]="markdown()" [caret]="true" />Apache‑2.0 — original work © 2023 Vercel, Inc. (see NOTICE).