Hey, just wanted to say "thank you" for such an aw...
# community-help
c
Hey, just wanted to say "thank you" for such an awesome project and show off something I've been working on in case anyone else ends up going down the same path. I was attempting to incorporate InstantSearch.js into a SvelteKit project and, well, it was not a great match (esp. for an eCommerce site, where SSR is critical for SEO). I was also seeing JS bundle size of 700Kb for the search route which was significantly heavier than I wanted. That search UI doesn't come cheap ... So I ended up trying to code the equivalent in Svelte and have it talk directly with Typesense, no adapter required, and hey - it worked! I got the whole reactive UI similar to the examples (where the widget states interact with each other) and it's all fully SSR compatible with friendly URLs too. The JS bundle size for the search route is now just 9Kb so it can go on the home page. Right now it's quite specific to the app but if I have time after launch I might try and turn it into something more generic similar to InstantSearch.js, as headless components that you bring-your-own rendering to.
👍 4
🔥 3
j
This is pretty awesome @CaptainCodeman! Thank you for sharing! It would definitely be awesome to have an alternative to Instantsearch.js. The feedback I've heard so far is that Instantsearch works great if you just want something that works out of the box for common use cases, but for anything non-standard (SSR included) or custom widgets it's quite the learning curve / effort to get it to do what you want it to do...
👍 1
1
c
Yeah, it was quick to get something working with InstantSearch but then trying to customize it was taking an inordinate amount of effort, and the end results never really felt great - it's probably better if you're fully in React or Vue world, but even then it seemed very complex. SvelteKit made it really easy to have both SSR and client-side reactivity. Of course none of it would be possible without Typesense behind it!
🙌 1