News for hackers. Stuff that matters.

Show HN: Code pastes in local storage, shared via Web Sockets

I thought it would be great to share code snippets without saving them on a server, so I created http://mem.pe

It allows you to paste code and save it in your browser's local storage. When you share the URL of the pasted code, other people will connect to it via web sockets. For example, this http://mem.pe/#sge/5 you will be pulling from my browser. I'll keep it open for a while.

If you close the web app, your code paste will not be available for anyone to see, until you open the web app again.

This is obviously, not suitable for using at forums and other places where the paste will have to be available for a long time. However, it is great for IRC and chats where you want to send a quick disposable link to a code snippet.

Available on Github at https://github.com/naturalist/mempe

Any comments would be greatly appreciated.

( 4 comments | 12 points | on HN )
Re:Show HN: Code pastes in local storage, shared via Web Soc... by pearjuice on Monday October 21, 2013 @02:16PM (#6587242)
Very interesting. Quick tip: change this submission to one without text linking to the website and update your frontpage with some headline quickly indicating what your service does. This could become big.
Re:Show HN: Code pastes in local storage, shared via Web Soc... by zeeone on Monday October 21, 2013 @02:32PM (#6587328)
It doesn't seem that I can change the post to include a URL and no text, but I followed your advice and added a one line description of the service on the home page.
Re:Show HN: Code pastes in local storage, shared via Web Soc... by sovenger on Wednesday October 23, 2013 @08:53PM (#6602794)
Last night in class, I needed to share some code with a classmate. Instead of using e-mail, we used this. It worked perfectly. Nice job.
Re:Show HN: Code pastes in local storage, shared via Web Soc... by codewriter on Monday October 21, 2013 @02:39PM (#6587377)
This looks great. My team of distributed developers could really benefit from something like this.