khrome / ascii-art

A Node.js library for ansi codes, figlet fonts, ascii art and other ASCII graphics
MIT License
681 stars 287 forks source link

Hosted API #18

Closed chrisvxd closed 3 years ago

chrisvxd commented 4 years ago

Hey @khrome 👋 Thanks for creating such a cool ascii art library.

I'm looking to convert open source libs into SaaS APIs as part of my work with saasify.sh and thought ascii-art would be a great fit.

Ideally I'd create an API endpoint to generate ascii art along the lines of

https://api.saasify.sh/1/call/dev/ascii-art@latest/art

where a JSON payload would build your chain of operations (lifted from one of your examples)

{
  "ops": [
    {
      "type": "image",
      "width": 40,
      "url": "https://example.com/Images/initech.png",
      "alphabet": "wide"
    },
    {
      "type": "font",
      "text": "Doom",
      "color": "cyan"
    }
  ]
}

We'd love to offer a rate-limited API and reserve most of the profits for you. As an example, we've also worked on converting sindresorhus' imagemin and minimaxir's stylecloud to APIs.

Looking forward to hearing your thoughts! Would also be happy to jump on a quick call to discuss.

khrome commented 4 years ago

First off, thanks for the appreciation.

Very interesting, indeed I think there's a lightweight usage, for which a web service is perfect. There's also a potential to add options to strip or convert ansi for the web that might be perfect here. Happy to discuss on a call.

chrisvxd commented 4 years ago

Thanks for getting back to me 💪

Would definitely be good to call early next week. Would you be happy to jump on our open slack? We can arrange a call from there.

khrome commented 3 years ago

Closing.