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

@thelacanians/vue-native-cli

v0.20.0

Published

CLI for creating and running Vue Native apps

Readme

@thelacanians/vue-native-cli

CLI for creating and running Vue Native apps on iOS, Android, and macOS.

Install

npm install -g @thelacanians/vue-native-cli
# or
bun install -g @thelacanians/vue-native-cli

Commands

vue-native create <name>

Scaffold a new Vue Native project with everything you need:

vue-native create my-app
cd my-app
bun install

Generated project structure:

my-app/
  app/
    main.ts          # Entry point
    App.vue          # Root component
    generated/       # TypeScript wrappers generated from <native> blocks
    pages/
      Home.vue       # Home screen
  ios/
    Sources/         # Swift source files
    project.yml      # XcodeGen spec
  android/
    app/             # Android app module
    build.gradle.kts
    settings.gradle.kts
    gradlew          # Bundled Gradle wrapper script
    gradle/wrapper/  # Wrapper properties and JAR
  native/            # Bundled native runtime source
    android/VueNativeCore/     # Linked locally as :VueNativeCore
    ios/VueNativeCore/         # Linked as a local Swift package
    shared/VueNativeShared/    # Shared Apple runtime
  vite.config.ts
  package.json
  tsconfig.json

The scaffold is self-contained: Android uses the bundled Gradle wrapper and local :VueNativeCore module, while iOS uses the bundled local Swift package. This also ensures code generated from <native> blocks is compiled into both apps. vue-native run ios generates the Xcode project from project.yml when needed; install XcodeGen with brew install xcodegen.

vue-native dev

Start the dev server with hot reload:

vue-native dev
vue-native dev --port 9000  # Custom port
vue-native dev --android    # Android bundle and emulator detection
vue-native dev --platform macos

Runs Vite in watch mode and starts a WebSocket server on port 8174 (default). A development bundle has one compile-time platform target, so start a separate command when switching platforms. --ios and --android select the bundle target and launch helper; --platform also supports macOS without launching a simulator. Combining --ios and --android, or selecting a target that conflicts with a launch flag, is rejected.

With no target selector, the command does not add VUE_NATIVE_PLATFORM; an existing shell value is preserved. This lets an explicit Vite plugin option apply when the variable is absent. If neither the environment nor the Vite plugin specifies a platform, direct Vite behavior defaults to iOS.

vue-native run <platform>

Build and launch the app on a simulator/emulator:

# iOS
vue-native run ios
vue-native run ios --simulator "iPhone 16 Pro"
vue-native run ios --device

# Android
vue-native run android

# JS bundle only (no native project required)
vue-native run ios --bundle-only

Missing native projects or build products are errors. Pass --bundle-only if you intentionally want just dist/vue-native-bundle.js.

iOS options

| Option | Default | Description | |--------|---------|-------------| | --simulator <name> | iPhone 16 | Simulator device name | | --device | false | Build for physical device | | --scheme <name> | auto-detect | Xcode scheme | | --bundle-id <id> | auto-detect | App bundle identifier | | --bundle-only | false | Stop after the JS bundle |

Android options

| Option | Default | Description | |--------|---------|-------------| | --package <name> | auto-detect | Override the application ID used to launch the app | | --activity <name> | .MainActivity | Launch activity |

Before an Android run or native build, the CLI copies dist/vue-native-bundle.js into the app's assets directory automatically. The command also supplies its platform to Vite as VUE_NATIVE_PLATFORM.

vue-native doctor

Print toolchain and project health. --json emits { schemaVersion, ok, cwd, checks }.

vue-native doctor
vue-native doctor --json

vue-native inspect

Print a project snapshot: config, native hosts, JS bundle, and generated-module directories. --json emits { schemaVersion, cwd, config, native, bundle, generated }.

vue-native inspect
vue-native inspect --json

vue-native capabilities

Print the framework capability manifest: built-in components, native modules with per-platform status, and known limitations. --json emits { schemaVersion, framework, platforms, components, modules, limitations }.

vue-native capabilities
vue-native capabilities --json

vue-native generate

Generate Swift, Kotlin, and TypeScript from <native> blocks. Parse errors fail the command. Generated files are committed atomically (write, then prune stale output).

vue-native generate
vue-native generate --watch

vue-native build <platform>

Create an iOS, Android, or macOS artifact after bundling the JavaScript:

vue-native build ios
vue-native build android --aab
vue-native build macos
vue-native build android --mode debug

--mode accepts debug or release (the default). Use --output to choose the artifact directory, --scheme for an iOS or macOS Xcode scheme, and --aab to create an Android App Bundle instead of an APK. Missing native projects or missing .app / APK / AAB / xcarchive products fail the command. Pass --bundle-only to stop after the JavaScript bundle.

run and build propagate their platform to Vite automatically. Their target takes precedence over an explicit vueNative({ platform: '...' }) option, so existing platform-pinned configs still compile for the selected CLI platform.

Development workflow

# Terminal 1: Start dev server
vue-native dev --ios

# Terminal 2: Build and run on iOS simulator
vue-native run ios

# Edit your Vue files - changes hot reload automatically

License

MIT