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

@rm30/metro-config

v0.1.0

Published

Shared RM30 Metro configuration for Expo monorepos.

Readme

@rm30/metro-config

The shared Metro configuration for RM30's Expo apps.

pnpm add -D @rm30/metro-config
// apps/mobile/metro.config.cjs
const { getDefaultConfig } = require('expo/metro-config')
const { withRm30Metro } = require('@rm30/metro-config')

module.exports = withRm30Metro(getDefaultConfig(__dirname), {
  workspaceAliases: { '@myproject/types': '../../packages/types/src' },
  uniwind: { cssEntryFile: './global.css', dtsFile: './src/uniwind-types.d.ts' },
})

Why the base config is passed in

The projects do not agree on how the base config is made, and both ways are right: most call getDefaultConfig from expo/metro-config, while superwallet calls getSentryExpoConfig so Sentry can attach to the bundle. Creating the config inside this package would take that choice away, so it takes one instead.

const { getSentryExpoConfig } = require('@sentry/react-native/metro')
module.exports = withRm30Metro(getSentryExpoConfig(__dirname), { /* … */ })

Options

| Option | Default | | |---|---|---| | projectRoot | config.projectRoot | Throws if neither is set, rather than silently building paths from undefined. | | workspaceAliases | {} | Package name to path, absolute or relative to projectRoot. | | blockList | [] | Extra patterns, added to the built-in test-file ones. | | platforms | ios, android, native, web | | | uniwind | omitted | { cssEntryFile, dtsFile }, or omitted/false to skip the wrapper. |

What it does for you

  • Blocks test files from the bundle. All three apps had their own copy of the same two regexes.
  • Adds every alias target to watchFolders. Metro watches only the project root by default, so a symlinked workspace package outside it is read once and never again — edits to a shared package appear to do nothing until the bundler is restarted. This is the single easiest thing to forget, which is why it is automatic here.
  • Applies Uniwind outermost. It has to be the last wrapper, and doing it by hand is how it ends up in the wrong place.

watchFolders are merged and de-duplicated, so passing an alias that is already watched is harmless.

Project-specific blocks stay in the project

superpool blocks Hardhat's build output:

blockList: [/[/\\]packages[/\\]contracts[/\\](cache|artifacts|coverage|typechain-types)[/\\].*/]

That is not shared policy — it exists because Metro watches the whole monorepo while Hardhat creates and deletes lock files under packages/contracts/cache during compilation, and a file vanishing mid-watch kills the watcher with ENOENT, taking the dev server down whenever contracts are compiled. Real variance, and it belongs where the reason lives.