API
janwilmake opened this issue · comments
I'm working on an API for you guys to allow devs to integrate with it...
https://github.com/janwilmake/forgithub.diagram
Happy to talk send me a DM on X
Update:
- added frontend
- added api docs
- total LOC reduction: 9.5x
Possible improvements:
- add monetisation using https://sponsorflare.com
- use cloudflare browser rendering to expose /owner/repo/image.svg as well as /owner/repo/image.png (do something similar to https://github.com/alfonsusac/mermaid-ssr)
- use https://uithub.com/openapi.html to retrieve the tree instead of the github api (to bypass the ratelimit)
Update:
- Added cache-control with stale-while-revalidate and max-age, so it's easy to refresh with a query param
- Added browser rendered png endpoint, e.g.
Sometimes though I'm getting invalid syntax, e.g.:
https://diagram.forgithub.com/ahmedkhaleel2004/gitdiagram
I would like to know, maybe I've used some incorrect settings? e.g. what mermaid version are you using, and which LLM?
