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

@otfdashkit/ui-native

v0.1.9

Published

OTF UI Native — cross-platform component library for React Native + Expo. Same component API as @otfdashkit/ui (web) — port a screen by changing the import.

Readme


What you get

  • 80 primitives — Button, Card, Input, Avatar, Badge, Chip, Sheet, Switch, Tabs, Toast, Text, Stack — same names and props as the web SDK
  • Apple-Fitness-style blocks — ActivityRings, WeekStrip, StepperBig, MetricCard, SegmentedControl, MiniBarChart
  • Animated patterns — shaders, marquees, parallax scrolls (heavy peers ship via @otfdashkit/cli so you only pay for what you use)
  • 17 shared themes — same @otfdashkit/tokens palette as web; switch palette via the defaultTheme prop on <OTFProvider>
  • One codebase, three targets — Expo Router app renders on iOS, Android, and web export

Live demos

Install

pnpm add @otfdashkit/ui-native @otfdashkit/tokens
# or:  npm install @otfdashkit/ui-native @otfdashkit/tokens
# or:  bun add @otfdashkit/ui-native @otfdashkit/tokens

npx expo install react-native-svg react-native-safe-area-context

Quick start

// App.tsx
import { OTFProvider, Button, Card, Input } from '@otfdashkit/ui-native'

export default function App() {
  return (
    <OTFProvider>
      <Card>
        <Input placeholder="Email" />
        <Button variant="primary" size="lg" onPress={handlePress}>
          Continue
        </Button>
      </Card>
    </OTFProvider>
  )
}

One root, sensible defaults — the provider wires up OTF tokens, dark mode, and font config so your screens just render. The same component names and props work on web (@otfdashkit/ui); porting a screen is a one-line import change.

Cross-platform parity

| Component | Web (@otfdashkit/ui) | Native (@otfdashkit/ui-native) | |---|---|---| | <Button> | variant + size, focus-visible ring | press states, haptic-ready, same prop API | | <Card> | nested-ring surface | elevation tokens, same prop API | | <Input> | error / hint / floating-label | error / hint / floating-label, Reanimated spring | | <Avatar> | image + initials fallback | image + initials fallback | | <Text> | typography scale tokens | typography scale tokens |

Both read from @otfdashkit/tokens — flip the theme on web and native at once.

Theming

<OTFProvider defaultTheme="ocean-teal">
  <YourScreens />
</OTFProvider>

All 17 themes from @otfdashkit/tokens are available — pick at the provider, switch at runtime with useThemeName().

Advanced — custom config

For users who need to derive a custom merged config (extra fonts, custom tokens, animation driver tweaks):

import { OTFProvider, createOTFConfig, otfConfig } from '@otfdashkit/ui-native'

const config = createOTFConfig({
  ...otfConfig,
  fonts: { /* your font set */ },
})

<OTFProvider config={config}>
  <YourScreens />
</OTFProvider>

Heavy-peer components

Skia shaders, Reanimated worklets, MMKV, Notifee — anything that would force every consumer to install peers they don't need — ships through @otfdashkit/cli instead of npm. Source-copy install, no forced peers:

npx @otfdashkit/cli init
npx @otfdashkit/cli add shockwave

Works with

  • Claude Code, Cursor, Lovable, Bolt — every component ships structured JSDoc + tested prompts in ai/prompts/, including Expo Go imports, safe-area handling, and theme tokens

Related packages

Community

discord.gg/gpXyu7SqNZ — questions, bugs, feature requests.

Status

v0.1.x — alpha. APIs may change before 1.0. Pin exact versions in production.

License

MIT. You own the source. Eject any time. Copyright © otfdashkit.