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

@bunin/sparkling-webify

v1.13.0

Published

Add Lynx for Web preview/build support to Sparkling projects.

Readme

@bunin/sparkling-webify

한국어 | English

Add Lynx for Web preview/build support to Sparkling projects.

@bunin/sparkling-webify is a Bun-first CLI that adds a safe Lynx for Web preview setup to an existing Sparkling/Lynx project. It treats Sparkling as the native iOS/Android layer and does not claim that Sparkling has an official first-class Web target.

Install and run

bunx @bunin/sparkling-webify init
bun run web
bun run build:web

For a monorepo app:

bunx @bunin/sparkling-webify init --cwd apps/mobile

Commands

sparkling-webify init [--cwd path] [--force] [--yes] [--overwrite] [--dry-run] [--no-install]
sparkling-webify doctor [--cwd path]
sparkling-webify print [--cwd path]
sparkling-webify clean [--cwd path] [--scripts] [--deps] [--restore] [--all] [--dry-run]

init detects a Sparkling/Lynx project, installs the missing Web dependencies, adds safe scripts, patches an existing Lynx config, and creates an owned web/ host project. The host has a real web/src/main.ts entry and serves dist/main.web.bundle through lynx-view. It asks before creating a missing root lynx.config.ts or web/ host; use --yes for non-interactive setup. It backs up modified package.json and existing config files as *.bak.sparkling-webify.

The generated preview uses the current @lynx-js/web-core/client initialization entrypoint. web first produces the Web bundles, then starts the host at /; build:web also produces the production host. See the Rspeedy CLI documentation and Lynx Web integration guide.

print is equivalent to init --dry-run. clean removes the owned generated web/ host by default; scripts, dependencies, and backups require explicit flags.

Scripts added

When no conflict exists, the CLI adds:

{
  "web": "rspeedy build --environment web && bun run --cwd web dev",
  "web:dev": "bun run web",
  "dev:web": "bun run web",
  "build:web": "rspeedy build --environment web && bun run --cwd web build",
  "doctor:web": "sparkling-webify doctor"
}

Existing scripts are preserved. In a conflict, sparkling:web or sparkling:build:web is added where possible; use --overwrite only when replacement is intended.

Limitations

  • This is not official Sparkling Web support.
  • It is a Lynx for Web preview bridge for Sparkling/Lynx apps.
  • Native APIs may not work on Web unless they are polyfilled or mocked.
  • sparkling-navigation is bridged through Lynx for Web's native-module hook: open, navigate, and close switch the lynx-view bundle or browser history. Sparkling-native options and non-bundle schemes remain native-only.
  • sparkling-storage and sparkling-media may need future Web shims.
  • Browser preview is not guaranteed to exactly match iOS or Android behavior.
  • It does not provide SEO or SSR.
  • It does not replace native testing.

Development

bun install
bun run check
bun run build