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

@hawk2ui/editor-webview

v0.1.4

Published

Native webview sidecar package for Hawk2UI editor desktop dogfooding.

Readme

Hawk2UI Editor Webview Sidecar

This repository is a WebviewJS fork used to prove a native webview sidecar for the hawk2ui-editor example app.

It is not a Hawk2UI framework dependency. Keep this fork scoped to making import('@hawk2ui/editor-webview') work for editor dogfooding on the 64-bit desktop targets we expect to support.

Current Status

Verified locally:

  • Linux x64 GNU native binding builds.
  • The root package can import the native binding from webview.linux-x64-gnu.node.
  • A local tarball can be installed into a clean consumer project and imported as @hawk2ui/editor-webview.
  • The native package metadata, root package version, and Rust crate version are aligned at 0.1.4.

Not claimed:

  • Published npm availability for @hawk2ui/[email protected].
  • Production readiness.
  • Android, FreeBSD, 32-bit Windows, 32-bit Linux, or Linux armv7 support.
  • Built artifacts for every target in the desktop matrix.

The package name is @hawk2ui/editor-webview, matching the published @hawk2ui/* package family used by the framework packages.

Target Matrix

| Target | Status | Notes | | --- | --- | --- | | x86_64-pc-windows-msvc | Planned | 64-bit Windows on Intel/AMD. | | aarch64-pc-windows-msvc | Planned | 64-bit Windows on ARM. | | x86_64-apple-darwin | Planned | 64-bit macOS on Intel. | | aarch64-apple-darwin | Planned | 64-bit macOS on Apple Silicon. | | x86_64-unknown-linux-gnu | Verified locally | 64-bit Linux on Intel/AMD, built and smoke-tested locally. | | aarch64-unknown-linux-gnu | Planned | 64-bit Linux on ARM. |

The package.json NAPI targets, CI build matrix, and npm/ native package dirs are intentionally limited to this matrix.

System Dependencies

On Ubuntu/Debian Linux x64:

bun run setup

The setup script installs only the direct build dependencies:

pkg-config
libwebkit2gtk-4.1-dev
libxdo-dev

libwebkit2gtk-4.1-dev pulls the GTK, JavaScriptCoreGTK, libsoup, cairo, pango, atk, and GDK pixbuf development packages needed by the Rust GTK/WebKit crates.

If cargo check reports missing *.pc files, verify the development metadata:

pkg-config --modversion webkit2gtk-4.1 javascriptcoregtk-4.1 gtk+-3.0 libsoup-3.0

Having WebKit runtime packages installed is not enough; pkg-config needs the -dev packages.

Build

Install dependencies:

bun install

Build the Linux x64 native binding locally:

bun run build --target x86_64-unknown-linux-gnu

This produces:

webview.linux-x64-gnu.node

Other targets are expected to be built in CI or on matching host hardware.

For local package layout, copy the built binary into npm/linux-x64-gnu/:

bunx napi artifacts --output-dir . --npm-dir ./npm

bun run artifacts is the CI publish-style command and expects downloaded artifacts under ./artifacts; use the explicit command above for local builds.

Test

Default tests:

bun run test

Native import smoke test:

HAWK2UI_EDITOR_WEBVIEW_NATIVE_SMOKE=1 bun run test

Other checks:

bun run check
bun run lint

Local Editor Dependency

Create a local tarball after building:

bun pm pack --filename /tmp/hawk2ui-webview-linux-x64.tgz

Verify from a clean consumer:

mkdir -p /tmp/hawk2ui-webview-consumer
cd /tmp/hawk2ui-webview-consumer
bun init -y
bun add /tmp/hawk2ui-webview-linux-x64.tgz
bun -e "const webview = require('@hawk2ui/editor-webview'); console.log(typeof webview.Webview, typeof webview.getWebviewVersion)"

Expected output:

function function

The editor side should remain feature-gated while this is a local sidecar test:

HAWK2UI_EDITOR_WEBVIEW_SIDECAR=1

Runtime Smoke

Minimal local import check from this checkout:

bun -e "const webview = require('./index.js'); console.log(typeof webview.Webview, webview.getWebviewVersion())"

getWebviewVersion() returns the installed WebKitGTK runtime version, not the npm package version.

Repository Hygiene

  • Do not treat this fork as the Hawk2UI framework.
  • Keep editor-only integration state out of this repository.
  • Do not claim broad platform support unless the target is built, packaged, and smoke-tested.
  • Keep package.json NAPI targets, CI build targets, and npm/ package dirs in sync with the 64-bit desktop matrix.
  • Do not publish this fork until every advertised target has a produced artifact or the publish flow is scoped to the verified target.

Upstream

This fork is based on WebviewJS:

https://github.com/webviewjs/webview

Use upstream docs for general API exploration, but verify behavior against this fork before relying on it for the editor sidecar.