195 comments

[ 6.9 ms ] story [ 349 ms ] thread
The whole "main" page being under 2kB is an adventurous thing indeed. Overall, interesting implementation and incredibly clean layout (CSS is 541b.)

What languages are the site written in?

(comment deleted)
It seems the backend is PHP.
I like the simplicity. But essentially this is something like pastebin right?
Yea, it's essentially a minimalistic pastebin for markdown
I like the idea. I've used services like this before. I do wonder if monospaced font is really the best route. It makes anything longer than a couple hundreds words a pain to read.
This. Bringhurst's fantastic "Elements of Typographical Style" is still relevant.
Never realized how uncomfortable it is to read a paragraph of monospaced font text, even though I read 1000s of lines of code in monospaced font without any issues.
No paragraphs of comments in your code? ;)
No.. may be my code is just not worth commenting ;)
IMO the only reason why it's unreadable is font size.
Agreed. Since it accepts Markdown for blocks of code, the default should not be monospace.
Maybe I'm in the minority, but I enjoy reading in monospace. And I certainly prefer it over a sans-serif font with font-weight set to 0.01 and poor contrast!
Yeah, it's pretty painful to read. If they are anti-webfonts, I think Georgia could be a good option.

For me the monospace text is difficult to read for longer text because I can't chunk as effectively.

> no database

Where is the data being stored then? Some kind of key value store or filesystem maybe?

If I had to guess, from a quick poke about:

You POST your uploaded doc to 'do.php', which renders into an html file and puts it on disk, which is served by Apache. That's about as simple as you can get. Let the web server do what it does best (serve files).

> or filesystem maybe

For text files?! Get outta town ;)

Some markdown features aren't working, like code blocks and newlines (by ending a line in double-spaces). Also, unknown routes don't 404 nicely; they just hit the Apache default.
A preview option would be nice but otherwise I like how simple it is.
Please work on typography.
More specific typography tips could be more useful.
For starters, not using monospaced fonts for the article copy.
That made it stand out. It might not have got to the front page of HN otherwise.
I like how simple and easy this is to use. At what point would costs of hosting something like this become too much?
There's also http://txti.es/ which is by the same creator as http://motherfuckingwebsite.com/
> http://motherfuckingwebsite.com/ this is pure gold! and check the end of the source... xD
I HATE gray text. I haven't had a single book with gray on white, not a single newspaper with gray on white, what is this gray-on-white trend in the internet, I don't understand it. But that's illegible, that's an eyesore, and if I were to have to read it, I'd first go to the dev console and change the foreground colour.

>> Black on white? How often do you see that kind of contrast in real life?

I mean where these people live? Don't they read anything on paper? Don't they look ad ads on the road, ads on TV. God, is this a plot on our eyes?.

If it's well done, you don't immediately realize the text isn't exactly black. You'd have to have a closer look to find that out.

The paper color of good books isn't glaring white, either, but has a slight yellowish tint. FWIW, I think the background color of HN might be a nod to that.

They use macbooks with retina screens, for them the text looks fine.
I nearly snorted my morning coffee when I read: > Shit's legible and gets your f...ing point across (if you had one instead of just 5mb pics of hipsters drinking coffee)

So good. For the record I'm a programmer, not a hipster. ;)

Every time I work with javascript I'm forcibly reminded that those are not mutually exclusive.
The problem with these sites is, they're hard to discover. Telegra.ph is the most awesome (rich text, widgets for youtube & co...), but can't be found when you type "richtext pastebin" on Google, because the welcome page is too simple, obvious, perfectly ergonomic, ultimately simplistic...
That's why they have URL hacks to make sure people remember them. But usually that doesn't work for me, so I'll be sure to bookmark all of these.
Aren't people who visit Hacker News already familiar with a ton of ways to publish anything they want instead of soon-to-cease-to-exist service that only serves raw text?

I say this not to be mean -- I understand where you're coming from, I myself have written a "pure plain text" service in the past and thought it would be revolutionary due to its simplicity.

I don't think its author thinks its revolutionary (at least it doesn't send off that kind of vibe). Just a neat personal project that some people might find useful.

Pretty cool nonetheless.

Maybe it'll land the guy a job if he show it off during an interview. Who knows? I like it, it's neat.
I think he already has a job at BoingBoing.
That's how we should be evaluating products: if they will land the creator a job.

Try applying this logic to politicians or bankers or whatever class you don't like.

They definitely are, but it's still an interesting, useful project.

As someone also building and running a "plain text" service, I know there's a lot you can do with such a simple product, if you care to. [0][1] It's great to have more services like this -- it's what the web is all about.

[0]: https://write.as/apps

[1]: https://read.write.as

Really. Is THIS what the web is about? Just sharing text? Of course sharing text is part of what the web is about, but hey, how can we find this text? How can the author know what he has written? How can we be sure of who wrote it? How can we make sense of what text refers to what? Which of these texts is more worth reading?

Just in the field of text-sharing, there are tons of problems which are not being solved by these pure plain text services, while these are not new problems and other services are already trying to solve them in multiple different ways.

> Really. Is THIS what the web is about? Just sharing text?

Text is communication. Anything else is an increase of human efficiency at a cost of data. I wouldn't say the web's about text...but I would say that it's about communication, and that services like this clear away the extra frills to get to the essence and remind us all.

Exactly. And that communication can (and does) happen in an infinite number of changing forms, which is amazing.
I meant "this" as in people creating simple tools and services for everyone. I meant your pure plain text service would've been a nice addition to the web. Everyone who creates things online brings their own ideas to the table, and that's what the web is about. (And of course it's good for other things.)

And certain services (like Write.as) keep track of all the posts you've written, and they can optionally can be tied to a pseudonym. I don't think that an assurance on who wrote what is always necessary. If the writing is good, the author doesn't necessarily matter. And anecdotally I think people who abuse anonymity online are in the minority -- most people use anonymity to share more candidly where they otherwise feel repressed.

And I think "worth" is best decided by the reader, and a human touch continues to be superior to any technical solutions we've come up with. Platforms who try to uniformly enforce some standard of "worth," in my opinion, risk alienating a large amount of people, and usually miss the entire standard they were going for in the first place.

But what other problems do you think exist with text publishing services? Or what do you think needs to change? How do we solve those things?

> I don't think that an assurance on who wrote what is always necessary

I'm not saying it is always necessary, but that it is a recurring problem that occur but txt.fyi doesn't care about.

> most people use anonymity to share more candidly where they otherwise feel repressed.

It doesn't matter if you share something anonymously in txt.fyi if nobody is ever going to find it.

> And I think "worth" is best decided by the reader, and a human touch continues to be superior to any technical solutions we've come up with.

You're proposing that we go read everything on the internet to pass our judgments on what is worth. That was the problem in first place. Categorization, ratings and reputation are some of the solutions already tried. I don't know if they've solved everything or if there is room for better solutions. What I know is that txt.fyi doesn't care about this problem.

> But what other problems do you think exist with text publishing services? Or what do you think needs to change? How do we solve those things?

I don't know. I just imagine that there are many problems we know of (such as the ones I listed) and the author of txt.fyi is not trying to solve any of these. Other problems may exist or come into existence, and it is up to platform developers to try to solve them too. There is of course room for pure plain text published anonymously, but the supply is already immense there. I don't think we should incentive new developers to write one more of these services (and worse: keep running it an improving it technically for a long time).

Since the site is already experiencing the HN hug of death, it makes me wonder how doable it would be to make something like this but backed by a P2P store, possibly verified by blockchain
Most people publish something on the internet hoping it reaches as many people as possible, otherwise what's the point?
The monospaced font is a downer, but the clean colorful pixel logo makes me happy.

Overall this strikes me as a project borne of a sweet domain name, but I still dig it.

I like this, but be ready for 'questionable content' like dox and password lists. Dealing with that crap was why I stopped running pastebin.com :)
Have you ever done an AMA? I imagine that would be interesting..
Ditto. Those who ignore history etc
I don't think I have that many interesting stories, it was just the time involved with dealing with emails from irate individuals, companies, and (occasionally) law enforcement agencies!
Still would be interesting, pastebin probably had almost every user-type imaginable.
Honestly what I'd love to know is how you scaled it and how you would/wouldn't scale it again.
But in an AMA, it's the audience that asks interesting questions, with you discovering that your stories are more interesting than you originally thought they would be!
I was trawling through /bestcomments, saw your comment extracted on its own, and opened this thread to suggest you share some life stories.

And then I see others have requested AMAs too.

pastebin is, after all, the #1 site. And you did (more or less) say you stopped running it due to stress/"interestingness" :)

Like another commentator said, you would've gotten one of everything.

So please do consider it. :)

they will most likely get spam first, as they allow links. from those seo people
If they're not indexed then I can't see the value.
it happened to something similar i did many moons ago , even with nofollow. i dont know why
Nofollow links seem to help with getting the target indexed. So, the spammers create their second and third tiers of actual content on sites that do not use nofollow. However, they'll use anything with any kind of links to get those tiers crawled and indexed.
i guess thats what they did. funny, it seems they got penalized regardless somehow, because i started getting emails asking to please remove the spam they posted.

Edit: It seems some of them were trying to damage competitor's SEO ranking by posting irregular links. SEO is wild west.

Thankfully the old "blasting links" type of SEO is pretty much dead now.
When you say something similar do you mean also not indexed, or do you mean you ran a text submission site with nofollow links?
I'm not convinced that nofollow == no value.
That assumes all of the spammers care enough to learn the limitations of txt.fyi.

Some will just scribble whatever, where-ever possible.

I can confirm that. I made https://pastery.net, a pastebin (THE BEST ONE), and I looked a few weeks later to find that it had a few hundred thousand pastes. I was very happy to see that people were using it that much, until I realized that most of it was spam.

I wrote some heuristics to delete spam pastes, and only about 1,000 pastes were left, about half of which were spam still :(

I don't even know why they do this. They just do it.

Cheaper for their scripts to indiscriminately spam than them manually work out which forms and public sites are indexed and will actually bring them value.
Require some complex js codes workflow to post using websocket or something and most automated spam goes away. They are mass mindless bot, not targeted spammers.
That's a good idea, but most of the functionality of the site comes from its API. Then again, it's easy to require a key and a captcha to sign up, so your idea is good, thank you.
YOu just gave them a lab to play test in.
Isn't that easy to deal with? Sit back, relax and wait for a court order or your own ISP's demand kind of thing?

That's been my policy when running this kind of thing in the past - maybe I've been living behind CloudFlare and OVH for too long.

We (and by we, I mean, I) launched "Oh By"[1] last year which is very, very much like what is going on here, but with deliberately human-readable and recognizable codes ("Oh By Codes") ....

Do you have any comments ?

Of course we had pastebin very much in mind - not as a model to follow but as an analogous service in some ways. Our message is limited to 4096 characters so it isn't quite as useful for large docs ... but it's much easier to pass around the "code" chalked on the street ...

[1] https://0x.co

That's interesting. I am surprised I didn't see the mention of this last year.
(comment deleted)
Hahaha, I built something just like this site once, just to see what would happen.

Wouldn't this be fun? No auth, no rules, no permanent database, just plain text that hangs out for a while (though people could reply to it - ours was more like a forum). The ones with replies jump to the top, everything else slowly falls off into the abyss where it can never be found again.

Literally had people posting ASCII-rendered child pornography within 24 hours

Apart from the last line, that site design sounds like a lot of fun. I'm guessing you went "okay this isn't going to work" and killed it - or is it still quietly buried somewhere?

Also, did you keep the code? Might be a fun startpoint for others to springboard off of.

> Apart from the last line, that site design sounds like a lot of fun

"Other than that, how did you enjoy the play, Mrs. Lincoln?" :)

Nah the code is gone. Wrote it in <24 hours, and it wasn't really worth keeping.

Hehe. Gotcha. Thanks for the reply!
God i feel you. Everytime a pastebin close we get a surge of dox / warez / child porn activity on http://0bin.net. Since by design we can't monitor it we just get notified after the fact by concerned citizens mailing us. One month our mailbox is empty, the other one it's report day every day.
Oh cool I'd not heard of this before but it looks awesome. Good work
How confident are you in your legal shield that, although you know your service is being used for child porn, you're claiming not to be responsible for it?

Edit: I see you're behind whoisguard but hosted in Bulgaria, which is probably uninterested enough in chasing you.

The internet is horrifying.
The internet reveals the horrifying nature of humanity.
*of the worst of technically literate humanity.
If you're implying that the technically literate are either better or worse in this respect (or even just differently distributed), you might want to back that up with some arguments. Maybe you tried to say something else but otherwise I don't see the point of this remark.
No, I'm highlighting that nicky0's phrasing over-generalises.
Is there any way to prevent bots from hitting publish ? There are these script kiddie trolls you know!
small page size, secure static html file, loads fast and viewable on mobile device.

What sorcery is this??! Page size is not even 1mb and there's no React front-end component :)

The connection has timed out

The server at txt.fyi is taking too long to respond.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
"Whoa there. txt.fyi's under heavy load. Come back soon!"
> Search engines are instructed not to index posts

Oh, I'm sure the internet archive guys will honor that request.

/facepalm

Seems like a cool idea, and the creator is pretty responsive on Twitter. I offered to assist with the infrastructure as a way of supporting the project.
Hi! Creator here. It's getting a good kicking right now so I took down the "new post" page. Everyone's fyis are still live and well.

I wanted to make a publishing widget so minimal it would operate without fuss on a $5 digitalocean plan, and I think I almost succeeded!

How many requests-per-second are you getting right now?

What's the CPU utilization like with this level of usage?

What's the back-end stack?

What's the normal latency like?

I'm just wondering why it would go down due to heavy traffic, when all it serves is basic text?

Hello creator. You can handle the traffic and db insert on a cheap digital ocean plan.[1]

My server purred with hn traffic.

[1]: https://idiallo.com/blog/handling-1-million-web-request

(comment deleted)
For the record, firefoxd's static assets were offloaded to another server for an additional $10/month. $15/month is still not bad, but I feel like this comment is a bit misleading.
You reminded me of Nepter on Adventure Time.
I'm really curious what ended up being the thing that took you down.
The bottom line is I don't know beyond memory. I'm utterly amateur and have enlisted the help of another Hacker News reader!
"Utterly amateur" => runs boingboing.net.

No need for modesty.

Rob doesn't technically "run" boingboing -- they Have Ken Snider sysadmin'ing it ....
Yes, I'm just editorial (and until recently design). Ken is our sysadmin and, as it happens, got txt.fyi back on its feet today when HN blew it down! He's brilliant!
Hi, nice idea! It went down though so I was thinking maybe you could build it strong but on the cheap too without needing a database and very little coding.

It starts with this premise: https://aws.amazon.com/articles/1434/

There is an approach I've used for years and my site never goes down with high traffic and I didn't use load balancers or anything fancy. Its very cheap to run and maintain.

1) Use Amazon S3 and Cloud Front for all your web pages, including your web app as well along with storing anything such as file uploads, etc.

2) Have a simple cheap $5 Digital Ocean Droplet (Node or Go) used only as an API.

3) JavaScript is hosted on your website front end that upon save for content then hits your API server just once to get a Just-In-Time signing request that authorizes the web browser to make an upload directly to S3 temporarily and signed to a specific namespace/bucket. This type of traffic happens very less than say viewing a web page along with it taking up very little processing and bandwidth so you really don't need to scale this.

4) The web browser's javascript literally creates the entire html page and uploads it directly to S3.

You can easily do image uploads as well or video too using this method and use the just-in-time signing method for those too.

Yes it is not secure if there is no signup etc but you can do crypto.generateRandom to put people in specific namespace path then show their URL after, controlling limited permissions and the location of where things are saved from your cheap API server.

Here's my little repo for signing to demonstrate this -> https://github.com/sebringj/siggy

Just a thought.

You may also use AWS Lambda and AWS API Gateway.
Sure you could. The funny thing is, I've had this product on the market using this very concept of JIT signing, using the browser (and apps) to do all the work, didn't really put any effort into, only used for my clients as a CMS-as-a-service or CMSSAAS WTF? called kitgui.com, been on some department store brands using it for ecommece sites that i've put as a consequence of needing this on multiple backend platforms. Any hoo, never goes down, never had to do jack shit scaling or worry about it but I've completely neglected it so it looks like 2010 crap themes and diy web standards. Anybody want to partner up on it and make a bad-ass json cms that spreads to all devices? I'll gladly divvy % on current revenue.
You could maybe convince me that this is good if you cared enough about it to host an instance yourself...
Alas, only doing this for karma and a false sense of belonging, beyond that, I like money.
Hey, consider Google Cloud as a solution, super low cost and scales automagically, load balances etc.
I'd imagine for the time being you could use DO's resizing features to vertically scale your droplet to handle the load. Then at a later point, horizontally scale.
Hey! The about says 'no databases', but how do you store the text then?
Storing in S3 should just work. Isn't it?
> Write something, hit publish, and it's live.

Live for how long though?

Too many publishing platforms sunrise and sunset. To use one that's not self-hosted, I really think one either needs to (1) charge money, and/or (2) offer guarantees like Posthaven or Svbtle, if you want users to publish good content on your platform.

Write something, hit publish, enter resulting URL into archive.org?

I'd worry that's an abuse of archive.org except apparently their policy is basically "the crap is important too".

Even archive.org is dependent on donations [1].

[1]: https://archive.org/donate/

Well, yes. But it has already proven staying power that puts it in rather a different class to "somebody's neat side project" in terms of expectation of survival.
Cool idea. You need favicon, so it looks nicer when bookmarked or saved in dashboard sites, like zeerka.com
> and know the form of your voice is out there forever.

Lots of these types of sites usually have some limit. That is, if the page hasn't been visited in 6 months - out it goes. Curious what the time limits are.

Also, unable to test (site under heavy load) but is there an edit link that's made available after making a post? From the comments, that doesn't appear to be the case. So if I wanted to use it as a knowledge base for something, I wouldn't be able to keep updating it. I think this is the missing (basic) feature.

That's really the point, to be as minimalistic as possible. The less features something has the less points of failure are possible. If you need a certain feature, use something else.