10 comments

[ 3.1 ms ] story [ 27.6 ms ] thread
(comment deleted)
wow... the links on this page are blurry until you select them? (The note info pain in the middle has 2 links and are blurry on my screen.)
Wow. This should be fixed. Which browser/OS are you using? Are you in dark mode?
Red on black is hard to read, especially whatever vibrant fuchsia color this is.
The page appears in dark mode (I use light mode)

OS: Windows 11 22H2 / Browser: Opera, FireFox, Edge

Screen: 1366x720 (32in TV)

If I move it to 1440x900 27in monitor, it doesn't do it.

Yet another site that requires JS enabled to view.
Seems to omit the ability of a service worker to create and cache files. Not really valid as a database, which this article understandably focuses on. But it is another way to maintain files between sessions and offers the ability to access them by url as if they were on the same server. I have used it to load a zip file in the service worker and then serve the contents as if it were a file system on the server.
How do you do that?

I hacked this kv together with the browser's cache API: https://github.com/evbogue/bogbookv4/blob/master/lib/cachekv... which I secretly feel is not the best idea in the world but it works.

Sorry I don't understand what that is doing. I see no reference in your code to a service worker. See https://developer.mozilla.org/en-US/docs/Web/API/ServiceWork...

Service worker is only present for a web page.

For cachekv I was trying not to use IndexedDB because the API sucks and localStorage has space limitations that I wanted to get around so I started using the `caches` browser API to store arbitrary data.

How does your example work? I'm asking because I'd like to do that instead, maybe.