News for hackers. Stuff that matters.

edwardloveall

Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @01:36PM (#28842572)
Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @01:35PM (#28842558)
I'm a ruby dev so as @bogwog mentioned, Crystal is appealing in it's similarly. I like being in a typed language, and it's _fast_. I'm running this on a very low powered server and it's holding up great.

Also, while I'm really glad it seems to have resonated with so many people, a huge part of this project was the learning I got from it. Getting better at Crystal's type system and the Lucky framework, discovering and using the monads library, learning how to deploy crystal, etc. I hear you on Invidious being difficult to contribute to. I've felt the same way. My difficulties have stemmed, not from crystal, but from the custom libraries that invidious needs. I effectively can't run it locally without Docker. Scribe should work fine locally.

Every language and framework has its tradeoffs. Rails would certainly have been the safer choice, but I also don't expect this to have massive contributions, so I went for the thing I was more interested in. Maybe that was a wrong choice, who knows!

So TL;DR I like crystal and wanted more experience with it. It felt like the right tradeoff for this project, this time.

Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @10:11AM (#28839878)
I _believe_ you can do one simpler (assuming the reader only clicks the link if they recognize it's a medium post)

    javascript:q=location.pathname;location.href="https://scribe.rip"+q;
Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @10:07AM (#28839832)
It's a Crystal [1] app built with the Lucky Framework [2]. The source code is here [3] and there are a few instructions in the README for deploying, but not much yet.

[1] https://crystal-lang.org

[2] https://luckyframework.org

[3] https://git.sr.ht/~edwardloveall/scribe

Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @10:05AM (#28839802)
It is. I use JS to generate the statically loaded CSS, and there's some JS built into the Lucky Framework which is loaded, but not used.

You can check out the source code here if you like: https://git.sr.ht/~edwardloveall/scribe

Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @10:04AM (#28839790)
Yup, this is on my todo list. Thanks for the example post I can use as a reference!
Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @09:02AM (#28839118)
Actually, you don't even need to do this! Scribe only cares about the last few hex digits in the URL's path: the post id. So you can leave off the subdomain and https://scribe.rip/the-efficiency-of-microsoft-e50ea81f69f5 will work just as well.
Re:Scribe – An alternative front-end to Medium on Tuesday October 12, 2021 @09:01AM (#28839112)
It does. The API I’m using just... doesn’t check. I’m not even sure how I’d support the pay wall.