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

@adonis-agora/media-dashboard

v8.2.0

Published

Media-management dashboard for @adonis-agora/media — browse buckets, watch resumable uploads in progress, upload, and copy/move/delete objects across buckets. A React SPA served by a thin AdonisJS provider, themed to Agora design tokens. Part of the Agora

Readme

@adonis-agora/media-dashboard

A media-management console for @adonis-agora/media: browse your buckets, watch resumable uploads in progress, upload new objects, and copy/move/delete objects across buckets. It is a small React SPA served by a thin AdonisJS provider, themed to Agora design tokens (light + dark).

The console consumes the real media surface — disk list/stat/copy/move/deleteMany and the resumable UploadSessionStore.list() — through provider-registered routes. Nothing about storage is reimplemented; the upload UI reuses @adonis-agora/media-react.

The console ships embedded in @adonis-agora/media — install that instead

As of 7.0.0, this package's install/provider story is secondary. The console (this same React SPA, and all of its server-side auth/service logic) is bundled straight into @adonis-agora/media at build time; node ace configure @adonis-agora/media registers its dashboard_provider for you, with no separate package to add:

npm i @adonis-agora/media
node ace configure @adonis-agora/media
// adonisrc.ts
providers: [
  () => import('@adonis-agora/media/media_provider'),
  () => import('@adonis-agora/media/dashboard_provider'),
]
// config/media_dashboard.ts
import { defineConfig } from '@adonis-agora/media/dashboard'

See @adonis-agora/media's Dashboard section for the full config reference — defineConfig, DashboardService, the session-auth helpers and ObjectInsightProvider all live under @adonis-agora/media/dashboard now.

This package, standalone (advanced / legacy)

This package — and its own media_dashboard_provider entry point — is still published and still works, for hosts that already register it directly, or that prefer keeping the dashboard as an explicit, separately-versioned install. Its provider is a thin delegate to the embedded one above (no logic of its own), so both entry points stay identical in behavior. Register only one of the two.

pnpm add @adonis-agora/media-dashboard
providers: [
  () => import('@adonis-agora/media/media_provider'),
  () => import('@adonis-agora/media-dashboard/media_dashboard_provider'),
]

config/media_dashboard.ts is read from the SAME config key (media_dashboard) regardless of which provider you register, authored against @adonis-agora/media/dashboard's defineConfig either way:

import { defineConfig } from '@adonis-agora/media/dashboard'
import { middleware } from '#start/kernel'

export default defineConfig({
  basePath: '/media/dashboard',   // where the SPA mounts (default)
  actions: true,                  // enable copy/move/delete (default: false, read-only)
  disks: ['s3', 'backups'],       // browsable disks (default: derived from media config)
  middleware: middleware.auth(),  // gate the whole console — SPA + API
})

Mount the SPA under any path without rebuilding — the provider rewrites Vite's asset base and injects the runtime bootstrap (window.__MEDIA_DASHBOARD__) into index.html at serve time.

Routes

Registered under apiBasePath (default <basePath>/api), behind your middleware:

| Method | Path | Backed by | | --- | --- | --- | | GET | /topology | capability probe | | GET | /disks | StorageManager + DiskCapabilities | | GET | /objects?disk&prefix&after&first | disk list | | GET | /object?disk&key | disk stat + signed URL | | GET | /uploads?disk&prefix | ResumableUploadManager.list() | | POST | /copy · /move | disk copy/move (streamed for cross-disk) | | POST | /delete | disk deleteMany |

Listings page through the ecosystem's cursor interface — ?after=<previous nextCursor>&first=<page size> in, { …payload, nextCursor, prevCursor, hasNext, hasPrev } out — mirroring @adonis-agora/filter's CursorParams / CursorPage. The backend (S3's ListObjectsV2 continuation token) is forward-only, so before / last are not accepted and prevCursor / hasPrev are always null / false.

Uploads use the core @adonis-agora/media TUS/direct routes via @adonis-agora/media-react.

Views

  • Library — pick a disk, walk folders via cursor-paginated list, copy/move across buckets, delete.
  • Uploads — live resumable sessions, polled every 2s from the session store.
  • Upload — drag-drop / picker, resumable TUS uploads into the chosen disk.