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

sleekio-widget

v0.3.1

Published

Voice input for any website — one import adds Whisper-accurate speech-to-text to your text fields. Framework-safe (React/Vue), 20+ languages, no backend.

Readme

Sleekio Widget

Voice input for any website. One script tag.

Add a mic button to every text field on your site — your users click, speak, and Whisper-accurate text lands in the field. 20+ languages, auto-detected. No backend, no audio code, no browser-quirk debugging.

Live demo & docs → (try it in your browser, no signup)

<script src="https://sleekio.io/widget.js" data-key="pk_live_YOURKEY"></script>

That's the whole integration. Get a free key (300 transcriptions/month, no card) at sleekio.io/dashboard/websites.


Install with npm

For React/Vue/bundler projects:

npm install sleekio-widget

Vanilla / any framework — load it once, mics attach to your text fields:

import { loadSleekio } from "sleekio-widget";

loadSleekio({ key: "pk_live_YOURKEY" });

React — a drop-in input with a mic:

import { SleekioInput } from "sleekio-widget/react";

function CommentBox() {
  return (
    <SleekioInput
      apiKey="pk_live_YOURKEY"
      multiline
      placeholder="Speak or type a comment…"
      onResult={(text, meta) => console.log(text, meta.language)}
    />
  );
}

The package is a thin loader (like @stripe/stripe-js): it loads the hosted widget.js so the client always matches the current API. Ships with TypeScript types. No lock-in — pass loadSleekio({ src: "/my-widget.js" }) to serve your own copy instead.


What's in this repo

The full, unminified source of the widget client (widget.js) — the exact file served from sleekio.io/widget.js. It's here so you can read what runs on your page before you add it. The transcription API behind it is the hosted part of the product.

  • < 15 KB, zero dependencies, vanilla JS — no framework, no build step
  • Shadow DOM UI — your CSS can't break the widget; the widget can't break your page

The annoying parts it handles

These are the things that make "just use a speech API" a multi-week project:

Framework-safe text insertion

Setting input.value = text silently breaks React and Vue controlled inputs — the framework never sees the change. The widget uses the native prototype setter plus a synthetic input event, inserted at the cursor:

const setter = Object.getOwnPropertyDescriptor(
  window.HTMLInputElement.prototype, "value").set;
setter.call(field, next);
field.dispatchEvent(new Event("input", { bubbles: true }));

So onChange, v-model, and Svelte bindings just work.

Cross-browser recording

Chrome and Firefox record WebM/Opus; iOS Safari records MP4/AAC. The widget detects support via MediaRecorder.isTypeSupported and the backend accepts both natively (with an ffmpeg fallback for anything malformed).

Listening feedback

While recording, a ring around the button expands with the speaker's live voice level (WebAudio analyser, fast attack / slow decay), with a CSS pulse fallback where WebAudio isn't available. Users never wonder "is it hearing me?"

Graceful failure

No key, out of credits, rate-limited, mic denied — every failure shows on the button itself and never throws into your page.

Configuration

Everything is a data-attribute on the script tag — no JavaScript required:

| Attribute | Default | Description | |---|---|---| | data-key | — (required) | Your publishable key (pk_live_…) | | data-target | all text fields | CSS selector(s) for which fields get a mic | | data-theme | light | light or dark | | data-position | inside-right | inside-right or inside-left (RTL-friendly) | | data-language | auto | ISO code or auto |

Per-field opt-in: <input data-sleekio="true">

JS API

Sleekio.attach("#comment-box", {
  theme: "dark",
  onResult: (text, meta) => console.log(text, meta.language, meta.duration),
});
Sleekio.rescan(); // after injecting new DOM (SPAs are auto-observed too)

Security model

The key is publishable (like a Stripe pk_) — safe in page source. Protection is layered: per-key domain allowlist, per-key and per-day rate caps, and one-click key rotation from the dashboard.

Privacy

Audio is processed in memory, transcribed, and immediately discarded — never stored, never used for training.

Who's behind this

The widget runs on the same production backend as the Sleekio Chrome extension (voice dictation for Gmail, LinkedIn, Docs and every other text box — 4.6★ on the Chrome Web Store) — the codec handling and insertion tricks here were battle-tested there first. Transcription is powered by Whisper-class models behind a provider-fallback chain.

Questions, bugs, feature requests: open an issue or email [email protected].

License

The widget client in this repo is MIT licensed. The Sleekio transcription API it talks to is a hosted service — pricing.