nstreamdown
Streaming markdown for NativeScript
With support for Angular, React, Solid, Svelte, & Vue
Inspired by Streamdown.ai
npm install @nstudio/nstreamdownGet StartedSimple to Use
Just import and start streaming. nstreamdown handles incomplete tokens, parsing, and rendering automatically.
Basic Usage
import { Component } from '@angular/core';import { Streamdown } from '@nstudio/nstreamdown/angular';@Component({selector: 'app-demo',template: `<Streamdown [content]="markdown" />`,imports: [Streamdown],})export class DemoComponent {markdown = '# Hello World!\n\nThis is **streaming** markdown!';}
Streaming Mode
import { Component, signal } from '@angular/core';import { Streamdown } from '@nstudio/nstreamdown/angular';@Component({selector: 'app-chat',template: `<Streamdown[content]="streamingContent()"[config]="{ mode: 'streaming', showCaret: true }"/>`,imports: [Streamdown],})export class ChatComponent {streamingContent = signal('');async streamFromAI() {const words = 'Hello! I am an **AI**...'.split(' ');for (const word of words) {this.streamingContent.update(c => c + word + ' ');await this.delay(50);}}private delay(ms: number) {return new Promise(resolve => setTimeout(resolve, ms));}}
nstreamdown.ai vs streamdown.ai
See how nstreamdown.ai compares to streamdown.ai by Vercel. Both are excellent solutions for their respective platforms.
| Feature | streamdown.aiby Vercel | nstreamdownby nStudio | Notes |
|---|---|---|---|
| Real-time streaming | |||
| Incomplete token handling | |||
| GitHub Flavored Markdown | |||
| Syntax-highlighted code blocks | Using iOS/Android native text styling! | ||
| Mathematical expressions (LaTeX) | |||
| Interactive code blocks | Copy & download buttons | ||
| Interactive tables | Copy text & CSV export | ||
| Mermaid diagrams | |||
| CJK language support | |||
| Angular support | |||
| React support | |||
| Vue support | |||
| Svelte support | |||
| Solid support | |||
| NativeScript support |
Built for Native Performance
Every component is rendered using native platform components for the best possible performance and user experience.
Real-time Streaming
Watch markdown render word-by-word like AI output with smooth animations.
All Frameworks
Works with Angular, React, Solid, Svelte, and Vue out of the box.
Syntax Highlighting
Native text styling with syntax highlighting for 100+ languages.
CJK Support
Full support for Chinese, Japanese, and Korean character rendering.
Interactive Tables
Copy as text or CSV export with native table views.
Smart Images
Loading states and error handling with native image views.
GitHub Flavored Markdown
Tables, task lists, strikethrough, and all GFM extensions.
Typography
Beautiful headings, paragraphs, and inline formatting.
Blockquotes
Styled blockquotes with native border styling.
Lists
Ordered, unordered, and nested list support.
Math Expressions
LaTeX/KaTeX style mathematical expressions rendering.
Mermaid Diagrams
Interactive flowcharts, sequence diagrams, and more.
nstreamdown is proudly inspired by Streamdown.ai by Vercel. Their excellent work on AI-powered streaming markdown for React paved the way for bringing the same great experience to native apps with NativeScript.
Ready to build native AI experiences?
Get started with nstreamdown today and bring beautiful streaming markdown to your NativeScript apps.
npm install @nstudio/nstreamdownRead the docs