Giter Site home page Giter Site logo

Comments (1)

haroldtreen avatar haroldtreen commented on May 18, 2024

Hey @asmyers !

It's a known issue that would be good to figure out a solution to.
Some thoughts:

Porting Book Generation To The Browser

I've generally been wary of this. Browser plugins are good for manipulating the browser/dom, but creating and writing files seems a bit beyond scope. Maybe though? I haven't looked a lot into it.

You might also need to find a javascript library for creating .mobi files. Currently the .mobi files are just .epubs converted by a 3rd party binary. You can't execute random files in chrome so that would break.

Email delivery would also break. That's currently enabled by integration with a 3rd party service. You might be able to create similar functionality but it would require each user to supply a unique email/password. So non ideal.

Have the browser send all images

This could be an option? Currently the communication with the server is all a single json object. I suppose you could serialize an image into json? But that might make the request body really big. The backend would then need to save those images somewhere and point to them when it came time to create the ebook.

Have the extension send cookies

This could vary from site to site... but a more lightweight option could be to send the session cookies. Then whenever EpubPress requests images it just uses the same cookies that are set in your browser.

There's security implications with this, so probably not a viable idea, but maybe something people would be comfortable doing when running the service locally.

Those are the things that come to mind when I try and think of solving this problem. Let me know if other context would be useful!

from epub-press-clients.

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.