gramener / comicgen

Add comics to your website or app with an API
https://gramener.com/comicgen/
MIT License
596 stars 93 forks source link

require / node version of comicgen #33

Open pratapvardhan opened 5 years ago

pratapvardhan commented 5 years ago

Enable comicgen to used in require('comicgen') and import('comicgen') environments. Probably default document.currentScript.src to http://gramener.com or /

@sanand0 -- is this something you'd like in this project?

sanand0 commented 5 years ago

@pratapvardhan What would be some uses of it? Is it to generate the SVG from the server-side? Based on how this would be used, we can prioritize it, and figure out how to structure it.

pratapvardhan commented 5 years ago

Yes. For now, I see these two.

Later is my primary motivation.

sanand0 commented 5 years ago

Got it. I'm not familiar with Observable notebooks -- but that'd be a powerful alternative to what we're doing right now (with Codepen).

Would you like to send a pull request for this, @pratapvardhan? That'll help me understand what code will work. Thanks!

reezpatel commented 4 years ago

A good use case can be to something like this import { Dee } from 'comicgen/react'); Similar same can be implement for various framework. (Angular, Vue etc)

If this is something good to have, i would love to work on it.