I remember using typicode/lowdb in a past life and wondering why it had to have an ad-hoc ORM-like API when good ol' data structures would do just fine?
Nothing against Svelte (actually the opposite), but maybe showcasing a simplified code snippet in the landing page and make it more framework-agnostic might draw more brains
On the other hand, there might be a chance to showcase specific examples of more trending SSR frameworks such as Remix and Next.js. As far as I can tell direct DB access might make more sense on the server-side (LoaderFunction & getServerSideProps respectively)
Thanks Ben. I appreciate the feedback, I will add vanilla samples but also samples for each framework, including SSR.
The DB access works fine on both places, I use it from svelte kit load function without problems. I haven't played with authenticated SSR, I'll make sure to include that in the samples.
IMO there's no way around building real production apps starting from the UI. Design has to begin with data model. It's like building a House not from the foundations but from the facade.
Agreed. Design needs to be driven by the data model, and the data model needs to be driven by business entities. Any top-down approach is nonsensical, exactly as you describe.