Lurker News
I wrote this silly thing a couple of weeks ago. It's absolutely useless but it's a fun tech demo for my web server library. Enjoy!

Comments (181) 65 threads

Show all comments

Showing thread 2 of 65

dmazzoni4 replies#
Just in case anyone doesn't already know, you can do that with a data uri as well:

data:text/html,
My%20small%20website
Look,%20it's%20real!
You can use a data uri generator to base64-encode it, if you want.
Advantages of smolsite:
- Zip might let you fit a bit more than a data uri
- Some JS APIs would work on a smolsite url, but wouldn't work in a data uri

rpastuszak1 reply#
This is amazing, thanks

Continue this thread — 1 reply

pcthrowaway1 reply#
> Some JS APIs would work on a smolsite url, but wouldn't work in a data uri

In before someone writes a smolsite to install a service worker on the domain that sends analytics for all other smolsites to their own server

account42#
Just another reason why service workers were a mistake and should be removed.
maxbond3 replies#
You can use this trick to get a handy notepad.

    data:text/html,
I keep it on my bookmarks toolbar.
undebuggable#
Duh, one can load preconfigured ACE editor with syntax highlighting with it.
loueed#
I also have a bookmarklet for quick notes.

> data:text/html,
New Note
I added some basic styles so I can screenshare :D
Also in most browsers, CTRL + B, I and U work in contenteditable divs.

petabytes#
Reminds me of what I did with ChromeOS in middle school, built a whole code editor in the URL bar.