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

@usebely/sdk

v0.2.0

Published

Build plugins for Bely — the app launcher for Windows and Android

Readme

@usebely/sdk

Build plugins for Bely — the app launcher for Windows and Android.

Plugins are small React apps that run inside an isolated iframe. They can add new tools to the launcher, search providers, custom actions, and themes.

Install

pnpm add @usebely/sdk react react-dom

Quick Start

import { mount, List, useFetch } from "@usebely/sdk";
import { useState } from "react";

function App() {
  const [query, setQuery] = useState("");

  const { data, loading } = useFetch(
    query.length >= 2
      ? `https://api.example.com/search?q=${query}`
      : null
  );

  return (
    <List
      searchBarPlaceholder="Search..."
      onSearchChange={setQuery}
      isLoading={loading}
    >
      {data?.results?.map((item) => (
        <List.Item
          key={item.id}
          id={item.id}
          title={item.name}
          subtitle={item.description}
        />
      ))}
    </List>
  );
}

mount(<App />);

Components

| Component | Description | |-----------|-------------| | List | Searchable list with items, sections, and action panels | | Detail | Detail view with header, markdown, metadata, and actions | | Form | Form with text fields, dropdowns, and checkboxes | | Grid | Grid layout for visual items | | Action | Inline action buttons (copy, open URL, custom) | | ActionPanel | Container for multiple actions |

Hooks

| Hook | Description | |------|-------------| | useFetch | HTTP requests proxied through Rust (no CORS), built-in debounce | | useStorage | Sandboxed per-plugin localStorage | | useClipboard | Read/write clipboard (requires permission) | | useNavigation | Navigate back within the plugin | | usePluginContext | Access plugin ID, query, theme, locale | | useTranslation | Internationalize your plugin (en, pt-BR, es) | | useSystemInfo | Get OS info, theme, locale, Bely version |

Internationalization

import { useTranslation } from "@usebely/sdk";

const translations = {
  en: { search: "Search...", noResults: "No results" },
  "pt-BR": { search: "Buscar...", noResults: "Nenhum resultado" },
  es: { search: "Buscar...", noResults: "Sin resultados" },
};

function App() {
  const { t, locale } = useTranslation(translations);
  return <List searchBarPlaceholder={t("search")} />;
}

The hook resolves the best locale match (exact, then base language, then English fallback).

Theming

Plugins automatically inherit the user's theme. The host injects 40+ CSS variables into the iframe:

background: var(--glass-bg);
color: var(--glass-text);
border: 1px solid var(--glass-btn-border);

SDK components use these variables automatically. Only use them directly for custom styles.

Permissions

Plugins run in a sandboxed iframe. Declare required permissions in bely.plugin.json:

| Permission | Description | |------------|-------------| | fetch | Make HTTP requests (proxied, no CORS) | | clipboard.read | Read from clipboard | | clipboard.write | Write to clipboard | | fs.read | Read files from disk | | fs.write | Write files to disk | | system.info | Get OS info, theme, locale |

Storage and URL opening are always allowed without permissions.

Documentation

Full documentation at bely.my/docs/plugins.

License

MIT