rentry icon indicating copy to clipboard operation
rentry copied to clipboard

Open source code for the rentry site?

Open dessalines opened this issue 6 years ago • 14 comments

I'd be interested in seeing the code for the rentry site, esp with regards to knowing which javascript markdown engine is in use, and such.

dessalines avatar Dec 15 '18 17:12 dessalines

Also to potentially add features like secret / encoded pastes and such.

dessalines avatar Dec 15 '18 17:12 dessalines

The code is crap. I will opensource it once it is cleaned up a bit. There isn't any javascript markdown engine though, what I use is Python-Markdown with some extensions and codemirror to highlight text in the editor.

As for encrypted pastes it is on the todo list.

radude avatar Dec 16 '18 10:12 radude

While on the topic of the website, maybe consider adding dark mode (maybe even by default?). CLI could have a switch -d or something. I understand it is cosmetic and unnecessary, just throwing it out there.

Otherwise, I love it <3 Every pastebin thingy is adding unnecessary crap like live editing, collaboration, comments, blockchain you name it. I just want to send dead simple markdown note, people. The WTF part is making it a bit NSFW, if it loads a wrong video :) Thank you for making the site and CLI!

LeBaux avatar Jun 11 '19 15:06 LeBaux

Every pastebin thingy is adding unnecessary crap like [...] comments

Whoops, I was planning on adding (disableable (anonymous)) comments. I'm slow tho, so you don't have to fear the bloat yet.

radude avatar Jun 11 '19 16:06 radude

I understand people want to make their (pet) projects better. But sometimes, UNIX approach is the best. Do one thing, do it the best way possible.

If I want any sort of collab on MD file, there is already hackmd.io. It is pretty sweet. Or you know, GitHub.

Look at the OG pastebin, I would say 9/10 notes are anon pastes, one time, bye-bye. Be the bigger man, rise above, be happy with what you made.

Could I use an account for managing pastes? Yeah. Do I NEED it? Not at all.

Also, you removed WTF? I have to admit, now it nears perfection.

LeBaux avatar Jul 02 '19 10:07 LeBaux

@radude i would appreciate if you could​ share the web source code by email. email : [email protected]

freqmand avatar Apr 23 '21 16:04 freqmand

is a sourcecode still closed? Four years...

KarelWintersky avatar Mar 06 '23 22:03 KarelWintersky

I didn't receive the code by the way :)

freqmand avatar Mar 12 '23 19:03 freqmand

@radude ?

KarelWintersky avatar Mar 13 '23 13:03 KarelWintersky

@radude, maybe you could create a repo with main branch pointing at initial commit, and the actual code hidden in dev branch. So that it is made publicly available only when you feel happy about it. If the code works, it can be "uncrapped", and there are people willing to do so)

(unless you keep all your passwords tightly packed into the codebase)

Mikle-Bond avatar Mar 13 '23 14:03 Mikle-Bond

It would be more productive to just make a clone from scratch, rather than expecting rentry to become FOSS lol

dejl avatar Apr 05 '23 21:04 dejl

Some time ago I was looking for a self-hostable Markdown pastebin and found Rentry, but unfortunately Rentry cannot be hosted yourself. That was a bit of a disappointment, so I thought about making one myself but I just decided it would be too much work for something so niche.

So anyways, I did it over the past day and decided I'd share it here in case any of you are still looking for an open-source Markdown pastebin. It's not perfect, but it does the job. Here it is: https://codeberg.org/hkau/entry (A compatibility table is available in the README)

The UI is (almost) a complete re-creation, with some minor differences because I thought they looked better. It is written in TypeScript for use with the Bun runtime, this means the server only really runs on Linux/MacOS, but it makes the server much more lightweight than if it was written for Node.

It would be more productive to just make a clone from scratch, rather than expecting rentry to become FOSS lol

Yeah, it's been four years since this issue was opened and there hasn't really been any developments, so I hope this is useful for someone. It's written in TypeScript because I'm not very good with Python (which is what Rentry uses), and it was just easier

It's built with:

  • TypeScript (Bun)
  • CodeMirror 6 (for editor)
  • Marked (for Markdown rendering)
  • Preact (very small JSX renderer)

Also, you can see the README of the project in a small hosted version here!

Quick update on this: Entry now supports encrypted pastes and simple cross-server paste viewing (for non-encrypted pastes). I don't plan on adding many more features because I'd prefer it stay simple and lightweight, but I decided to add these two in order to make it more than just a Rentry clone.

0aoq avatar Jun 29 '23 21:06 0aoq