Lightweight in-browser library to simply upload a base64 image to gyazo.
Last updated 4 years ago by leichtgewicht .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gyazo-browser-upload 
SYNC missed versions from official npm registry.


Build Status

Lightweight in-browser library to simply upload a base64 image to gyazo.


gyazo-api allows upload to gyazo quite well but it requires authentication. This library is a in-browser library that allows to simply upload an image to your gyazo account.


Right now only is allowed to upload to the default reqUrl! Supply a custom reqUrl for your server/service.


It uses the lightweight superagent package to send a POST request with the image data to the server.


  1. Install this package: $ npm install gyazo-browser-upload --save
  2. Use the package
    const upload = require('gyazo-browser-upload')
    const redDotImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='
    const options = {clientId: 'My client'}
    upload(redDotImage, options)
      .then((info) {
         info.url // URL of the image // ID of the image


  • options.clientId … Identifier to be used to show in gyazo where the request came from required!
  • options.reqUrl … URL to which the request should be sent (optional, default:
  • options.referer … Browser referer to be set (optiona, default: window.location.href)
  • options.title … Title that the image should get after uploading. (optional)

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © |