Sparkle, modding framework for Snap! (Part 2)

Continuing the discussion from Sparkle, modding framework for Snap! (Part 1) - #253 by redgeographysnap.

Previous discussions:

The new Crackle has poor API compatibility with Sparkle and is generally developed in a less tight-ship manner, which naturally leads to a lot of issues; for instance, despite having existed for over a month now, it has no releases and <50 commits.

there’s not even that many mods for Sparkle last time I checked, and yes I haven’t been updating Crackle for a bit, and I probably should get on that.

Well, Sparkle has way more addons than Crackle, and if you consider Jameson addons to be Sparkle addons, then that number is even higher.

okay true, but the Sparkle codebase was very messy and you cant deny it. I know Morphic did it, but Jens atleast had it organized, and besides that doesn’t mean we have ot follow the same format.

I will admit that the codebase is somewhat messy, but the problem with your solution is that it’s throwing the baby out with the bathwater by redoing the API and UI from scratch. Also, your solution depends on a build system even though it’s just a simple browser extension that patches a single page; Sparkle had a broader scope and managed to make do with less tooling.

Come on, what’s the deal with running node build.js every once and a while?

Also, wdym by “Sparkle had a broader scope”?? Do you mean about how Sparkle supports Snap! mods???

You shouldn’t need to install Node.js just to build a browser extension.

Yes. Unlike Crackle, Sparkle supports fork integration and a whole bucketload of features like Tauri support that Crackle doesn’t seem to be doing much with.

What in the world is Tauri?? Is it some obscure web browser? Anyways, we’re still on Snap! because… well… do I even need to explain it for you? I could easily make it work on Snavanced! or Split!. Yes, even in Jameson

Tauri’s like Electron but less bloated.

Just for giggles, you should go ahead and implement Jameson support. I want to see this.

It actually already has support for snavanced, although since were using the snap 12 blocks symbol, it doesn’t render:

Anyways, just putting jameson in the manifest file does have it working, although I moved the button in dev mode, as it overlapped the sparkle button

image

Wouldn’t it make more sense to patch the existing cube icon and just add menu items for Crackle?

I wasn’t actually going to replace Jameson Addons with crackle; although since the Crackle button always goes on top of the Sparkle button, that could count as Crackle “”“”“replacing”“”“” Sparkle

Uh, but using two mod loaders isn’t the right thing to do? As you said, it was for giggles

I don’t mean a replacement necessarily, just an addition to the existing menu.

Hmm. Perhaps we could work together to create a Crackle compatibility mode for Jameson Addons? After some consideration, it seems like it would be a good idea to have support for Crackle addons in Jameson, since that way you’ll get access to Jameson’s userbase and Jameson will get access to your addons.

I guess that could work, although we should probably keep working on Crackle before we do any cross-addon platform stuff

In the meantime, I suggest that you look into adding a feature in Crackle to make it add menu items to the existing Addons menu but with (Crackle) at the end of each item.

Though I have my fair share of complaints regarding the architecture of Crackle, it would be silly not to try and provide for its use in Jameson. Make addons, not war.

really? I mean, we should probably do that, it’s just that I want to keep working on Standalone crackle to make it a good alternative to sparkle. Thanks for the idea, though.

I don’t mean integrating Crackle into Jameson by default if that’s what you were thinking, it’s just that I’d like to make sure that once installed, it works well in Jameson.