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

@xaui/hybrid

v0.9.3

Published

XAUI React Native components for the web: the @xaui/native API rendered in the browser and in mobile webviews through react-native-web

Readme

@xaui/hybrid

XAUI's React Native components, rendered for the web. @xaui/hybrid depends on @xaui/native and re-exports it; react-native-web turns those components into DOM nodes. A Hybrid Button is the Native Button — same props, same slots, same theme — in a browser, a Next.js or Vite app, or a mobile webview.

npm downloads License: MIT

XAUI — ui.xtartapp.com: a Button, a Switch and a Slider

Docs · Components · Setup guide

Pre-1.0. 0.9.x releases are patch versions, and a patch can still rename or remove a prop until 1.0.0. Read the release notes before you update.

There is nothing to learn twice: the component documentation describes both packages. The only thing that differs is telling your bundler that react-native means react-native-web.

Installation

npm i @xaui/hybrid react-native-web react-dom react-native-reanimated react-native-worklets

Add react-native-svg for charts and icons and react-native-gesture-handler for draggable components.

Bundler setup

Two rules, whatever the bundler:

  1. react-native resolves to react-native-web.
  2. .web.tsx / .web.ts files win over their platform-neutral siblings.

With Next.js and Turbopack:

// next.config.ts
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
  transpilePackages: [
    '@xaui/hybrid',
    '@xaui/native',
    'react-native-web',
    'react-native-reanimated',
    'react-native-worklets',
    'react-native-gesture-handler',
    'react-native-svg',
  ],
  turbopack: {
    resolveAlias: {
      'react-native': 'react-native-web',
      'react-native-svg': 'react-native-svg/src/ReactNativeSVG.web',
    },
    resolveExtensions: [
      '.web.tsx',
      '.web.ts',
      '.web.jsx',
      '.web.js',
      '.tsx',
      '.ts',
      '.jsx',
      '.js',
    ],
  },
}

export default nextConfig

Webpack, Vite and TypeScript are covered in the setup guide.

Usage

import { XAUIProvider } from '@xaui/hybrid/theme'
import { Button } from '@xaui/hybrid/button'

export default function App() {
  return (
    <XAUIProvider>
      <Button variant="primary" onPress={save}>
        <Button.Label>Save</Button.Label>
      </Button>
    </XAUIProvider>
  )
}

Every @xaui/native subpath resolves from @xaui/hybrid. One Native point is one CSS pixel, and components that measure layout or attach a gesture run on the client — mark them 'use client' in Next.js.

Coding with an AI agent

Install the XAUI skill so your agent reads the real API instead of guessing it:

npx skills add https://ui.xtartapp.com/skills/xaui/SKILL.md

The docs also publish an llms.txt and a Markdown version of every component page.

Links

License

MIT