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

@stillkinetic/desktop-sdk

v0.1.55

Published

StillKinetic tracking and Stripe billing-consent UI for Electron, Tauri, and npm-compatible desktop WebViews.

Readme

@stillkinetic/desktop-sdk

StillKinetic tracking and Stripe billing-consent UI for Electron, Tauri, and other npm-compatible desktop applications whose UI runs in an HTML WebView.

Install

npm install @stillkinetic/desktop-sdk @stillkinetic/web-sdk @stripe/stripe-js

Tracking

import { StillKineticDesktop } from '@stillkinetic/desktop-sdk';

const sk = new StillKineticDesktop({
  appId: 'app_123',
  apiKey: 'pk_app_abc',
  apiBaseUrl: 'https://still-kinetic.example.com',
  stripePublishableKey: 'pk_live_...',
  endUserId: currentUser.id,
  pageId: '/articles/desktop-billing',
  trackedMetrics: ['stay_duration', 'scroll_length'],
});

if (await sk.init()) sk.start();

// Stop and flush when the view is destroyed.
sk.stop();

The desktop tracker delegates DOM signals to @stillkinetic/web-sdk. This works in Electron and Tauri renderer/WebView processes. Do not run it from Electron's main process or a native Rust process because those runtimes do not provide the DOM APIs used by the trackers and Stripe.js.

One-time card binding and spending cap

Add a container to the desktop view:

<div id="stillkinetic-billing"></div>

Mount the framework-neutral billing panel:

const panel = await sk.mountBillingPanel('#stillkinetic-billing', {
  defaultCap: { amountCents: 500, period: 'weekly' },
  onComplete(result) {
    if (!result.success) console.error(result.error);
  },
});

// Later, when the view closes:
panel.destroy();

The panel performs this sequence only after the end user checks the consent box and submits:

  1. Requests a Stripe SetupIntent from /api/end-user/bind-card.
  2. Uses Stripe.js to collect and confirm the card.
  3. Sends the resulting payment-method ID and the user's cap to /api/end-user/config.
  4. Future metric thresholds are evaluated by the management backend and may create off-session PaymentIntents within that cap.

Card numbers never pass through or persist in the desktop application or StillKinetic D1. Stripe stores the card. StillKinetic stores the Stripe customer/payment-method references and the user's cap.

StillKineticDesktop#getAccessStatus(metric) returns the access decision used by the web facade. The desktop host must disable the relevant action/window and display the returned cap message when access is denied.

Supported desktop runtimes

  • Electron renderer process
  • Tauri WebView frontend
  • NW.js, Neutralino, Wails, and similar HTML/JavaScript desktop shells

Flutter, Dioxus native Rust, React Native Windows/macOS, Swift, and .NET applications require their own native adapter or an embedded HTML WebView. They cannot directly use this DOM package from native code.