# remote-mdx

> Use MDX in your React App

Latest version **0.0.8** (published 2024-05-11) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install remote-mdx
pnpm add remote-mdx
yarn add remote-mdx
bun add remote-mdx
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2024-05-11 |
| First published | 2024-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 4 |
| Unpacked size | 22.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Jiwon Choi |
| Maintainers | devjiwonchoi |
| Keywords | md, mdx, markdown, frontmatter, remote, react, nextjs, vite, rsc, jsx |

## Links

- npm: https://www.npmjs.com/package/remote-mdx
- Repository: https://github.com/devjiwonchoi/remote-mdx
- Homepage: https://github.com/devjiwonchoi/remote-mdx#readme
- Issues: https://github.com/devjiwonchoi/remote-mdx/issues
- npm.io page: https://npm.io/package/remote-mdx

## Dependencies (4)

- [vfile](https://npm.io/package/vfile.md) ^5.3.7
- [@mdx-js/mdx](https://npm.io/package/@mdx-js/mdx.md) ^2.3.0
- [vfile-matter](https://npm.io/package/vfile-matter.md) ^3.0.1
- [@mdx-js/react](https://npm.io/package/@mdx-js/react.md) ^2.3.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2024-05-11
- 0.0.7 — 2024-04-26
- 0.0.6 — 2024-04-26
- 0.0.5 — 2024-04-23
- 0.0.4 — 2024-03-22
- 0.0.3 — 2024-03-19
- 0.0.2 — 2024-03-18
- 0.0.1 — 2024-03-18
- 0.0.0 — 2024-03-18

## README

# remote-mdx

> NOTE: This project is rapidly developed for stable `v1`, and may include a breaking change.

## Why Another Remote MDX?

The initial purpose of this fork was to work around [the issue with Next.js turbo](https://github.com/vercel/next.js/issues/63318), but I found some inefficiencies in the original package.

After getting inspired by [this discussion](https://github.com/hashicorp/next-mdx-remote/discussions/437), I decided to maintain this fork as a separate package, and am planning to continuously sync with the original package.

## So... Why Should I Use This?

- Package Size: **Reduced 50%** of the original package size.
- Fully Typed: Does not depend on `allowJS` or `any` type.
- Module: Native ESM, no internal `commonjs` resolution that breaks `--turbo`.

## Migrating from `next-mdx-remote`

`remote-mdx` is a drop-in replacement for `next-mdx-remote`. You can simply replace the import statement and it should work as expected.

```diff
- import { serialize } from 'next-mdx-remote/serialize'
+ import { serialize } from 'remote-mdx/serialize'

- import { MDXRemote } from 'next-mdx-remote'
+ import { MDXRemote } from 'remote-mdx'

- import { MDXRemote } from 'next-mdx-remote/rsc'
+ import { MDXRemote } from 'remote-mdx/rsc'
```

---
_Source: https://npm.io/package/remote-mdx · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
