0.1.8 • Published 2 years ago

@brandbird/integration v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Installation

With NPM

npm i @brandbird/integration

With yarn

yarn add @brandbird/integration

Usage

Be aware that we restrict the integration of Brandbird by platforms at the moment. Are you interested? Hit us up at jim@brandbird.app

import { openBrandBird } from '@brandbird/integration';

async function() {
  try {
    const blob = await openBrandBird(
      { 
        provider: 'YOUR PRODUCT NAME', // The name of your own product
        src: 'Image in Base64 format or a public URL', // Optional: input image to editor
        platform: 'twitter', // Optional: adjust the canvas size ('twitter' | 'instagram' | 'linkedin' | 'facebook')
        width: 1200, // Optional
        height: 900, // Optional
      }
    );

    // do something with the blob, e.g. create an object url to show it in an img tag:
    // URL.createObjectURL(blob);
  } catch (error) {
    // error handling
  }
}

Demo

  1. Demo for React.js
  2. Demo for vanilla JS
0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago