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

create-react-agent-stack

v0.1.2

Published

Scaffold a React Native app that a coding agent can build in without breaking it

Readme

React Agent Stack

The React template that makes coding agents write production-grade React Native.

npx create-react-agent-stack@latest

Why skills are not enough

A skill only helps on the turns it is loaded, and loading is the agent's call. It matches the turn against a one-line description and guesses, so a correct, well-written skill still misses most of the turns it was written for. Beyond that:

  • Once loaded, it stays in context after a compaction, on work it has nothing to do with.
  • Two skills on one topic disagree, and the agent picks.
  • A skill can be wrong, and nothing checks it.

None of this fails a command, so the code still lands.

Plain React is not the safe part either. Across eight models on the same React tasks, every model introduced new issues, 17 to 67 per 100 trials, 77% of them bugs rather than taste.

New issues per 100 trials, eight models

Chart by @aidenybai. React Native has far less training data and much less headroom: a phone has a fraction of a laptop's compute power.

How it works

Everything a command can check is a rule. Everything else is a doc.

| | | | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | Deterministic | 49 lint rules across 6 oxlint plugins, react-doctor, a React Compiler bailout check, types, tests. A failing rule cannot be skipped. | | Probabilistic | 13 docs behind one router table: which library, which API, where state lives, how data flows. Patterns no command can check. |

bun verify runs seven checks: lint, format, types, tests, Expo config, docs, React Compiler. It also runs at the end of every agent turn, so the agent gets the failure while it still holds the context that caused it. After five red turns it stops and explains the problem in plain words.

Results

The same app, built twice by the same model from the same words. Once here, once in a plain create-expo-app.

| | here, against plain Expo | | -------------------------------- | ------------------------------------ | | React work for one keystroke | 22x fewer re-renders, 35x faster | | clearing a search field | 10x fewer re-renders, 19x faster | | react-doctor score | 71% higher | | blind judge, six questions | 2x the score | | right doc opened before any code | 100% |

Read the eval. Both finished apps, both request texts, the frozen key and every script are committed, so each number can be checked against the code that produced it.

The stack

Bun · Expo · expo-router · React Compiler · TanStack Query · Legend State · LegendList · Unistyles · Nitro Modules · Nitro Fetch · MMKV · Turbo Image · Plain Text · Keyboard Controller · Reanimated · Gesture Handler · oxlint · oxfmt

Each is the faster option on a phone, and most shipped after the training data. Left alone, an agent reaches for useState, fetch and StyleSheet.create, and writes the wrong pattern when it does reach for the right library. So the choice is made here, and each doc carries the recommended patterns for correct, performant and robust code.

Your project

src/app/            expo-router screens
src/components/     themed primitives, the examples the agent copies
docs/               13 topics, routed by docs/index.md
tooling/            6 oxlint plugins, 49 rules
scripts/verify.ts   the gate
AGENTS.md           read by Claude Code, Codex and Cursor
bun ios                # run it
bun verify             # the gate, 7 checks
bun fix                # autofix lint and formatting
bun doctor             # react-doctor
bun compiler:check     # every component the React Compiler bailed on

This repo

template/     what lands in your project
packages/     the create-react-agent-stack CLI
eval/         the eval: key, scripts, both finished apps

Pre-1.0. Issues welcome. MIT.