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

bun-native

v0.1.8

Published

Use Bun as a package manager with React Native

Readme

🌀 bun-native

⚡ Use Bun as a blazing-fast package manager with React Native projects.
This tool patches Metro and handles Bun-specific quirks so you can enjoy faster installs and cleaner dependencies.


🚀 Features

  • ✅ Metro bundler compatibility with Bun's symlinked dependencies
  • ✅ Generates a node_modules_mirror/ for clean Metro resolution
  • ✅ Patches metro.config.js automatically
  • ✅ Wrapper commands for run-ios, run-android, and start
  • ✅ Postinstall hook support for seamless integration

📦 Installation

Install globally via npm:

npm install -g bun-native

Make sure you have Bun installed

curl -fsSL https://bun.sh/install | bash

🧪 Usage

🆕 Initialize a New Project (React Native CLI)

bun-native init

Creates a new React Native project and installs everything using Bun.

📦 Customize the Project Name

You can pass a name to create your project:

bun-native init MyApp

🧪 Choose a Specific React Native Version

Use the --version flag to target a specific RN version:

bun-native init MyApp --version 0.78.1

✅ Migrate an Existing React Native Project

cd your-react-native-app

# Clean up old installs
rm -rf node_modules package-lock.json yarn.lock

# Install dependencies with Bun
bun install

# Patch Metro + Generate node_modules
bun-native postinstall

# Run the app
bun-native start
bun-native run-ios
bun-native run-android

🧠 How It Works

•	Uses Bun’s .bun/install/cache to generate a flat node_modules_mirror/ layout
•	Modifies metro.config.js to resolve modules from the mirror
•	Wraps npx react-native commands for convenience

🛠 Available Commands

| Command | Description | | ------------- | ------------------------------------------------------- | | init | Initialize a new React Native project using Bun | | patch-metro | Patch Metro to work with Bun | | postinstall | Run postinstall to patch Metro and create mirror layout | | run-android | Run react-native run-android | | run-ios | Run react-native run-ios | | start | Run react-native start | | bundle | Run react-native bundle |

⚠️ Known Limitations

•	Not yet compatible with all complex native modules — but works well for most.
•	Metro doesn’t fully support Bun’s symlink layout — hence the node_modules_mirror.

🤝 Contributing

Pull requests are welcome! Ideas, templates, and bug reports are also appreciated.

📜 License

MIT © 2025 Kologo B Josias Yannick

Buy me a coffee

If my you find my work usefull and want to support me, kindly buy me a coffee here