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

@storage4everyone/react

v1.0.1

Published

Pre-Built React UI Components & Hooks for Storage4Everyone Cloud Object Storage

Readme

@storage4everyone/react

Pre-built, enterprise-grade React UI components and hooks for Storage4Everyone Cloud Object Storage.

npm version license


⚡ Prerequisites

To use @storage4everyone/react, you must install the core SDK (@storage4everyone/sdk):

npm install @storage4everyone/sdk @storage4everyone/react
# or
pnpm add @storage4everyone/sdk @storage4everyone/react
# or
yarn add @storage4everyone/sdk @storage4everyone/react

🚀 Quickstart

1. Import Styles

Import the component stylesheet in your root entrypoint (e.g. main.tsx, App.tsx, or globals.css):

import '@storage4everyone/react/styles.css';

2. Wrap with <Storage4EveryoneProvider />

import React from 'react';
import { Storage4EveryoneProvider } from '@storage4everyone/react';

export function App() {
  return (
    <Storage4EveryoneProvider
      apiKey={process.env.NEXT_PUBLIC_S4E_API_KEY}
      bucket="s4e://workspace-01/test-bucket"
    >
      <MyStorageApp />
    </Storage4EveryoneProvider>
  );
}

🧩 Pre-Built Components

1. <S4EDropzone />

Dropzone and file uploader supporting drag-and-drop, multi-file queue, real-time progress bars, and file validations.

import { S4EDropzone } from '@storage4everyone/react';

<S4EDropzone
  multiple={true}
  maxSizeMB={100}
  accept="image/*,.pdf,.zip"
  onFileSuccess={(res) => console.log('File uploaded:', res.fileName)}
/>

2. <S4EFileBrowser />

Audited table listing files with live search filtering, preview modal, instant download, and enterprise delete confirmation dialog.

import { S4EFileBrowser } from '@storage4everyone/react';

<S4EFileBrowser
  title="Workspace Documents"
  onSelectFile={(file) => console.log('Selected:', file.name)}
/>

3. <S4EDownloadButton />

Single-click download button with loading indicator and secure presigned URL generation.

import { S4EDownloadButton } from '@storage4everyone/react';

<S4EDownloadButton filename="reports/invoice.pdf" label="Download PDF" />

4. <S4EBucketSelector />

Dropdown component to switch active target buckets dynamically across all components.

import { S4EBucketSelector } from '@storage4everyone/react';

<S4EBucketSelector buckets={['s4e://team/docs', 's4e://team/avatars']} />

🪝 Custom Hooks

useS4EUpload

import { useS4EUpload } from '@storage4everyone/react';

function CustomUploader() {
  const { upload, isUploading, progress } = useS4EUpload();

  const handleFile = async (e) => {
    const file = e.target.files[0];
    await upload(file);
  };

  return (
    <div>
      <input type="file" onChange={handleFile} />
      {isUploading && <p>Uploading: {progress}%</p>}
    </div>
  );
}

useS4EList

import { useS4EList } from '@storage4everyone/react';

function FileCountBadge() {
  const { count, totalBytes, isLoading, refetch } = useS4EList();

  if (isLoading) return <span>Loading...</span>;
  return <span>{count} files stored ({totalBytes} bytes)</span>;
}

🚀 Publishing to npmjs.com

  1. In SDK/storage4everyone-react:
    npm install
    npm run build
  2. Publish with public access:
    npm publish --access public

📄 License

Apache-2.0 © Storage4Everyone