Thanks for the comment! I wanted to keep the html and css as simple as possible so I didn't put much layout. If it gets traction I will improve that. Same thing for the font.
It's all hand crafted. My first time using golang so the code is probably not as efficient as it could be.
I think the server code has a concurrent access bug that makes it crash in the middle of a request. Unfortunately due to the current charge I can't even restart it at the moment.
Pretty cool, I noticed it works both in the browser and command line. I suppose you are using the User-Agent header to detect which version to serve? Which library did you use for the interface?
Some small feedback if I may: Could you separate the link and the text on the main page? My first thought was: "This isn't text. I can't highlight or copy anything. It's actually the opposite of what the title says." But everything was as advertised when viewing an actual coin.
Yes, since I got too many requests from HN, I had to enable the CDN. I didn't realize it would cache both html and terminal request together. I tried setting "Vary: User-Agent" but it didn't work. You can add: "?term=true" to make it work in terminal for now.
48 comments
[ 1.6 ms ] story [ 104 ms ] threadSome things that can be improved:
- The UI is left justified on my mobile browser. It will look better if it is centered.
- The font is too small. Perhaps you could increase font size so users don't have to zoom in.
Also, did you a framework to generate plaintext front-end or is it hand crafted?
It's all hand crafted. My first time using golang so the code is probably not as efficient as it could be.
\xe2\x94\x82\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x98\n
Update: the server is back up and it looks fine on Firefox now. false alarm
My preference for time is much longer-term. Trading too often can lead to ruin due to transaction fees (and/or emotion).
I'd use the 1 day, 30 day, and 365 day price changes instead of 1h, 24h, 7d.
Another small issue: I can't use autoscroll in Firefox because the whole page width is a link.
https://web.archive.org/web/20220614131126/https://plaintext...
curl https://plaintextco.in/coins/bitcoin
<!DOCTYPE html> <title></title> <meta name="description" content="Plain text cryptocurrency prices"> <style> @font-face { font-family: 'dejavu-sans-mono'; src: url('/static/DejaVuSansMono.ttf') format('truetype'); } * { font-family: 'dejavu-sans-mono'; font-size: small; line-height: 120%; } </style>
<h1>plaintextco.in</h1>
<h1></h1>
<pre> Bitcoin (BTC)
It's impossible to read :(https://imgur.com/a/NPsN5N5
Cool site! Cheers!
It would be nice to configure a list of coins to be displayed. Something like:
Also, you could reduce the HTML size significantly by using <i> instead of <span> and create a classnames for the colors.