In this edition: Svelte, Svelte Native, ClojureScript and PWAs.
Six new releases in the past months. Incredible! I thought that summer vacations in the Northern hemisphere would slow things down, but it's actually the opposite. Maybe people don't take vacations or maybe that's what they actually do and contribute to Svelte on their vacations.
Slowly moving forward. As I am writing this there are 36 open and 96 closed issues in the 1.0 milestone.
News and Interesting Links#
Lightweight i18n library
Because Svelte's store contract is so simple it's easy to create a custom store implementation. Restate is an immutable store for Svelte with full Typescript support and Redux Devtools integration. It is highly inspired by re-frame (ClojureScript) subscriptions.
Felte Forms Library
Felte is an ambitious forms library for Svelte and Solid. I like forms. I work with them a lot and also wrote a book[link] on the subject. I haven't had the time to play with Felte yet, but it sure looks interesting!
SvelteKit + Supabase
Supabase is an exciting alternative to Firebase. This template offers everything you need to get off the ground quickly to build apps on top of SvelteKit and Supabase.
One of the biggest pain points working with Firebase what its large bundle size. Well, no more! The new version of Firebase SDK is tree-shakeable and there is even leaner Firestore Lite.
React vs Svelte vs Solid & MicroFrontends
Interesting interview with Ryan Carniato, creator of SolidJS. Give it a listen!
3 lessons from React
Ryan is also a great teacher and is not dogmatic about any frameworks. Here are some of his thoughts on becoming a better Svelte developer by looking at how things are done in other frameworks.
Svelte Custom Elements#
I still don't know what to make with (and off), web components, but I am sure they will become more popular as the web and web development progress. Did you know that you both build web components in Svelte and also use web components built with other tools in Svelte. Confusing right? Fear not! These links will make everything clear.
Using custom elements in Svelte
Learn how to use web components build in Lit, and the gotchas that come with it, in your Svelte apps.
Sample project how to build custom elements, aka web components, in Svelte with TypeScript.
Svelte for Web Components development: Pitfalls and workarounds
Learn some of the pitfalls and how to solve them when developing web components in Svelte.
I have a secret fascination with Lisp. Many years ago I had the chance to work with Clojure and remember that I liked the experience a lot. Then I got more involved in web development and with it came JS and Node.js. So no more Clojure.
I recently dove deep down into ClojureScript ecosystem and its funny package names. While the entry barrier is high I truly believe that teams can be 10X productive in ClojureScript than in other languages. First, it's simple, stable and doesn't change often. Second, ClojureScript is purely functional and in Lisp code is data and data is code. I urge to to research what it means for your code on your own.
A nice guide to Reagent, a ClojureScript wrapper around React. It gives you a way to easily create React components.
Re-frame is a mature framework built on top of Reagent with great documentation. Lots of takeaways and learnings even if you don't plan to build anything with it.
Fulcro is a library for development of single-page full-stack web applications and a spiritual successor to Om.
Awesome list of all things ClojureScript and its creative package names.
I think we can all agree that Tailwind CSS has become the most popular utility CSS framework and all popular things get copied. In the last issue I wrote about YoghurtCSS and UniformCSS, two SASS based utility frameworks. There is also Halfmoon and H-grid.
If you are a fan of Material Design there is Svelte Material UI, which is a collection of Svelte components.
Building native apps in Svelte#
Some people believe native apps will take off for real because the experience is so much better. Some believe it will be PWAs. Only time will tell.
I was curious if there is something like React Native for Svelte and it turns out there are a few frameworks. However, I don't know how mature it is or if anyone has built something with them in production.
Svelte + NativeScript. Looks like an official framework, but not sure if it is.
Project template to build hybrid mobile apps using Svelte and CapacitorJS with live reloading on Android and iOS.
Build performant, native, cross-platform desktop apps with Svelte.
Framework7 + Svelte
Framework7 has bindings for Svelte that lets you build Build full featured iOS, Android & Desktop apps with it.
Building a PWA with Svelte
Some comments and notes on the experience of building a PWA with Svelte and Framework7, plus a starter project.
Other interesting things#
The Future of the Web
Interesting view on the future of the Web.
Websites using Svelte
List of some of the public sites using Svelte.
Collection of responsive patterns
Useful list of patterns and modules for responsive designs.
The Future of Webdev
Personal thoughts on the future of web development. It's not TypeScript and WebAssembly, nor React and GraphQL.
Bad joke of the month#
What do sprinters eat before the race?
Nothing. They fast.
That's all for this month!
If you liked what you read, it would make me really happy if you could share it on Twitter.