This is a fantastic post which manages to marry my interests in Borges and sleep/insomnia very effectively!
Borges’ “The Library of Babel” is usually cited as a conceptual precursor to the internet, for instance in Rick Wilber’s “Future Media” https://seamussweeney.wordpress.com/2015/11/21/review-of-future-media-ed-rick-wilber-sf-site-2012/ – but The Book of Sand is even better in that it evokes the compulsive, harried sense that the Internet often evokes (at least in me, and I suspect many others)