🥳 New Kitten web site release!
The Kitten web site now has full-text search.
https://kitten.small-web.org
Written, of course, in Kitten.
The index is created lazily on the server in ~0.3 seconds (on my machine) the first time a route is requested after a server restart.
During dev, it’s fast enough that you don’t feel it during hot reloads :)
For the geeks among you, the search features Porter stemming (via the stemmer package), prefix matching on the last query term (which you can see in action in the screenshot), Damerau–Levenshtein distance (so we’re forgiving of little typos), as well as a few code-related optimisations like decomposing camelCase compounds (so WebSocket also matches “web” and ”socket”), etc.
(Oh yeah, and it uses the nifty new baseline URL text fragments feature¹ to have the browser take you straight to the search term in the body of the text.)
Enjoy!
:kitten: 💕
¹ https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments
#SmallWeb #SmallTech #Kitten #web #dev #NodeJS #JavaScript #HTML #CSS #peerToPeerWeb