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

@reopt-ai/opt-filemanager

v0.1.0

Published

Connector-driven React file manager: browsing, folders, uploads, and file detail with pluggable storage backends.

Readme

@reopt-ai/opt-filemanager

Connector-driven React file manager: folder browsing, breadcrumb navigation, list/grid views, multi-select, name filtering, file detail with image/text preview, rename, move, delete, and a storage-usage meter — every action gated by the capabilities the storage backend advertises.

Uploads are a first-class pipeline: a concurrency-limited queue with an aggregate progress header (retry-all-failed, cancel-all, collapse), folder drag-and-drop that recreates the dropped directory tree, drop-onto-a-folder-row targets, clipboard paste-to-upload, and instant size/quota rejection.

Install

npm install @reopt-ai/opt-filemanager

Quick start

import {
  FileManager,
  createMockFileManagerConnector,
} from "@reopt-ai/opt-filemanager";
import "@reopt-ai/opt-filemanager/styles.css";

const connector = createMockFileManagerConnector();

export function Demo() {
  return <FileManager connector={connector} locale="ko" />;
}

Connectors

A connector implements the FileManagerConnector contract: a required list, optional mutation methods, and a capabilities object. The UI hides every action whose capability is false, so read-only or folder-less backends render a coherent surface without extra configuration.

  • createMockFileManagerConnector(options) — in-memory tree with configurable latency, failure injection, upload progress simulation, and seed reset. Ideal for demos and tests.
  • createBrandappFilesConnector({ client }) — adapter for the brandapp files API. Inject any client with the BrandappFilesClientLike shape: createReoptFileClient(...) from @reopt-ai/brandapp-sdk/files on the server, the reopt brandapp dev mock server, or a fetch proxy. The brandapp namespace is flat (no folders/rename); uploads are capped at 10 MB server-side and deletes may be rejected with FILE_IN_USE when a file is referenced elsewhere — the error message is surfaced in the UI.
  • Custom — implement FileManagerConnector against any storage backend.

Headless usage

useFileManager({ connector }) returns the full state controller (navigation, entries, selection, sorting, upload queue) without any UI, and the exported subcomponents (FileManagerToolbar, FileManagerEntryList, FileManagerDetailPanel, …) can be recomposed inside a custom FileManagerContextProvider layout.

Theming

Structural CSS ships from dist/styles.css, scoped to [data-opt-filemanager]. Colors resolve from var(--opt-*) tokens (injected by opt-shell's ShellProvider via opt-palette) with hardcoded fallbacks — no hard dependency on either package.