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

frameos-editor

v2026.9.3

Published

The FrameOS visual scene editor as an embeddable static bundle: serve it from any host, embed it in an iframe, and exchange scenes JSON over postMessage.

Readme

frameos-editor

The FrameOS visual scene editor — the same node-graph editor the FrameOS backend ships — as an embeddable static bundle. No backend needed: the app catalog and app sources are embedded at build time, scenes go in and come back out as JSON over postMessage. The editor carries the full scene workspace: the node diagram plus side panels for scene settings, state variables, the app catalog, events and raw scene JSON; app sources open in a Monaco editor modal. When the frameos-wasm package's assets are served next to the bundle (at ./frameos-wasm/ relative to dist/), the Preview panel runs the edited scenes live through the FrameOS WebAssembly runtime — canvas, scene state and runtime logs included.

The package version always equals the FrameOS release it was built from.

License: AGPL-3.0-only. The editor is FrameOS code. The intended embedding model is an iframe served from your own host, talking to your page over the documented postMessage protocol — the editor stays a separate program at arm's length, whatever the license of the embedding page. If you modify the bundle itself, AGPL terms apply to those modifications.

Usage

Serve this package's dist/ directory from your host (e.g. copy it to /frameos-editor/), then:

import { createFrameOSEditor } from 'frameos-editor'

const editor = createFrameOSEditor({
  container: document.getElementById('editor'),
  url: '/frameos-editor/index.html',
  scenes,               // parsed scenes.json
  width: 800,
  height: 480,
  onScenesChanged: (scenes) => console.log('edited', scenes),
})

const edited = await editor.getScenes()
editor.destroy()

postMessage protocol

Parent → editor:

  • {type: 'frameos-editor:init', scenes, sceneId?, mode?, width?, height?, interval?, theme?, previewProxyUrl?, description?}theme is 'light' | 'dark'; previewProxyUrl is an optional same-origin endpoint the in-editor wasm live preview routes CORS-blocked HTTP requests through; description is the embedding page's description of the scene, shown in the Scene settings panel
  • {type: 'frameos-editor:get-scenes'} — replies with a :scenes message
  • {type: 'frameos-editor:select-scene', sceneId}

Editor → parent:

  • {type: 'frameos-editor:ready'} — once listening (the helper auto-sends init on this)
  • {type: 'frameos-editor:scenes', scenes} — after every edit (debounced) and as the :get-scenes reply
  • {type: 'frameos-editor:save-screenshot', dataUrl, sceneId} — the Preview panel captured a frame; reply with {type: 'frameos-editor:screenshot-saved', ok, error?, fallbackDownload?} to store it yourself, or stay silent and the editor downloads the PNG locally after a short timeout

Demo

demo.html shows the scene list, the editor, and (when the frameos-wasm package's assets are served next to it at ./frameos-wasm/) a live WebAssembly preview of the edited scenes — everything running in the browser.

Development (FrameOS repo)

The bundle is built by frontend/build.mjs ("FrameOS Embedded Editor" config: the regular editor code with frameLogic/logsLogic swapped for in-memory shims, see frontend/src/embed/) into frontend/dist-editor/, and copied into this package's dist/ by npm run build. Smoke test: node frontend/scripts/smokeEditorEmbed.mjs.