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

@runilib/react-formbridge

v1.1.0

Published

Part of the runilib ecosystem (https://runilib.dev). Schema-first, headless form engine for React and React Native. Define fields once with a type-safe builder API, validate with Zod/Yup/Joi/Valibot, and render anywhere - web or native - with zero platfor

Readme

Part of the runilib ecosystem - React & React Native libraries that share the same API on web and native.

@runilib/react-formbridge is the forms package of runilib. It lets you define a form once and reuse the same API across web and native. It generates fields from a schema and handles validation, conditional logic, persistence, async options, and multi-step flows.

Full documentation: https://react-formbridge.runilib.dev

This repository is mirrored from the runilib monorepo. Active development happens in the monorepo. Open or in-progress work may appear here as automated draft PRs for visibility, and issues opened here can be mirrored back to the monorepo.

What It Solves

  • One form schema for React web and React Native
  • Generated fields instead of manual wiring
  • Built-in validation and conditional visibility
  • Persistence, dynamic forms, readonly views, and wizard flows

Install

npm install @runilib/react-formbridge

Quick Example

import type { FormSchema } from '@runilib/react-formbridge';
import { field, useFormBridge } from '@runilib/react-formbridge';

const schema = {
  email: field.email('Email').required('Email is required'),
  password: field.password('Password').required().strong(),
  terms: field.checkbox('I accept the terms').mustBeTrue(),
} satisfies FormSchema;

export function SignUpForm() {
  const { Form, fields } = useFormBridge(schema, {
    persist: { key: 'signup-form' },
  });

  return (
    <Form onSubmit={async (values) => console.log(values)}>
      <fields.email />
      <fields.password />
      <fields.terms />
      <Form.Submit>Create account</Form.Submit>
    </Form>
  );
}

Type-safe field overrides

Generated fields expose only the override props that make sense for their platform and field type.

<fields.email inputProps={{ autoComplete: 'email', inputMode: 'email' }} />
<fields.bio textareaProps={{ rows: 4 }} />
<fields.country selectProps={{ size: 5  }} />
  • Text-like fields expose inputProps
  • textarea fields expose textareaProps on web
  • select fields expose selectProps on web
  • Native fields do not expose web-only props such as className, textareaProps, or selectProps

When you need to annotate a schema, prefer satisfies FormSchema over : FormSchema so TypeScript keeps the exact field types and the right autocomplete for each generated field.

React Native TypeScript

To make TypeScript and your IDE resolve the native type surface, enable the react-native condition in your app tsconfig.json:

{
  "compilerOptions": {
    "customConditions": ["react-native"]
  }
}

Documentation

  • Website: https://react-formbridge.runilib.dev
  • API reference: https://react-formbridge.runilib.dev/docs
  • runilib ecosystem overview: https://runilib.dev

Contributing

Bug reports and feature requests are welcome in this repo's issues. They are mirrored to the monorepo where the work happens.

If you want to change the package itself, work from the monorepo and use this flow before opening a PR:

  1. Make the code, docs, and test updates in packages/react-formbridge.
  2. Run yarn changeset from the monorepo root and include @runilib/react-formbridge.
  3. Run yarn check:fix, yarn typecheck, and yarn test.
  4. Optionally run npm run --prefix packages/react-formbridge prepublishOnly for an extra publish-safety check.
  5. Open the PR against the monorepo main branch. After merge, GitHub creates a package-specific release PR so this library can be published independently from the others.

Looking for something to start with? Browse good first issues.

See CONTRIBUTING.md for the full guide.