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

modern-fm-pro

v0.1.5

Published

Modern File Manager Pro is a Next.js file manager component with preview, upload, download, rename, move, copy, text editing, image editing, grid and list views, and pluggable storage adapters.

Readme

Modern File Manager Pro

Modern File Manager Pro is a Next.js file manager component with preview, upload, download, rename, move, copy, text editing, image editing, grid and list views, and pluggable storage adapters.

What's New in 0.1.5

  • Category Filtering: Built-in file type filtering (All, Documents, Images, Media, Other)
  • Initial Category: Open FileManager with a specific category pre-selected using initialCategory config option
  • Upload Restrictions: When opened with a specific category, uploads are automatically restricted to matching file types
  • Root Path Boundary: FileManager now respects rootPath configuration and prevents navigation above it for security and isolation
  • Grid View Truncation: Long file/folder names are truncated to 15 characters in grid view with full name shown on hover
  • Dark Theme Improvements: Fixed hover effects in context menus for better visual feedback

What's New in 0.1.4

  • Fixed the published package so component class names resolve correctly in consuming apps.
  • FileManager styles continue to stay scoped under the FileManager root without relying on broken runtime CSS module maps.
  • Filerobot editor overrides remain active only while the FileManager image editor is open.
  • This release is intended to fix broken package rendering in host applications.

Features

  • File browsing with grid and list modes
  • Text editing with Monaco Editor
  • Image editing with Filerobot Image Editor
  • Preview support for images, videos, audio, PDF, and text files
  • Clipboard operations: cut, copy, paste
  • Optional Supabase Storage integration
  • Selection mode for file-picker workflows

Installation

npm install [email protected]

If you want Supabase support:

npm install [email protected] @supabase/supabase-js

Quick Start

import { FileManager, RestAdapter } from 'modern-fm-pro';
import 'modern-fm-pro/styles.css';

const adapter = new RestAdapter('/api/files');

export default function Page() {
  return (
    <FileManager
      adapter={adapter}
      config={{
        theme: 'dark',
        viewMode: 'grid',
        hideSystemFiles: true,
        rootPath: '/uploads', // Prevent navigation above this path
        initialCategory: 'images', // Optional: Start with images filter
      }}
    />
  );
}

Adapters

RestAdapter

RestAdapter expects a backend that implements the same HTTP contract as this repository's demo routes under /api/files.

Use it when:

  • you control the backend
  • you want local or custom server-side storage
  • you can expose compatible file CRUD endpoints

It is not a hosted storage layer by itself.

SupabaseAdapter

import { FileManager, SupabaseAdapter } from 'modern-fm-pro';
import 'modern-fm-pro/styles.css';

const adapter = new SupabaseAdapter({
  url: process.env.NEXT_PUBLIC_SUPABASE_URL!,
  anonKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
  bucketName: 'file-manager',
});

export default function Page() {
  return <FileManager adapter={adapter} config={{ theme: 'dark' }} />;
}

Detailed setup: SUPABASE_SETUP.md

Security Notes

  • Do not expose Supabase service role keys in the browser. Use only the public anon key on the client.
  • If you use RestAdapter, validate paths and permissions on the server. The UI is not a security boundary.
  • Publish only built artifacts. This package is configured to ship dist, not demo code, uploads, .env, or .next output.
  • Review upload limits, allowed MIME types, and authorization rules in your backend or Supabase bucket policies.

Package Outputs

The published package exposes:

  • modern-fm-pro
  • modern-fm-pro/styles.css

Current publish payload is limited to:

  • dist
  • README.md
  • SUPABASE_SETUP.md

Local Development

Run the demo application locally:

npm install
npm run dev

Open http://localhost:3000.

Publishing

Validate the package before publishing:

npm run build:package
npm run pack:check

Publish publicly to npm:

npm publish --access public

Repository

Source repository: https://github.com/deneshiqua/modern-fm-pro