4 ms·
I'm surprised nobody has attempted to put the content in the URL yet (to display on a static page with styling using JS [needs a tag filter...] to insert an URL
by lazyjones 6y ago
I'm surprised nobody has attempted to put the content in the URL yet (to display on a static page with styling using JS [needs a tag filter...] to insert an URL parameter into some node). It would accommodate at least 2KB of text, local caching and fast hosting all in one.
- mercacona 6y agoNot a blog, but: https://itty.bitty.site/edit https://itty.bitty.site/edit You can get a QR with your text too :-)
- crocodiletears 6y agoThis has been done, iirc. I think it was HN where I saw it a couple years back. I couldn't find it today if I wanted to, but it's definitely been done.
- pmachinery 6y agoNot sure if it's what you mean, but: (hashify) 2011: https://news.ycombinator.com/item?id=2464213 https://news.ycombinator.com/item?id=2464213 https://news.ycombinator.com/item?id=3407197 https://news.ycombinator.com/item?id=3407197 (shortly) 2012: https://news.ycombinator.com/item?id=3834643 https://news.ycombinator.com/item?id=3834643 https://news.ycombinator.com/item?id=5696127 https://news.ycombinator.com/item?id=5696127
- lazyjones 6y agoYes, that's what I mean. But only Hashify still exists apparently...
- pmachinery 6y agoYeah, the pages linked from those HN links don't seem to exist, but you can still download it: https://github.com/lucaspiller/shortly https://github.com/lucaspiller/shortly I was always quite fascinated by the concept, but I suspect liability and lack of control over the content is a fatal issue and why nothing much seemed to come from it. If someone makes a 'bad' page, which is inevitable, the domain with the hashify/shortly code would be held responsible and the only way the site owner could 'remove' the content would be to stop the service.
- thinkloop 6y ago> Storing a document in a URL is nifty, but not terribly practical. Hashify uses the [bit.ly API][4] to shorten URLs from as many as 30,000 characters to just 20 or so. In essence, bit.ly acts as a document store! [1] bit.ly et al. seem to be able to get away with being agnostic processors. I'm surprised there haven't been more stories about their services being abused. [1] https://hashify.me/IyBIYXNoaWZ5CgpIYXNoaWZ5IGRvZXMgbm90IHNvbHZlIGEgcHJvYmxlbSwgaXQgcG9zZXMgYSBxdWVzdGlvbjogX3doYXQgYmVjb21lcyBwb3NzaWJsZSB3aGVuIG9uZSBpcyBhYmxlIHRvIHN0b3JlICoqZW50aXJlIGRvY3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aElIWmhQdz09JykKICAgICLDg8KnYSB2YT8iCiAgICA+IGRlY29kZVVSSUNvbXBvbmVudChlc2NhcGUoYXRvYigndzZkaElIWmhQdz09JykpKQogICAgIsOnYSB2YT8iCgojIyBVUkwgc2hvcnRlbmluZwoKU3RvcmluZyBhIGRvY3VtZW50IGluIGEgVVJMIGlzIG5pZnR5LCBidXQgbm90IHRlcnJpYmx5IHByYWN0aWNhbC4gSGFzaGlmeSB1c2VzIHRoZSBbYml0Lmx5IEFQSV1bNF0gdG8gc2hvcnRlbiBVUkxzIGZyb20gYXMgbWFueSBhcyAzMCwwMDAgY2hhcmFjdGVycyB0byBqdXN0IDIwIG9yIHNvLiBJbiBlc3NlbmNlLCBiaXQubHkgYWN0cyBhcyBhIGRvY3VtZW50IHN0b3JlIQoKIyMjIFVSTCBsZW5ndGggbGltaXQKCldoaWxlIHRoZSBIVFRQIHNwZWNpZmljYXRpb24gZG9lcyBub3QgZGVmaW5lIGFuIHVwcGVyIGxpbWl0IG9uIHRoZSBsZW5ndGggb2YgYSBVUkwgdGhhdCBhIHVzZXIgYWdlbnQgc2hvdWxkIGFjY2VwdCwgYml0Lmx5IGltcG9zZXMgYSAyMDQ4LWNoYXJhY3RlciBsaW1pdC4gVGhpcyBpcyBzdWZmaWNpZW50IGluIHRoZSBtYWpvcml0eSBvZiBjYXNlcy4KCkZvciBsb2 https://hashify.me/IyBIYXNoaWZ5CgpIYXNoaWZ5IGRvZXMgbm90IHNvb...
- forbiddenvoid 6y agoThis reminds me a lot of the old Geico "wehadababyitsaboy" commercial: https://youtu.be/9JxhTnWrKYs https://youtu.be/9JxhTnWrKYs
- fwip 6y agoIf you're sending a 2KB URL to somebody, you can also just copy&paste the text of your blog post. But yeah, you'd miss out on styling it.
- divbzero 6y agoThinking through this, it seems like content-in-URL would work for a website with a single page or a small number of pages, but would limited by the fact that links from one content-in-URL page to another content-in-URL page require content from both pages to be encoded in the first page’s URL. If you have pages linking to pages linking to pages, this cascades into requiring content from all pages encoded in the home page URL.
- panopticon 6y agoThis was posted on HN a while ago: https://github.com/jstrieb/urlpages https://github.com/jstrieb/urlpages Not blogging specific, but it allows you to encode web content into the URL.
- dartf 6y agoI guess I'm a bit late to the party, but after reading your comment I hacked something together - https://x.rukin.me https://x.rukin.me It's ugly and I haven't spent any time styling it or improving editor(it's just textarea) but it works as PoC. Also I've started it before I read comments that hashify exists, otherwise I would probably not do it ;) Compared to hashify: - it uses zlib to compress data, so it can actually contain much more content(if it's repetitive) - it also supports password encryption of the content (don't know why, but my friend said it would be cool) - only supports markdown(no html) as I haven't found any good js lib for html sanitization on client side Examples: - With password: https://bit.ly/3c7xkyb https://bit.ly/3c7xkyb pass: wasted - Some markdown: https://j.mp/2AivRYr https://j.mp/2AivRYr P.S. I still have no idea why anyone will use it