Catalog npm
Back to packageRELEASE DETAILS

0.2.0

npm

@0xbanky/react-native-streamdown

Streaming-ready Markdown for React Native, with GFM support (fork of react-native-streamdown)

androidiosreact-native
Published24 Apr 2026
Direct dependencies27
Transitive dependenciesNot calculated

README

Current package documentation

@0xbanky/react-native-streamdown

Fork of react-native-streamdown with GitHub Flavored Markdown (GFM) support — tables, task lists, strikethrough, autolinks — via the flavor prop.

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
  • Optional GitHub Flavored Markdown (GFM) — tables, task lists, strikethrough, autolinks — via flavor="github"
  • Customizable via remendConfig

Installation

yarn add @0xbanky/react-native-streamdown

Peer dependencies

yarn add react-native-enriched-markdown react-native-worklets remend
PackageVersion
react-native-enriched-markdown0.4.0
react-native-worklets0.8.0-rc.0
remend1.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, namely bundleMode: true and workletizableModules: ['remend']. Your final config could look like this:

Expo

module.exports = function (api) {
  api.cache(true);

  return {
    presets: ['babel-preset-expo'],
    plugins: [
      [
        'react-native-worklets/plugin',
        {
          bundleMode: true,
          // other options...
          workletizableModules: ['remend'], // add this line
        },
      ],
    ],
  };
};

React Native CLI

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:

Expo

const { getDefaultConfig } = require('expo/metro-config');
const {
  getBundleModeMetroConfig,
} = 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 = getBundleModeMetroConfig(config);

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;

React Native CLI

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 '@0xbanky/react-native-streamdown';

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

Props

StreamdownText accepts all props from EnrichedMarkdownText plus one additional prop:

PropTypeDescription
flavor'commonmark' | 'github'Optional. Defaults to 'commonmark'. Set to 'github' to render GitHub Flavored Markdown — tables, task lists, strikethrough, autolinks.
remendConfigRemendOptionsOptional. Override the default remend processing config. See remend docs for all available options.

GFM example

<StreamdownText markdown={partialMarkdown} flavor="github" />

Note: streamingAnimation (tail-fade) is recommended only with flavor="commonmark"; it's disabled automatically under 'github' because that flavor uses a container-based renderer. You can still force it on by passing streamingAnimation explicitly.


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.


Fork notes

This fork adds GFM rendering by exposing the upstream library's flavor prop. Tables, task lists, strikethrough, and autolinks render natively when flavor="github". streamingAnimation is scoped to commonmark because the GFM renderer is container-based.


Built by Software Mansion.

Software Mansion Logo


License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 32

Native requirements
27 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@commitlint/config-conventional
Environment
{
  "local_name": "@commitlint/config-conventional",
  "alias": false,
  "peer_metadata": null
}
^19.8.1development
@eslint/compat
Environment
{
  "local_name": "@eslint/compat",
  "alias": false,
  "peer_metadata": null
}
^1.3.2development
@eslint/eslintrc
Environment
{
  "local_name": "@eslint/eslintrc",
  "alias": false,
  "peer_metadata": null
}
^3.3.1development
@eslint/js
Environment
{
  "local_name": "@eslint/js",
  "alias": false,
  "peer_metadata": null
}
^9.35.0development
@react-native/babel-preset
Environment
{
  "local_name": "@react-native/babel-preset",
  "alias": false,
  "peer_metadata": null
}
0.83.0development
@react-native/eslint-config
Environment
{
  "local_name": "@react-native/eslint-config",
  "alias": false,
  "peer_metadata": null
}
0.83.0development
@release-it/conventional-changelog
Environment
{
  "local_name": "@release-it/conventional-changelog",
  "alias": false,
  "peer_metadata": null
}
^10.0.1development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^29.5.14development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^19.1.12development
commitlint
Environment
{
  "local_name": "commitlint",
  "alias": false,
  "peer_metadata": null
}
^19.8.1development
del-cli
Environment
{
  "local_name": "del-cli",
  "alias": false,
  "peer_metadata": null
}
^6.0.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^9.35.0development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^10.1.8development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^5.5.4development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^29.7.0development
lefthook
Environment
{
  "local_name": "lefthook",
  "alias": false,
  "peer_metadata": null
}
^2.0.3development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.8.8development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
19.2.0development
react-native
Environment
{
  "local_name": "react-native",
  "alias": false,
  "peer_metadata": null
}
0.83.2development
react-native-builder-bob
Environment
{
  "local_name": "react-native-builder-bob",
  "alias": false,
  "peer_metadata": null
}
^0.40.18development
react-native-enriched-markdown
Environment
{
  "local_name": "react-native-enriched-markdown",
  "alias": false,
  "peer_metadata": null
}
0.4.0development
react-native-sse
Environment
{
  "local_name": "react-native-sse",
  "alias": false,
  "peer_metadata": null
}
1.2.1development
react-native-worklets
Environment
{
  "local_name": "react-native-worklets",
  "alias": false,
  "peer_metadata": null
}
0.8.0-rc.0development
release-it
Environment
{
  "local_name": "release-it",
  "alias": false,
  "peer_metadata": null
}
^19.0.4development
remend
Environment
{
  "local_name": "remend",
  "alias": false,
  "peer_metadata": null
}
1.2.2development
turbo
Environment
{
  "local_name": "turbo",
  "alias": false,
  "peer_metadata": null
}
^2.5.6development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.9.2development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
*peer
react-native
Environment
{
  "local_name": "react-native",
  "alias": false,
  "peer_metadata": null
}
*peer
react-native-enriched-markdown
Environment
{
  "local_name": "react-native-enriched-markdown",
  "alias": false,
  "peer_metadata": null
}
0.4.0peer
react-native-worklets
Environment
{
  "local_name": "react-native-worklets",
  "alias": false,
  "peer_metadata": null
}
0.8.0-rc.0peer
remend
Environment
{
  "local_name": "remend",
  "alias": false,
  "peer_metadata": null
}
1.2.2peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-eapFy5LR2drA4B0IBrg05bMbzvHP76P8UGJY+kDJJw8MBIKQ5m/gjgP6TdRWpmdI+KgIcsKvdea+7bg9LJvG7w==",
  "shasum": "7e808d4d823d9a7e1f73b124c138831c8811b725",
  "tarball": "https://registry.npmjs.org/@0xbanky/react-native-streamdown/-/react-native-streamdown-0.2.0.tgz",
  "fileCount": 30,
  "unpackedSize": 26487,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEQCIDyeHeYyB3eBqO4YHJN1gcEO4qWyhexkAZs38wwEQrvKAiBO1fZDcEHnDGkaP4c0hRzSaHoDW/e0lYdcVTAyD0P92A=="
    }
  ]
}

Repository

PENDING
banky/react-native-streamdown

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:f9d424426bd7084dd1f529bcd0d28cd99690a6be06d36cbcb69fb985b702332e

Other collected versions

View all collected versions →