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

@allior/wmake-cli

v1.0.5

Published

WMake CLI: build widgets, base64 encode assets, generate fields

Downloads

882

Readme

@allior/wmake-cli

CLI for streamiby / wmake: widget build, base64 encoding, field generation.

Installation

npm add -g @allior/wmake-cli
# or from the monorepo:
cd cli && npm install && npm run build

Commands

wmake-cli widget

Builds the widget into text files (html.txt, js.txt, css.txt, fields.txt, data.txt) in the build/ directory.

wmake-cli widget
wmake-cli widget --full       # full bundle without CDN (legacy build style)
wmake-cli widget --archive    # create a widget.zip archive in dist/
wmake-cli widget --no-ini     # skip widget.ini generation
wmake-cli widget --html custom.html --js bundle.js  # custom filenames

Available options:

  • -b, --bundle: Build a full bundle without CDN deps.
  • -s, --se-dir <dir>: Directory containing StreamElements files.
  • --no-wmake-versions: Do not include wmake versions in fields.
  • --no-test-alerts: Do not include test alerts in fields.
  • --no-test-messages: Do not include test messages in fields.
  • --html <name>: Output HTML filename (default: html.txt).
  • --css <name>: Output CSS filename (default: css.txt).
  • --js <name>: Output JS filename (default: js.txt).
  • --data <name>: Output data filename (default: data.txt).
  • --fields <name>: Output fields filename (default: fields.txt).
  • --no-ini: Do not generate widget.ini.
  • --minify: Minify HTML/JS/CSS output.
  • --obfuscate: Obfuscate JS output.
  • --out-dir <dir>: Directory for .txt files (default: build).
  • --zip-dir <dir>: Directory for the .zip archive (default: dist).
  • --output <type>: Output format: files, zip, or both (default: files).

wmake-cli base64

Converts images, videos, and SVG to base64 for use in the browser.

wmake-cli base64 <path>              # file or directory
wmake-cli base64 ./assets -o out     # output to file or directory
wmake-cli base64 ./img -b            # output with extra info

Available options:

  • -o, --output <path>: Output file or directory.
  • -b, --bundle: Include extra info (metadata and Data URL wrapper).

wmake-cli generate-fields

Merges fields.json with dynamic WMake versions and testing tools. This command is helpful when you want to update the source fields.json before building.

wmake-cli generate-fields

wmake-cli fields-ts

Generates fields.json from a TypeScript module. The module must export an array of field objects as its default export.

wmake-cli fields-ts ./src/fields.ts
wmake-cli fields-ts ./src/fields.ts custom-fields.json

wmake-cli extract-test-data

Test data lives in streamelements/src/assets as TS objects; this command is kept for compatibility.

Development

npm install
npm run build    # compile
npm run dev      # run via bun (src/bin.ts)
npm start        # run compiled dist/bin.js