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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sme-uploader

v1.0.7

Published

Extensible JavaScript file upload widget.

Downloads

15

Readme

SME Uploader

SME Uploader is a sleek, modular JavaScript file uploader that integrates seamlessly with any application. It’s fast, easy to use and lets you worry about more important problems than building a file uploader.


## Documentation

- [SME Uploader](https://sme-uploader.web.app/docs/uploader/) — full list of options, methods and events
- [Plugins](https://sme-uploader.web.app/docs/plugins/) — list of SME Uploader plugins and their options
- [Companion](https://sme-uploader.web.app/docs/companion/) — setting up and running a Companion instance, which adds support for Instagram, Dropbox, Google Drive and remote URLs
<!---
- [Architecture & Writing a Plugin](https://sme-uploader.web.app/docs/writing-plugins/) — how to write a plugin for SME Uploader
--->

## Plugins

[List of plugins and their common options](https://sme-uploader.web.app/docs/plugin-options/)

### UI Elements

- [`Dashboard`](https://sme-uploader.web.app/docs/dashboard/) — universal UI with previews, progress bars, metadata editor and all the cool stuff. Required for most UI plugins like Webcam and Instagram
- [`Progress Bar`](https://sme-uploader.web.app/docs/progress-bar/) — minimal progress bar that fills itself when upload progresses
- [`Status Bar`](https://sme-uploader.web.app/docs/status-bar/) — more detailed progress, pause/resume/cancel buttons, percentage, speed, uploaded/total sizes (included by default with `Dashboard`)
- [`Informer`](https://sme-uploader.web.app/docs/informer/) — send notifications like “smile” before taking a selfie or “upload failed” when all is lost (also included by default with `Dashboard`)

### Sources

- [`Drag & Drop`](https://sme-uploader.web.app/docs/drag-drop/) — plain and simple drag and drop area
- [`File Input`](https://sme-uploader.web.app/docs/file-input/) — even plainer “select files” button
- [`Webcam`](https://sme-uploader.web.app/docs/webcam/) — snap and record those selfies
- ⓒ [`Google Drive`](https://sme-uploader.web.app/docs/google-drive/) — import files from Google Drive
- ⓒ [`Dropbox`](https://sme-uploader.web.app/docs/dropbox/) — import files from Dropbox
- ⓒ [`Instagram`](https://sme-uploader.web.app/docs/instagram/) — import images and videos from Instagram
- ⓒ [`Facebook`](https://sme-uploader.web.app/docs/facebook/) — import images and videos from Facebook
- ⓒ [`OneDrive`](https://sme-uploader.web.app/docs/onedrive/) — import files from Microsoft OneDrive
- ⓒ [`Import From URL`](https://sme-uploader.web.app/docs/url/) — import direct URLs from anywhere on the web

The ⓒ mark means that [`@sme-uploader/companion`](https://sme-uploader.web.app/docs/companion), a server-side component, is needed for a plugin to work.

### Destinations

- [`Tus`](https://sme-uploader.web.app/docs/tus/) — resumable uploads via the open [tus](http://tus.io) standard
- [`XHR Upload`](https://sme-uploader.web.app/docs/xhr-upload/) — regular uploads for any backend out there (like Apache, Nginx)
- [`AWS S3`](https://sme-uploader.web.app/docs/aws-s3/) — plain upload to AWS S3 or compatible services
- [`AWS S3 Multipart`](https://sme-uploader.web.app/docs/aws-s3-multipart/) — S3-style "Multipart" upload to AWS or compatible services

### File Processing

- [`Robodog`](https://sme-uploader.web.app/docs/robodog/) — user friendly abstraction to do file processing with Transloadit
- [`Transloadit`](https://sme-uploader.web.app/docs/transloadit/) — support for [Transloadit](http://transloadit.com)’s robust file uploading and encoding backend

### Miscellaneous

- [`Golden Retriever`](https://sme-uploader.web.app/docs/golden-retriever/) — restores files after a browser crash, like it’s nothing
- [`Thumbnail Generator`](https://sme-uploader.web.app/docs/thumbnail-generator/) — generates image previews (included by default with `Dashboard`)
- [`Form`](https://sme-uploader.web.app/docs/form/) — collects metadata from `<form>` right before an SME Uploader upload, then optionally appends results back to the form
- [`Redux`](https://sme-uploader.web.app/docs/redux/) — for your emerging [time traveling](https://github.com/gaearon/redux-devtools) needs

## Browser Support

<a href="https://saucelabs.com/u/transloadit-sme-uploader">
  <img src="https://saucelabs.com/browser-matrix/transloadit-sme-uploader.svg" alt="Sauce Test Status"/>
</a>

We aim to support recent versions of Chrome, Firefox, Safari, Opera and  Edge.

## FAQ

### Why not just use `<input type="file">`?

Having no JavaScript beats having a lot of it, so that’s a fair question! We found that in cases, the file input leaves some to be desired:

- We received complaints about broken uploads and found that resumable uploads are important, especially for big files and to be inclusive towards people on poorer connections (we also launched [tus.io](https://tus.io) to attack that problem). SME Uploader uploads can survive network outages and browser crashes or accidental navigate-aways.
- SME Uploader supports editing meta information before uploading (and e.g. cropping is planned).
- There’s the situation where people are using their mobile devices and want to upload on the go, but they have their picture on Instagram, files in Dropbox or just a plain file URL from anywhere on the open web. SME Uploader allows to pick files from those and push it to the destination without downloading it to your mobile device first.
- Accurate upload progress reporting is an issue on many platforms.
- Some file validation — size, type, number of files — can be done on the client with SME Uploader.
- SME Uploader integrates webcam support, in case your users want to upload a picture/video/audio that does not exist yet.
- A larger drag and drop surface can be pleasant to work with. Some people also like that you can control the styling, language, etc.
- SME Uploader is aware of encoding backends. Often after an upload, the server needs to rotate, detect faces, optimize for iPad, or what have you. SME Uploader can track progress of this and report back to the user in different ways.
- Sometimes you might want your uploads to happen while you continue to interact on the same single page.

Not all apps need all of these features. An `<input type="file">` is fine in many situations. But these were a few things that our customers hit/asked about enough to spark us to develop SME Uploader.

### Does SME Uploader support S3 uploads?

Yes, there is an S3 plugin, please check out the [docs](https://sme-uploader.web.app/docs/aws-s3/) for more.

### Do I need to install a special service/server for SME Uploader? Can I use it with Rails/Node/Go/PHP?

Yes, whatever you want on the backend will work with `@sme-uploader/xhr-upload` plugin, since it just does a `POST` or `PUT` request. Here’s a [PHP backend example](https://sme-uploader.web.app/docs/xhr-upload/#Uploading-to-a-PHP-Server).

If you want resumability with the Tus plugin, use [one of the tus server implementations](https://tus.io/implementations.html)

And you’ll need [`@sme-uploader/companion`](https://sme-uploader.web.app/docs/companion) if you’d like your users to be able to pick files from Instagram, Google Drive, Dropbox or via direct URLs (with more services coming).

## Contributors

<!--contributors-->
[<img alt="mcarpent007" src="https://avatars0.githubusercontent.com/u/60732871??v=4&s=117" width="117">](https://github.com/mcarpent007) | [<img alt="gord004" src="https://avatars0.githubusercontent.com/u/60661404?v=4&s=117" width="117">](https://github.com/gord004) | [<img alt="niko00001" src="https://avatars0.githubusercontent.com/u/60661275??v=4&s=117" width="117">](https://github.com/niko00001) | [<img alt="lapc002" src="https://avatars0.githubusercontent.com/u/61286979??v=4&s=117" width="117">](https://github.com/lapc002) |
:---: |:---: |:---: |:---: |
[mcarpent007](https://github.com/mcarpent007) | [gord004](https://github.com/gord004) | [niko00001](https://github.com/niko00001) | [lapc002](https://github.com/lapc002) |
<!--/contributors-->

## License

[The MIT License](LICENSE).