Skip navigation
Introducing ▲ Streamdown
0:00 / 2:20

Introducing ▲ Streamdown

Hayden

@haydenbleasel18K followers

Visit on X
1,166 likesDownloadOriginal post

101,737 views

Introducing ▲ Streamdown A drop-in replacement for react-markdown, designed for AI-powered streaming. npm i streamdown (or just use AI Elements!) Link 👇

47 Comments

Comments from the original post on X (Twitter)

  • Dagmawi Babi's profile picture

    @DagmawiBabi

    This's awesome, is it available for sveltekit?

    5 likes

  • Hayden's profile picture

    @haydenbleasel

    Not yet but that’s a great idea 👀

    4 likes

  • Dagmawi Babi's profile picture

    @DagmawiBabi

    yes would love it

    2 likes

  • SebastianBoo's profile picture

    @SebastianB929

    Does this also include the added link sanitizations? Like in the hardened react markdown?

    5 likes

  • Hayden's profile picture

    @haydenbleasel

    Yes it does! All domains are enabled by default, then you can choose to opt-in by specifying an allowlist. Check the props on the page for more info 💪

    10 likes

  • SebastianBoo's profile picture

    @SebastianB929

    Thanks alot! Stupid question i need to define the defaultOrigin. Is there a reason you decided against taking the window.location.origin/header x-forwarded-host as the default and instead make it configurable?

  • kacper's profile picture

    @KacperOchmanski

    i get streamdown is great and stuff but why downplay react-markdown? you can make it look the same regardless of whether you're using first or the second one

    3 likes

  • Hayden's profile picture

    @haydenbleasel

    I wouldn't say we're downplaying react-markdown, we rely on it. It's simply showing what you get out of the box. You can make react-markdown look the same, you can also add link hardening and plugins. But then you've built this package 😂

    10 likes

  • Amad's profile picture

    @amadkn

    Looks great! Would this work react-native components?

    3 likes

  • Hayden's profile picture

    @haydenbleasel

    Not sure unfortunately, haven't done RN in many years! If you're open to trying it, would love to hear what happens 👀

    1 like

  • Ivan Chebykin's profile picture

    @ichebykin

    @cramforce @cursor_ai had a fun take home assignment earlier this year to design on the fly markdown renderer for the streaming text, this library reminded me of that 😅

    2 likes

  • Hayden's profile picture

    @haydenbleasel

    @cramforce @cursor_ai this is actually my cursor interview application for @leerob

    5 likes

  • Dominik Koch's profile picture

    @dominikkoch

    damn thats some fire shit right there

    2 likes

  • Ian Nuttall's profile picture

    @iannuttall

    This is exactly what I need for something I'm working on! Also, your landing page designs are just killer. Any chance you'll release the Streamdown landing page as a Vercel template? 🤞

    2 likes

  • Hayden's profile picture

    @haydenbleasel

    I'll see what I can do 😅

  • Jonny Summers-Muir's profile picture

    @JSummersMuir

    You had me at unterminated markdown blocks.

    2 likes

  • Theo Vararu's profile picture

    @NihilSineTheo

    Any plans for sleek animations?

    2 likes

  • Hayden's profile picture

    @haydenbleasel

    Definitely!

    1 like

  • Shreyans Jain's profile picture

    @shreyansj

    @ksw_arman u were early man, should’ve shipped

    2 likes

  • Rodrigo Belfiore's profile picture

    @roprgm

    🎯

    1 like