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

nanoframe

v0.3.0

Published

Electron-like framework using system webviews powered by a Rust core.

Readme

Status: experimental, but usable for prototypes and internal tools.

Highlights

  • System webviews (no bundled Chromium)
  • Cross‑platform Rust core with prebuilt binaries per OS/arch
  • Simple Node/TypeScript API: app + BrowserWindow
  • JSON‑RPC transport over stdio (no local servers)

Install

npm install nanoframe
# or
pnpm add nanoframe
# or
yarn add nanoframe
# or
bun add nanoframe

Peer/runtime requirements:

  • Node.js 20+
  • Platform core binary (auto-resolved) or local cargo-built nanoframe-core

Quick usage

import { app, BrowserWindow } from 'nanoframe'

await app.whenReady
const win = await BrowserWindow.create({
  title: 'My App',
  width: 800,
  height: 600,
  url: 'https://example.com'
})
await win.openDevTools()

API

app: App

  • whenReady: Promise<void> – resolves when core is reachable
  • on(event, cb) – events: ready, windowAllClosed
  • createWindow(options) – convenience wrapper, same as BrowserWindow.create
  • openDialog(options) – open file/directory dialog
  • saveDialog(options) – save dialog
  • getPath(name, appName?) – resolve OS paths
  • openExternal(target) – open URL in default handler
  • writeClipboardText(text) / readClipboardText()
  • quit() – terminate the child core process

Environment flags:

  • NANOF_DEV=1 – prefer local cargo build during development
  • NANOF_FORCE_PLATFORM=1 – force platform package binary when available

BrowserWindow

Constructor is internal; use BrowserWindow.create(options).

Options (subset):

  • title?: string
  • width?: number, height?: number
  • url?: string | html?: string
  • iconPath?: string
  • resizable?: boolean, alwaysOnTop?: boolean, fullscreen?: boolean
  • decorations?: boolean, center?: boolean
  • preload?: string (reserved)

Methods:

  • show(), hide(), close()
  • setIcon(path), setTitle(title)
  • setSize(w, h), getSize()
  • setPosition(x, y), getPosition()
  • center(), focus(), maximize(), minimize(), unminimize()
  • setAlwaysOnTop(bool), setResizable(bool), setFullscreen(bool), isFullscreen()
  • setDecorations(bool), isVisible()
  • eval(code), openDevTools()
  • postMessage(payload)

How binaries are resolved

At runtime, the SDK tries the following in order:

  1. If NANOF_DEV=1 or a local packages/nanoframe-core cargo project exists and NANOF_FORCE_PLATFORM is not set, run cargo run --release --bin nanoframe-core inside that directory.
  2. Otherwise, resolve a platform package (@nanoframe/core-<platform>-<arch>) and execute the embedded binary.
  3. Fallback: try nanoframe-core on PATH.

Example app

See examples/hello-world in the monorepo for an end-to-end minimal setup using TypeScript.

License

ICL – see repository root LICENSE.