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

magic-native-ui

v0.2.1

Published

Add Magic Native UI components to your Expo app.

Downloads

282

Readme

magic-native-ui

The CLI that adds Magic Native UI components to an Expo app. It copies source files into your project — there is no component library to install.

Requires Expo SDK 57+ (React Native 0.86+), React 19 and Tailwind CSS v4.

Usage

npx magic-native-ui@latest init
npx magic-native-ui@latest add button dialog card
npx magic-native-ui@latest icon add heart star

Commands

| Command | Description | | --- | --- | | init | Writes components.json, creates the Tailwind entry stylesheet with theme tokens, configures Metro for Uniwind, adds the @/* alias and uniwind-env.d.ts, and installs the base dependencies. | | add [components...] | Adds components and everything they depend on. With no arguments it prompts. | | list (ls) | Lists the components in the registry. | | view <component> | Shows a component's dependencies and files. | | diff [component] | Reports which installed components have drifted from the registry. | | icon add [icons...] | Vendors Hugeicons into lib/hugeicons/icons.ts. With no arguments it prompts for a search term. | | icon list [query] (ls, search) | Searches the 5,437 free Hugeicons by name or alias. |

Flags

init — -y/--yes, --css <path>, --base-color <color>, --registry <url>, --skip-install, -c/--cwd <dir>

add — -y/--yes, -o/--overwrite, -a/--all, -p/--path <dir>, --dry-run, --skip-install, --registry <url>, -c/--cwd <dir>

icon add — -y/--yes, -o/--overwrite, -p/--path <dir>, --dry-run, --skip-install, --registry <url>, -c/--cwd <dir>

icon list — -l/--limit <count>, --registry <url>, -c/--cwd <dir>

Icons

The free Hugeicons set is 6.18 MB, so nothing is installed. The first icon add copies a small renderer into lib/hugeicons/, and every run merges the icons you named into lib/hugeicons/icons.ts — sorted, deduplicated and keeping whatever is already there.

import { Icon, HeartIcon } from '@/lib/hugeicons'

<Icon icon={HeartIcon} size={20} className="text-primary" />

Icons are addressed by registry name (heart), by an upstream alias (plus for AddIcon) or by the export itself (HeartIcon). Exports keep their upstream Hugeicons names, so anything you find in their docs is the same symbol here. Since the CLI regenerates the barrel, it refuses to write to it if you have added code of your own — keep that in a separate file.

Browse the set at native-ui.magicwebs.ai/docs/icons.

components.json

{
  "style": "default",
  "tsx": true,
  "tailwind": { "css": "global.css", "baseColor": "neutral" },
  "iconLibrary": "lucide",
  "aliases": {
    "components": "@/components",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "utils": "@/lib/utils",
    "hooks": "@/hooks"
  },
  "registry": "https://native-ui.magicwebs.ai/r",
  "metroConfig": "metro.config.js"
}

Aliases are resolved through your tsconfig.json paths, and registry sources are rewritten to match them on the way in.

MAGIC_NATIVE_UI_REGISTRY overrides the default registry URL, which is useful when developing against a local registry.

Development

bun install
bun run build          # tsup -> dist/index.js
bun run typecheck