{"library":"browser-metro","type":"library","category":null,"description":"browser-metro is a unique, client-side JavaScript and TypeScript bundler designed to run entirely within a web browser, typically leveraging a Web Worker for performance. Inspired by React Native's Metro bundler, it provides features like Hot Module Replacement (HMR), React Refresh support, and integration with Expo Router for file-based routing. It manages modules through a VirtualFS, performs rapid compilation of TypeScript and JSX via Sucrase transforms, and supports on-demand bundling of npm packages through an external ESM server (e.g., `https://esm.reactnative.run`). As of version 1.0.15, it emphasizes rapid development feedback loops in browser-based playgrounds and development environments. Its key differentiator is its completely client-side operation, removing the need for a Node.js build server for many common development tasks, making it ideal for interactive coding environments and sandboxes.","language":"javascript","status":"active","version":"1.0.15","tags":["javascript","bundler","react-native","metro","hmr","typescript","jsx","browser","virtual-fs"],"last_verified":"Wed May 27","install":[{"cmd":"npm install browser-metro","imports":["import { Bundler } from 'browser-metro';","import { IncrementalBundler } from 'browser-metro';","import { VirtualFS } from 'browser-metro';","import { typescriptTransformer } from 'browser-metro';","import type { BundlerConfig } from 'browser-metro';"]},{"cmd":"yarn add browser-metro","imports":[]},{"cmd":"pnpm add browser-metro","imports":[]}],"homepage":"https://reactnative.run","github":"https://github.com/RapidNative/reactnative-run","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/browser-metro","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/browser-metro/compatibility"}}