Show HN: LiveTyper, a simple typing speed tester (livetyper.com)
Phoenix/LiveView using Presence to show the other players online.
My 2nd thing in a vague quest to make 12 things in 12 months.
My 2nd thing in a vague quest to make 12 things in 12 months.
41 comments
[ 0.22 ms ] story [ 91.1 ms ] threadEdit: hold on, that was me being dumb. The actual bug is that if I press "Caps lock" (because I type capitalized letters by quickly typing Caps lock + Letter + Caps lock) it incorrectly counts it as a keypress.
Sorry about the caps lock, will add! Currently only checking for the shift key itself. Good catch, thank you.
I'm running it on Firefox, on Windows 10.
Based on other responses, I'm assuming this doesn't happen for everyone, so if it's just me, feel free to ignore. Just putting it out there in case you'd like to investigate.
Ping tester says somewhere between 50 and 75ms to Amazon's Virginia center.
Yeah, I saw on another comment that you're apparently running this with SSR, which is pretty crazy, to me! I'm surprised it's as snappy as it is, honestly, but the lag makes a lot of sense, now.
Also shocked that you'd want to incur that much bandwidth cost - assuming you're being charged for it. Something like this should be able to run in the client effortlessly, so I would think even experimenting with SSR, you'd want to do most of the processing client side and then just dribble in the server re-renders, for more batched processing.
In any case, good job! Definitely does the thing you set out to do with it, and is a clear demonstration of SSRs capabilities (and current weaknesses).
Also using Firefox on Windows 10.
Edit: rather server overload - everything was for a while counted for me as a typo (without a typo counter); now I see red meant all the time incorrect.
Due to the nature of LiveView, I don't think I can eliminate the lag entirely, sorry. It's not just the other players, your own stuff goes to the server and back every keystroke too.
My 2 cents:
- I like the "heatmap" and the ghosts features.
- I don't like the fact that the text moves around on the screen while i am typing. It really shouldn't do that, because it is distracting.
- Once you have a typo, the program never notices that the entered text is just off-by-one. Could use improvement.
- I don't like it being server side. It seems so unnecessary. But hey, it's your page!