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

@gvamaresh/mdflow

v1.0.0

Published

Lightweight Markdown rendering for React without the bloat of deprecated NPM modules. Built for speed and deep UI control using modern TypeScript

Readme

MDFlow

MDFlow is a lightweight, high-performance Markdown-to-React converter designed to render Markdown text or files directly into your React application with zero heavy dependencies.

Unlike many existing NPM Markdown packages that rely on deprecated modules or complex abstract syntax tree (AST) parsers, MDFlow is built from the ground up. It offers a clean, customizable UI out of the box using standard CSS-in-JS and Tailwind-friendly structures, giving you full control over how your content looks without the bloat.


Why MDFlow?

  • Zero Bloated Dependencies: Most converters are a "black box" of deprecated nested modules. MDFlow is lean and modern.
  • Native React Support: Renders actual React components, not just a raw HTML string (though a string parser is included).
  • Built-in File Fetching: Simply pass a .md file path, and MDFlow handles the fetch and error states for you.
  • Deep Customization: Control everything from table curves and heading colors to media behavior via a simple theme object.
  • Video Support: Automatically detects and renders .mp4 and .webm links as playable video players.

Installation

npm install mdflow

yarn add mdflow

Quick Start

Basic Usage

import { MDFlow } from 'mdflow';

function App() {
  return (
    <MDFlow text="# Hello World\nThis is **MDFlow**." />
  );
}

Fetching from a File

import { MDFlow } from 'mdflow';

function App() {
  return (
    <MDFlow 
      file="/docs/guide.md" 
      width="70%" 
      align="center" 
    />
  );
}

Attributes & Configuration

| Attribute | Type | Description | | --- | --- | --- | | text | string | Raw markdown string to render. | | file | string | URL or local path to a .md file. | | width | string | Width of the container (e.g., "100%", "600px"). | | align | "left" | "center" | "right" | Horizontal alignment of the markdown container. | | theme | object | Customize colors, fonts, and spacing. | | errorToShow | string | Custom error message if file fetching fails. | | containerStyle | object | Custom padding/margin for the wrapper. |


Advanced Examples

1. Custom Theming

Give your markdown a "Dark Mode" or brand-specific look.

<MDFlow 
  text="# Dark Mode Header"
  theme={{
    headingColor: "#60a5fa",
    backgroundColor: "#1e1e1e",
    fontFamily: "monospace",
    tableCurve: "12px",
    linkColor: "#fbbf24"
  }}
/>

2. Handling File Errors

Provide a custom UI if the markdown file isn't found.

<MDFlow 
  file="/missing-file.md"
  errorToShow="Oops! This document has moved."
  errorFileNotFound={<MyCustomErrorComponent />}
/>

3. Layout Control

Perfect for blog-style layouts where you want a centered readable column.

<MDFlow 
  file="/blog/post-1.md"
  width="60%"
  align="center"
  containerStyle={{ padding: "40px" }}
  theme={{ showFileEnlarged: true }} 
/>

Preview & Links

Sample Demo

  1. First Sample Video