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

osamstorage

v1.0.9

Published

A seamless chunked upload SDK for React and React Native

Readme

📦 OsamStorage SDK

Upload, process, and serve media — with just one line of code.

OsamStorage is a powerful file upload SDK for React, Next.js, and React Native.
We don’t just store your files — we optimize, process, and deliver them automatically.

👉 Buy storage / get token: https://osamtech.com/storage/pricing
👉 Full documentation: https://osamtech.com/storage/docs


✨ Why OsamStorage?

Most storage solutions are just buckets.
OsamStorage is a processing engine + storage API.

⚡ Automatic Processing

  • 🎥 Videos → Converted to HLS (.m3u8) at 720p
  • 🖼️ Images → Converted to WebP (70% optimized)
  • 📄 PDFs → Stored securely
  • 📧 Email Alerts → Notification after every upload

🚫 Supported formats only: Video, Image, PDF


💳 Pricing

  • ₹10 INR / GB / month
  • No dashboard — API-first system
  • Simple, scalable pricing

👉 Get started: https://osamtech.com/storage/pricing


🚀 Installation

npm install osamstorage

React Native (Extra Step)

npm install expo-file-system

⚙️ How It Works

Using OsamStorage is just 2 steps:

  1. Initialize SDK with your token API
  2. Call .upload()

That’s it. No chunking, no config, no headache.


🌐 Usage — React / Next.js

import { useState } from "react";
import { OsamStorage } from "osamstorage/web";

const storage = new OsamStorage({
  getToken: async () => {
    const res = await fetch("https://your-backend.com/api/get-token");
    const data = await res.json();
    return data.token;
  },
});

export default function UploadPage() {
  const [progress, setProgress] = useState(0);
  const [status, setStatus] = useState("Idle");

  const handleFileChange = async (e) => {
    const file = e.target.files[0];
    if (!file) return;

    setStatus("Uploading...");

    await storage.upload(file, {
      onProgress: setProgress,
      onSuccess: () => setStatus("Processing..."),
      onError: () => setStatus("Failed"),
    });
  };

  return (
    <div>
      <input
        type="file"
        accept="video/*,image/*,application/pdf"
        onChange={handleFileChange}
      />
      <p>{status}</p>
      <p>{progress}%</p>
    </div>
  );
}

📱 Usage — React Native

import { OsamStorage } from "osamstorage/native";
import * as DocumentPicker from "expo-document-picker";

const storage = new OsamStorage({
  getToken: async () => {
    const res = await fetch("https://your-backend.com/api/get-token");
    const data = await res.json();
    return data.token;
  },
});

const uploadFile = async () => {
  const result = await DocumentPicker.getDocumentAsync();

  if (result.canceled) return;

  await storage.upload(result.assets[0].uri, {
    onProgress: console.log,
    onSuccess: console.log,
    onError: console.error,
  });
};

🗂️ File Management

Uploading is handled via SDK.
For advanced operations use REST API:

  • Delete files
  • Fetch media
  • Check storage usage

👉 API Docs: https://osamtech.com/storage/docs


💡 Why Developers Love It

  • No chunking logic needed
  • No backend processing required
  • No CDN setup
  • Works out of the box

Just upload → we handle the rest


⚠️ Important

  • No dashboard (API-first product)
  • Token required for all uploads
  • Only supports:
    • Videos
    • Images
    • PDFs

🔥 Pro Tip

You don’t need to write:

  • Chunk upload logic
  • File compression
  • Video streaming setup

👉 storage.upload() does everything automatically.