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

@stlite/cli

v0.1.3

Published

Command-line tools for converting a local Streamlit project into a Stlite app.

Readme

@stlite/cli

Command-line tools for converting a local Streamlit project into a Stlite app.

npx @stlite/cli <command> <path>
# or, after global install:
npm install -g @stlite/cli
stlite <command> <path>

A Python distribution with the same stlite bin is also available on PyPI as stlite-clipip install stlite-cli or uvx stlite-cli. The Python CLI covers share and html (which produce byte-identical output to the JS version); web and desktop are Node-only because they rely on Pyodide-in-Node tooling.

Commands

stlite share <path>

Encode a project into a hash-fragment URL that loads on https://share.stlite.net/. The whole project (text + binary files + requirements) gets serialized as a protobuf, base64url-encoded, and embedded in the URL hash.

stlite share ./my-project
# https://share.stlite.net/#!CgZhcHAucHkS...

--editable switches the base URL to https://edit.share.stlite.net/ (the sharing editor).

stlite html <path>

Generate a single self-contained .html file that loads @stlite/browser from JSDelivr and embeds the project's files inline (text via JS template literals, binary via base64). Default output is stdout; pass -o file.html to write to disk.

stlite html ./my-project -o app.html

--runtime-version <ver> pins the @stlite/browser version the exported page loads from JSDelivr.

stlite web <path>

Package the project into a multi-file directory that runs offline on any HTTP server. The output bundles @stlite/browser's SPA, the Pyodide runtime, and a pre-vendored site-packages snapshot, so users don't fetch anything from a CDN at boot. Output goes to ./build by default; override with -o.

stlite web ./my-project -o ./out
python3 -m http.server -d ./out  # serves the app at http://localhost:8000/

stlite desktop <path>

Package the project into a Stlite Desktop directory (multi-file artifact + stlite-manifest.json) that's consumed by electron-builder to produce a standalone Electron app. Drop-in replacement for the deprecated dump-stlite-desktop-artifacts bin from @stlite/desktop — reads the same stlite.desktop field from the project's package.json (files, entrypoint, dependencies, requirementsTxtFiles, plus the manifest fields embed/nodeJsWorker/idbfsMountpoints/nodefsMountpoints/appMenu).

Common options

share/html accept:

  • <path> — the project directory (positional, required)
  • --entrypoint <name> — entrypoint script, default app.py
  • --requirements <path> — explicit requirements.txt; defaults to <path>/requirements.txt if present.

web and desktop accept -o, --out <dir> and --pyodideSource <url>. web also accepts --entrypoint and --requirements; desktop reads those from package.json#stlite.desktop instead.