Coder Social home page Coder Social logo

plugins: plugin system about uppy HOT 8 CLOSED

transloadit avatar transloadit commented on May 18, 2024
plugins: plugin system

from uppy.

Comments (8)

hedgerh avatar hedgerh commented on May 18, 2024

If the user is using their own UI and want to integrate with dropbox, for instance, what is the transloadit-dropbox plugin going to provide them to do this?

from uppy.

kvz avatar kvz commented on May 18, 2024

I think there is one more step

input file -> modifications/configuration -> uploading -> server-side processing -> output

modifications/configuration is for instance: selecting an area that the server will use as cropping coordinates. Like https://transloadit.com/example_apps/image-cropper/index.php

from uppy.

hedgerh avatar hedgerh commented on May 18, 2024

Updated my post to reflect that for easy reference.

from uppy.

kvz avatar kvz commented on May 18, 2024

If the user is using their own UI and want to integrate with dropbox, for instance, what is the transloadit-dropbox plugin going to provide them to do this?

A consistent interface I think? If dropbox' integration kit does BC-breaking changes, our plugin could compensate for that. Our plugin might also need to ask servers for auth tokens or similar.

I'm not sure of course. It's an interesting idea. We'd need to learn more

from uppy.

arturi avatar arturi commented on May 18, 2024

The ‘simplest’ way to figure this out: build Instagram, Dropbox and Google Drive, compare them and see if they turned out different or mostly the same. Then question this again.

Look here, it is a plugin for social share & like buttons: https://github.com/sapegin/social-likes/blob/master/src/social-likes.js#L33. Seems like they all are kind of the same, but there are minor differences and additions here and there.

from uppy.

kvz avatar kvz commented on May 18, 2024

The ‘simplest’ way to figure this out: build Instagram, Dropbox and Google Drive, compare them and see if they turned out different or mostly the same. Then question this again.

I'd have to agree that this is best decided by trying.

from uppy.

kvz avatar kvz commented on May 18, 2024

My gut feeling says we'd get a messy core quickly if it had to compensate for all the different implementation details of the external libraries. Small wrappers seem cleaner and easier to update, and protect core from many changes as external libraries change

As for

input file -> modifications/configuration -> uploading -> server-side processing -> output

I think each plugin will need to 'announce' where it belongs in this chain by exposing a type.

from uppy.

kvz avatar kvz commented on May 18, 2024

We have settled for now on a basic system as laid in https://github.com/transloadit/transloadit-js-client/blob/f1aa1072d5159c372624a57d5a8edaad2119efa9/classes.es6#L55

from uppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.