Jason Miller 🦊⚛️

@developit
3.9K Followers
636 Following
1.3K Posts

Figured I'd open source the little preact+signals mastodon client I wrote a few years ago, in case the code is useful to folks.

It's called Mastodawn - a streaming, offline-first installable Mastodon web app that weighs under 100kb.

🌎 https://mastodawn.com

👀 https://github.com/developit/mastodawn

@davatron5000 I use a Cajon as a side table.
@jakehamilton is it good
@chaoyizhu just for staring at
@paul I've been described that way
v annoyed that I wasn't able to find a Mio one though. I'm going to have to make my own.
I have acquired an additional two (2) Strike Witches desk mats. Now once my current one is completely ruined from me being a slob, I can switch to a new one. I still think I'll try to clean them, but they're all slightly different so I get some variety.
@paul are there 165 of them in the package?? also it doesn't look serrated at all

This is how I build apps now:

Standalone model(s) built with #Preact #Signals so they're implicitly reactive.

Components simply reference the model instance from context and access its (reactive) properties.

Testing the model without components is fast and easy. Testing the components a with mocked model is fast and easy.

@natevw a docs section covering how props get applied to the DOM would be great though. Both the generalized case ("the 'property in node' check") and the special cases ("on" prefix, style objects, etc). It could even just give the pseudocode for each.