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

@oneie/plugin-media

v0.1.0

Published

ONE media — video gallery and player served from one.ie, supports Mux and YouTube

Downloads

23

Readme

@oneie/plugin-media

ONE media — video gallery and player served from one.ie. Supports Mux and YouTube. Zero bundle cost; no media source ships to your repo.

Requires a workspace key (CONNECTED tier).

Install

bun add @oneie/plugin-media

one.config.ts

import { defineOne } from '@oneie/frontend'
import { media } from '@oneie/plugin-media'

export default defineOne({
  plugins: [
    media({
      ws: 'your-workspace-slug',
      provider: 'both',   // 'mux' | 'youtube' | 'both'
      layout: 'grid',     // 'grid' | 'list' | 'featured'
      columns: 3,         // 2 | 3 | 4
    }),
  ],
})

Usage

Video gallery

---
import { OneMedia } from '@oneie/plugin-media/OneMedia.astro'
---

<OneMedia
  ws="your-workspace-slug"
  provider="both"
  layout="grid"
  columns={3}
/>

Single video player

---
import { OneVideoPlayer } from '@oneie/plugin-media/OneVideoPlayer.astro'
---

<!-- Mux — pass the playbackId -->
<OneVideoPlayer
  ws="your-workspace-slug"
  videoId="DS00Spx1CV902MCtPj5WknGlR102V5HFkDe"
  provider="mux"
/>

<!-- YouTube — pass the video ID from the URL -->
<OneVideoPlayer
  ws="your-workspace-slug"
  videoId="dQw4w9WgXcQ"
  provider="youtube"
  autoplay={false}
/>

Provider IDs

| Provider | Where to find the ID | |----------|----------------------| | Mux | Mux dashboard → Asset → Playback ID (the DS00Spx1… string) | | YouTube | youtube.com/watch?v=dQw4w9WgXcQ → the v= value |

Version pinning with SRI

Pass an integrity hash to pin a specific version and enable Subresource Integrity checking:

<OneMedia
  ws="your-workspace-slug"
  integrity="sha384-abc123..."
/>

The hash matches the versioned URL (e.g. one.ie/m/[email protected]). Obtain the hash from the ONE dashboard or the one.ie/m/media.js.sri endpoint.

Options

| Prop | Type | Default | Description | |------|------|---------|-------------| | ws | string | — | Workspace slug (required) | | provider | 'mux' \| 'youtube' \| 'both' | 'both' | Which providers to surface | | layout | 'grid' \| 'list' \| 'featured' | 'grid' | Gallery layout | | columns | 2 \| 3 \| 4 | 3 | Grid column count | | endpoint | string | — | Override the media API endpoint | | videoId | string | — | Mux playbackId or YouTube video ID (player only) | | autoplay | boolean | false | Autoplay on load (player only) | | integrity | string | — | SRI hash for version pinning |