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

@arcsin1/presentation-editor-runtime

v0.0.9

Published

Browser runtime for selecting, inspecting, and safely editing presentation HTML

Readme

@arcsin1/presentation-editor-runtime

Browser-side presentation editor primitives for HTML slides. The runtime provides browser-like element selection, a complete DOM inspector, controlled attribute and CSS mutation, and clean serialization for saving an edited page.

Capabilities

  • Select or hover any allowed element and mark it with transient data-arcsin1-presentation-editor-selected / data-arcsin1-presentation-editor-hover attributes.
  • Inject the inspector picker into an isolated slide document, with stable selectors, highlighted targets, text-aware hit testing, and clean teardown.
  • Inspect all source attributes, inline CSS declarations (including priority), and the full computed-style map of the selected element.
  • Apply semantic operations for attributes, classes, CSS declarations, text, and HTML. Event-handler attributes, runtime-owned attributes, and unsafe URL values are rejected by the built-in policy.
  • Serialize an edited root without editor overlays, runtime attributes, or runtime classes so selection state never leaks into saved HTML.
  • Use directly in a browser or generate a self-contained script for an iframe, <webview>, or other isolated document.

API

import {
  buildInspectorCleanupScript,
  buildInspectorInjectScript,
  buildPresentationEditorRuntimeInjectScript,
  installPresentationEditorRuntime
} from '@arcsin1/presentation-editor-runtime'

const editor = installPresentationEditorRuntime({
  root: document.querySelector('.ppt-page-root')
})

editor.select(document.querySelector('[data-block-id="hero-title"]')!)
const snapshot = editor.inspect()
editor.apply([
  { type: 'set-style', property: 'letter-spacing', value: '0.04em' },
  { type: 'set-attribute', name: 'aria-label', value: 'Company overview' }
])

const cleanHtml = editor.serializeForSave()

const iframeScript = buildPresentationEditorRuntimeInjectScript({
  interaction: false
})

const pickerScript = buildInspectorInjectScript({ mode: 'inspect' })
const pickerCleanupScript = buildInspectorCleanupScript()

The runtime does not force a presentation schema. A host can provide isSelectable and selectorFor callbacks to preserve its own block identity and editing rules.

License

Apache-2.0