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

rn-oxc-custom-plugin

v0.2.1

Published

Custom oxlint rules for React Native + Expo SDK 55 / React 19 / expo-router. Plugin name: rn-expo.

Readme

rn-oxc-custom-plugin

Custom oxlint rules for React Native + Expo. Companion to the operational best-practices catalog under docs/.

Built on the oxlint JS plugin alpha (March 2026, ESLint v9-compatible). Rules are also runnable under ESLint with no changes.

Status

v0.2.1. 11 rules across 8 domains. Battle-tested on a production Android-primary RN/Expo app before extraction. Filename gates are configurable — works for both monorepo (apps/mobile/) and flat (repo-root app/ + src/) layouts.

Install

pnpm add -D rn-oxc-custom-plugin

In .oxlintrc.json:

{
  "jsPlugins": ["rn-oxc-custom-plugin"],
  "rules": {
    "rn-expo/required-wrappers-gesture-handler-root": "error",
    "rn-expo/i18n-no-hardcoded-jsx-text": "warn",
    "rn-expo/color-tokens-no-hex-literal-in-component": "warn",
    "rn-expo/power-short-interval-without-appstate": "error",
    "rn-expo/storage-kv-store-key-prefix": ["error", { "prefix": "^myapp:[\\w-]+:v\\d+$" }],
    "rn-expo/router-screen-conventions-default-export-required": "error",
    "rn-expo/router-screen-conventions-group-stack-requires-drawer-toggle": "error",
    "rn-expo/router-screen-conventions-layout-requires-error-boundary": "error",
    "rn-expo/env-expo-public-prefix-only": "error",
    "rn-expo/imports-flashlist-estimated-item-size": "error",
    "rn-expo/compat-no-es2023-array-methods": "error"
  }
}

The plugin's lint-reference name is rn-expo (rule keys are rn-expo/<rule>).

For a complete drop-in starter — including the oxlint built-in plugins (react, react-perf, jsx-a11y, promise), no-restricted-imports bans for AsyncStorage / sentry-expo / expo-av / raw Image from react-native / etc., React-19 overrides, and pre-commit wiring — see examples/.oxlintrc.json and examples/README.md.

Rules

| Rule | Domain | Default | |------|--------|---------| | required-wrappers-gesture-handler-root | required-wrappers | error | | i18n-no-hardcoded-jsx-text | i18n | warn | | color-tokens-no-hex-literal-in-component | color-tokens | warn | | power-short-interval-without-appstate | power | error | | storage-kv-store-key-prefix | storage | error (requires prefix option) | | router-screen-conventions-default-export-required | router | error | | router-screen-conventions-group-stack-requires-drawer-toggle | router | error (configurable: group, identifier) | | router-screen-conventions-layout-requires-error-boundary | router | error (configurable: group) | | env-expo-public-prefix-only | env | error | | imports-flashlist-estimated-item-size | imports/lists | error | | compat-no-es2023-array-methods | compat | error |

Each rule's rationale is in docs/ — start with docs/00-index.md.

Filename gates (configurable)

Most rules scope themselves to mobile-app source via a path prefix. Configure via shared settings:

{
  "settings": {
    "rn-expo": {
      // Defaults to ["apps/mobile"] (preserves pre-0.1 behavior).
      "appRoots": ["apps/mobile"]
    }
  }
}

Common shapes:

| Layout | appRoots | |--------|-----------| | Monorepo with apps/mobile/ (default) | ["apps/mobile"] | | Flat repo with app/ and src/ at the root | ["."] | | Multi-app monorepo | ["apps/mobile", "apps/driver"] |

Within each root, rules look for app/ (Expo Router routes), src/ (library code), or src/components/ as appropriate. The exact sub-pattern is per rule — see each rule's source under src/rules/. The required-wrappers-gesture-handler-root and imports-flashlist-estimated-item-size rules don't depend on app roots and run on any matching file.

Contributing

See CONTRIBUTING.md. New rules need a topic file under docs/ (or an extension of an existing one) and a tested rule under src/rules/<topic>/<slug>.ts.

License

MIT — see LICENSE.