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

@blobber/react-native

v0.2.0

Published

blobber react-native client sdk

Downloads

6

Readme

What is Blobber?

Blobber is an image management platform for React apps including:

  • An image upload hook
  • Managed file storage
  • on-the-fly image optimization
  • global CDN distribution

It's the fastest way to add production-ready user-uploaded images to any React app.

Install

npm install @blobber/react

yarn add @blobber/react

Configure

Before you get started, you'll need a clientId to identify your app. Log in to the dashboard to get one for free, or use "SANDBOX" to get started right away.

Upload an Image

The useUpload hook provides everything you'll need to start accepting image uploads.

  • handleUpload → handler for onChange event of <input> element
  • previewUrl → local url for the uploaded image
  • fileFileData object describing the uploaded image
import { useEffect } from 'react'
import { useUpload } from '@blobber/react'

function ImageUploadButton() {
  const { handleUpload, file, previewUrl } = useUpload({
    // your app's Client ID
    clientId: 'YOUR-CLIENT-ID-HERE',
  })

  useEffect(() => {
    if (file) {
      // save the file.id to your server
      api.post('/user', { photoId: file.id })
    }
  }, [file])

  return (
    <div>
      <img src={previewUrl} />
      <input type="file" onChange={handleUpload} />
    </div>
  )
}

Once the image is successfully uploaded, save file.id to your backend/server. Usually, you'll want to associate it with the authenticated user.

Serve an Image

To serve an image, pass the file.id you saved in the previous step to the getUrl function along with any transformations.

import { getUrl } from '@blobber/react'

// pass saved photo ID to profileImage component
function ProfileImage({ photoId }) {
  const imageUrl = getUrl({
    id: photoId,
    clientId: 'YOUR-CLIENT-ID-HERE',
    width: 120,
    format: 'webp',
  })

  return <img src={imageUrl} />
}

Done!

Take a look at the Guides & API Reference for more details.

Log in to the dashboard to view and manage uploaded images.