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

stonly-sdk-cli

v0.9.4

Published

Stonly Mobile SDK CLI — detect your framework, install the SDK, and wire up your project

Downloads

22

Readme

stonly-sdk-cli

Stonly Mobile SDK CLI — detect your framework, install the SDK, and wire up your project.

Install

npx stonly-sdk-cli <command>
# or globally:
npm i -g stonly-sdk-cli
stonly-sdk-cli <command>

The legacy stonly-setup binary is preserved as an alias for stonly-sdk-cli init.

Quick start

# 1. Detect the framework, install the SDK, and wire up the project
npx stonly-sdk-cli init

# 2. Verify the integration (and repair / update if needed)
stonly-sdk-cli doctor
stonly-sdk-cli doctor --fix
stonly-sdk-cli doctor --update

init is fully interactive and never contacts the Stonly backend — you provide the widgetId and URL scheme(s) by hand (find them in the Stonly dashboard).

Dirty working tree: init, doctor --fix, and doctor --update modify your source files. If the project's Git working tree has uncommitted changes, the CLI warns you and asks for confirmation (Y/n) before touching anything. Pass --yes to skip the prompt in non-interactive runs.

Supported targets

init detects your project automatically and lets you confirm or change the target:

| target | Platform | |---|---| | android-xml | Android — XML (Views) | | android-compose | Android — Jetpack Compose | | android-hybrid | Android — Hybrid (XML + Compose) | | ios-uikit | iOS — UIKit | | ios-swiftui | iOS — SwiftUI | | react-native | React Native | | flutter | Flutter |

Compose projects additionally get the navigation observer wired in:

StonlyNavigationObserver(navController) { Stonly.onScreenChanged(it) }

Command reference

init

Detects the framework, installs the SDK dependency (CocoaPods / SPM / XcodeGen for iOS, JitPack/Gradle for Android, npm/pub for cross-platform), wires up the widget id, URL scheme (Info.plist / AndroidManifest.xml), and the deep-link handlers. Writes .stonly/stonly.yaml.

| Flag | Purpose | |---|---| | -p, --path <dir> | Project path (skip prompt) | | -w, --widget-id <uuid> | Widget ID (skip prompt) | | -u, --url-scheme <scheme> | URL scheme (repeat for iOS + Android) | | -t, --target <target> | Force a target, skip the detection prompt | | --sentry <on\|off> | Allow SDK error reports to Stonly Sentry (skip prompt; default: on). off injects the platform opt-out call | | -y, --yes | Auto-accept the detected target | | -d, --dry-run | Preview changes without modifying files |

doctor

Health-checks the integration: project type, .stonly/stonly.yaml, SDK installed and on the latest stable, URL scheme present, and the deep-link / widget wiring.

| Flag | Purpose | |---|---| | --fix | Repair missing SDK wiring using .stonly/stonly.yaml | | --update | Bump the SDK coordinate to the latest stable version | | -y, --yes | Skip the dirty-working-tree confirmation |

Directory layout

After stonly-sdk-cli init:

.stonly/
└── stonly.yaml        # project config (widgetId, platforms, framework, target)

Global flags

  • --cwd <path> — run in the given directory (default: current)
  • --help, -h — show help
  • --version, -v — show version
  • --dry-run — preview without writing (supported by init)

Development

npm install
npm test          # run vitest
npm run build     # produce dist/

SDK version pinning

init pins the latest stable SDK release (JitPack for Android, GitHub Releases for iOS). Override with STONLY_SDK_VERSION, STONLY_ANDROID_SDK_VERSION, or STONLY_IOS_SDK_VERSION when network access is restricted.