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

@blazefw/native

v0.1.1

Published

BlazeFW native renderer — maps Stack, Text, Action, and Input primitives to React Native View, Text, Pressable, and TextInput with dp units and a built-in DEFAULT_THEME palette

Readme

@blazefw/native

BlazeFW native renderer — maps the four semantic primitives (Stack, Text, Action, Input) to React Native components. Write your UI once with BlazeFW primitives and render it on iOS, Android, and the web without any platform-specific code.

Installation

npm install @blazefw/native @blazefw/primitives
# peer dependencies
npm install react react-native

Quick start

import { Stack, Text, Action, Input } from '@blazefw/native';

function ProfileCard({ user }) {
  return (
    <Stack direction="column" gap={3} padding={4} background="surface" radius="md">
      <Text variant="title" weight="semibold">{user.name}</Text>
      <Text variant="caption" color="muted">{user.email}</Text>
      <Action variant="primary" onPress={() => editProfile(user.id)}>
        Edit Profile
      </Action>
    </Stack>
  );
}

Components

<Stack> — View-based layout

Renders as a React Native View with flexDirection, alignItems, justifyContent, and gap applied as StyleSheet props.

<Stack
  direction="column"     // 'row' | 'column' | 'row-reverse' | 'column-reverse'
  align="center"         // 'start' | 'center' | 'end' | 'stretch' | 'baseline'
  justify="start"        // 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'
  gap={2}                // dp units (2 = 8dp)
  padding={4}            // inner padding (also paddingX, paddingY, etc.)
  background="surface"   // ColorToken resolved to hex via DEFAULT_THEME
  radius="lg"            // 'none' | 'sm' | 'md' | 'lg' | 'full'
  wrap
>
  {children}
</Stack>

<Text> — Native typography

Renders as a React Native Text component.

<Text variant="heading" weight="bold" color="primary">
  Hello from native
</Text>

| Variant | Approximate size | |---|---| | display | 36sp | | title | 20sp | | heading | 24sp | | body | 16sp | | label | 14sp | | caption | 12sp | | code | 14sp monospace | | overline | 12sp uppercase |

<Action> — Pressable button

Renders as Pressable (with ActivityIndicator for loading state). All URLs open via Linking.openURL().

// Button
<Action variant="primary" onPress={handleSubmit} loading={isLoading}>
  Save changes
</Action>

// External link (opens in browser via Linking)
<Action variant="link" href="https://blazefw.dev">
  Documentation
</Action>

Note: external and as props are web-only and are silently ignored in native.

<Input> — TextInput field

Renders as TextInput with ARIA accessibility attributes for new-arch React Native.

<Input
  type="password"
  variant="outline"
  fieldLabel="Password"
  placeholder="Enter password"
  error={errors.password}
  required
  onChange={(value) => setPassword(value)}
  onSubmit={(value) => handleLogin(value)}
/>

Theming

Native uses a plain DEFAULT_THEME object (no CSS variables). Import and read it directly:

import { DEFAULT_THEME } from '@blazefw/native';

// DEFAULT_THEME is Record<ColorToken, string> (hex colors)
console.log(DEFAULT_THEME.primary);    // '#6366f1'
console.log(DEFAULT_THEME.surface);    // '#1e1e2e'
console.log(DEFAULT_THEME.danger);     // '#ef4444'

Override by wrapping with a custom theme provider (planned for v0.2).

Spacing

All SpaceValue integers map to n × 4dp (density-independent pixels):

| Token | dp | |---|---| | 1 | 4dp | | 2 | 8dp | | 4 | 16dp | | 6 | 24dp | | 8 | 32dp |