Skip to content

asilvas/image-steam-blobby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-steam-blobby

Blobby client for Image Steam.

For caching only

Options

import isteamBlobby from 'image-steam-blobby';

const blobby = new isteamBlobby({
  endpoint: 'https://some-endpoint.com',
  bucket: 'myBucket', // equates to https://some-endpoint.com/myBucket
  secret: 'mySecretShhh' // enable writes
});
Param Info
endpoint (required) Endpoint of http(s) service
secret Only required if using as a cache layer that must write back to storage
bucket Path of folder from root

Usage

Example:

import isteam from 'image-steam';

const options = {
  storage: {
    app: {
      static: {
        driver: 'http',
        endpoint: 'https://some-endpoint.com'
      }
    },
    cache: {
      driverPath: 'image-steam-blobby',
      endpoint: 'https://some-endpoint.com',
      bucket: 'myBucket',
      secret: 'mySecretShh' // enable writes
    }
  }
}

http.createServer(new isteam.http.Connect(options).getHandler())
  .listen(13337, '127.0.0.1')
;