npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-streamdown

v0.1.1

Published

Markdown Streaming

Readme

react-native-streamdown

This project is not affiliated with, endorsed by, or sponsored by Vercel.

A streaming-ready markdown component for React Native built on top of react-native-enriched-markdown and remend.

It processes raw, incomplete markdown (as it streams token-by-token from an LLM) in the background using react-native-worklets powerful concurrency feature - the Bundle Mode - keeping the JS thread free at all times.

Features

  • Renders incomplete streaming markdown correctly — no visual glitches mid-stream
  • Background thread processing via react-native-worklets Bundle Mode
  • Inline LaTeX support ($...$) with streaming completion — applied automatically, no configuration needed (we've also opened a PR to add this directly to remend)
  • CommonMark rendering (headers, bold, italic, inline code, fenced code blocks, links, images) powered by react-native-enriched-markdown with built-in streamingAnimation
  • Customizable via remendConfig

Installation

yarn add react-native-streamdown

Peer dependencies

yarn add react-native-enriched-markdown react-native-worklets remend

| Package | Version | | -------------------------------- | ----------------------------- | | react-native-enriched-markdown | 0.4.0 | | react-native-worklets | 0.8.0-bundle-mode-preview-2 | | remend | 1.2.2 |


Required setup — Bundle Mode

react-native-streamdown runs markdown processing on a worklet thread using Bundle Mode from react-native-worklets. This requires extra configuration steps from the official Bundle Mode setup guide. Make sure to complete these steps before continuing. For a real-world reference of an app configured with Bundle Mode, check out the Bundle Mode Showcase App.

1. babel.config.js — configure Worklets Babel plugin

react-native-streamdown requires special options to be added to the Worklets Babel plugin config in babel.config.js:

const workletsPluginOptions = {
  bundleMode: true,
  // other options...
  workletizableModules: ['remend'], // add this line
};

workletizableModules: ['remend'] tells the Babel plugin to pre-bundle remend for the worklet runtime so it can be called off the JS thread.

2. metro.config.js — configure Metro for monorepos

react-native-worklets Bundle Mode generates files on the fly that might not be tracked by Metro in some monorepo setups. It might also shadow your resolving function. If you're running into issues with module resolution, you need to add the following to your metro.config.js:

const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const { bundleModeMetroConfig } = require('react-native-worklets/bundleMode');

let config = getDefaultConfig(__dirname);

// Watch the .worklets/ output directory
config.watchFolders.push(
  require('path').resolve(
    __dirname,
    'node_modules/react-native-worklets/.worklets'
  )
);

// Resolve react-native-worklets/.worklets/* via the Bundle Mode resolver
const defaultResolver = config.resolver.resolveRequest;

config = mergeConfig(config, bundleModeMetroConfig);

config.resolver.resolveRequest = (context, moduleName, platform) => {
  if (moduleName.startsWith('react-native-worklets/.worklets/')) {
    return bundleModeMetroConfig.resolver.resolveRequest(
      context,
      moduleName,
      platform
    );
  }
  return defaultResolver(context, moduleName, platform);
};

module.exports = config;

Usage

import { StreamdownText } from 'react-native-streamdown';

// markdown can be updated token-by-token as the LLM streams
<StreamdownText markdown={partialMarkdown} />;

Props

StreamdownText accepts all props from EnrichedMarkdownText (except flavor, which is hardcoded to commonmark) plus one additional prop:

| Prop | Type | Description | | -------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | remendConfig | RemendOptions | Optional. Override the default remend processing config. See remend docs for all available options. |


Example app

The example/ directory in this repository contains a fully working demo app that shows:

  • Streaming Markdown Simulator — streams a sample markdown document token-by-token to demonstrate rendering quality and the streamingAnimation effect
  • LLM Streaming Demo — connects to the OpenAI Chat Completions API via SSE and renders the response live using StreamdownText

It is a practical reference for the full Bundle Mode setup (Babel, Metro, package.json flags) and for how to wire StreamdownText into a real streaming UI.


Limitations

  • CommonMark onlyStreamdownText currently renders using the commonmark flavour of react-native-enriched-markdown. GitHub Flavored Markdown (GFM) support is planned for a future release.

Built by Software Mansion.


License

MIT