screenshot-to-code icon indicating copy to clipboard operation
screenshot-to-code copied to clipboard

API as a service?

Open DiTo97 opened this issue 1 year ago • 3 comments

Hi @abi,

I have been working on an AI-driven automatic website generation platform which looks roughly like the following:

  1. users submit ideas on website topics (e.g., "smart mailboxes");
  2. a language model and a text-to-image model work together generating website screenshot proposals;
  3. users may select the preferred proposal or discard them all going back to step 2.;
  4. users may refine the preferred proposal going back to step 2.;
  5. users finalize the proposal with a model generating the website code in the preferred JS framework.

Thus far, I am keeping things simple allowing only single-page webapps (SPAs) and completing step 5. manually on the website.

Are there any plans of exposing the screenshot-to-code website functionality as a REST API?

DiTo97 avatar Jan 10 '24 01:01 DiTo97

@DiTo97 hey, that's a really cool idea. I'm not planning to support an API at the moment but I'm interested in hearing if others have a similar use case. For now, since this is an open source project, you can deploy the backend to something like Render (which is what I use) and host the API yourself. Does that work for you?

abi avatar Jan 15 '24 00:01 abi

@abi, makes sense.

For now, I will deploy it locally and wrap it with an API layer. I may even share it here.

DiTo97 avatar Jan 15 '24 09:01 DiTo97

Please do share it. That would be great!

abi avatar Jan 15 '24 15:01 abi

Not planing to working on this for now so closing.

abi avatar May 21 '24 17:05 abi