Based Cooking Demo

A demo site to showcase astro and svelte frontend development. The UI is built with tailwindcss and Flowbite Svelte.

Improvement over original site

Launch Mode (Convert Static Site to SPA)

Support extra features:

Persistent Astro Islands

Using astro’s persisten islands to keep logic running across page navigation

Async Loading Svelte Components

For better user experience, console loading (took a few seconds) is done asynchronous when user click the launch button.

SurrealDB in Browser

I’m running a surrealdb server in browser, with all the recipes inserted, the plan is to use it to support more complex features, such as multiple tags filtering, not finished yet.

Also did an experiment with using surrealdb’s fulltext search, which works not as good as fuzzysort for this small dataset, so not keep this way.