-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
offline support: run without needing to contact carbon server #15
Comments
@jokeyrhyme Thanks for your feedback. :) While this should be possible, I don’t know how desirable or needed it really is, to be honest. It’d have to locally co-exist with the entire Carbon project, and Of course, this is just my opinion. :) I’d be curious to know more about the why’s of your idea. TL;DR: I do rather feel like this is outside of the scope of this project. |
@mixn teehee |
@mixn in terms of use cases, I just prefer things to be offline whenever there's no special reason for them to require a connection |
Agree with this. |
One way you could accomplish this is to setup carbon to run locally (or on your on server) and then add some config to this CLI that sets what remote server to use. Certainly not as nice as bundling everything, but an alternative that requires less from this project. |
All technical things aside, I feel like all of this would be “taking away” from the hard work Dawn Labs have put into Carbon. This CLI should not “avoid” the service, but co-exist with it — since it wouldn’t exist without it in the first place. :) |
I think in the scope of this project it should leave as is. Carbon is awesome, but I think it was supposed to use the website and mainly with gists. So, probably it is reasonable to think about another CLI library that does what carbon does without any internet connection, since it can be done(and it is what actually all famous IDEs do). Internet connection can be used for fetching themes, additional plugins or/and gists, if you want to build image from gist. I think that will be interesting challenge/project :) |
I’ve re-opened this issue, hoping that some people might chime in… 🤞 I’m currently finalizing the big #83 release, and although I was initially planning on implementing this, then decided against it, now I’m totally unsure once again. 😕
Long story short, I’ll leave this open, hoping that the conversation will spark up again and more of you will chime in. 🙂 Thanks for reading and caring! |
Hello 👋 We're building out some automatic just-in-time image generation for OpenGraph images at Exercism and I was planning on using Carbon to achieve this (to the point of having it dark-deployed). I only just realised that it doesn't work in a self-contained manner and that's a definite downside for us (maybe a show-stopper). There's a few reasons it's bad for us:
Right now, my plan would be just to deploy our own version of carbon.sh and point this at that instead of the carbon website, or just write our own version of the whole thing instead (I'm probably leaning towards that at the moment as we already do code highlighting etc in our codebase) but a bundled version would be the easiest and nicest approach. That's my feedback :) |
@iHiD These were issues for me as well, and I didn't like the unnecessary privacy risks of sending my code over the wire to accomplish something so simple. Carbon has nice features but ultimately I just need to add text to an image. That's why I built out my own local-first solution called Nitro: https://github.com/lukesalamone/code_nitro |
@lukesalamone |
I'm wondering whether this is possible / desirable to be able to run this tool locally in an offline way?
Is this outside the scope of this project? Or would a PR be welcome?
The text was updated successfully, but these errors were encountered: