YouTubevideo· Sep 15, 2025· 13:04· 6,100 views on YouTube
React at a moment you like. The best moments light up here.
So, a new JavaScript framework it just dropped. Now that I think about it, that's probably not as much of a meme as it was a couple of years ago. Now, it's more of like a new LLM just dropped. But regardless, there's this JavaScript framework that I just saw on Twitter that I think shows a lot of promise. I really am starting to like. What would happen if you took all the best parts out of all the JavaScript frameworks that there are out there? Well, you would get ripplejs.
So you might not have heard of ripplejs but you've probably heard of the author of ripplejs or probably what the author has also created Dominic who created ripplejs or who is creating ripplejs also wrote lexicaljs and infernojs. Lexle used by Facebook an extensive text editor framework and infernojs was one of those frameworks that kind of came out around the same time as spelt where it was just blazing fast.
I mean, even the creator of spelt said, "Hey, while spelt's fast, it's competitive with Inferno, which is probably the fastest UI framework in the world for now because Dominic Ganoway is a wizard." So long story short, Dominic has a fantastic resume from a former ReactJS core team engineer, a core maintainer of spelt.js at Versel, but now is launching and just launched as of August 28th an open- sourced Ripple.
And yeah, this is what the example looks like. And just like the description says, it looks like it takes the best parts of React, Solid, and Spelt and combines them into one package. So, why don't we take a look at a demo application? I'll show you why I actually think this is pretty neat. Now, if you've listened to me talk about JavaScript frameworks at all, you probably know that I really like Spelt.
I like the templating syntax that it has and I just like the magic that it brings when you're writing JavaScript with the reactivity that it has as well as just making it seem like you're writing JavaScript, just plain JavaScript. And yeah, I think a lot of that magic flows into ripplejs. I'm not going to read this whole section, but yeah, Dominic talks about how this is his love letter for front-end web. all the best parts of React Solid and Spelt and just combined into one package. Each module does have aripple extension.
So, this is different than you know ajsx ortsx. This is more akin to spelt even though it does feel more like JSX. I also do like how he talks about in his experience this superset this ripple extension is going
to lead to better DX not only for humans but also for LLMs as well which makes sense because really you then know that this LLM is not going to be confused and start writing JSX because it knows it's a ripple extension and yeah all of this is just an early alpha version that I'm showing you but again I think it shows a lot of promise so I have this template installed up and running npm rundev all that good stuff in my terminal and then I have the VS Code extension installed.
Then here's what that template looks like. So we have that ripple for J VS Code extension installed. And then in our explorer, why don't I go ahead and hide myself? We have the source which has assets as well as the app.ripple.
We'll take a look mostly at this. But then the rest is pretty self-explanatory. An index.html with a source index.ts ts module with a root div which I expect this ripple.ts or app.ripple to be injected into and then a simple package.json JSON with only prettier TypeScript VIT and VIT plug-in ripple installed. And then lastly, the readme is pretty self-explanatory. There are some llinters and formatting checks installed mostly because of prettier and then that ripplejs extension.
And anything that works great with vit out of the box is fantastic in my opinion.
You can see that this feels very spelt, but it's also written in what feels like JSX. So you have a a let inside of a div. You don't have, you know, these little brackets that tell this that this is JS. No, it's just JS that you have inside of a div. I love this. It's just having that magic and simplicity all wrapped up into one. So again, we have those style tags that we have down here.
We have a div with a container, but this is all one component. And if we go back into the GitHub repository or on the website itself. Yeah, on the website itself you also see that there are two components in one file. So there is the ability to have multiple components per one file which is tough to do right now within spelt. Another interesting thing within ripplejs is how ripple is extending specific JavaScript classes.
So let's say um a set within JavaScript and ripple has this for other JavaScript classes as well. But there is a ripple set instead of just a set within JavaScript. And this is so that you still have an interactivity within interacting with that set. Um so let's say this set has two. Well on button click we can delete two from that set or add two and we have that interactivity with this has method if that makes sense because this is what we're reading.
Does this set have two? If it does, then we're able to show that this is that interactive that reactive variable. And so it works with a set just like you might expect. So it it contains two by default because look, it has two here. If I was to remove this um save this, go back and it does not have two. But if we were to add it, it's true. Deleting two.
Okay, great. But that also works the same for maps as well as arrays. So these are Ripple's way of extending the JavaScript class. So you still have that interactivity without having to uh you know just inject some of that magic into your existing JavaScript. You just use ripple arrays instead of a standard array or again same thing with a set. And yes, ripple also has its own effect.
So that way you can watch for any state changes within your app. So in this case, if this count is clicked or every time it does happen, then we're going to log counts. Looking at that, it's automatically set to zero increment 1 2 3 so on. And that does happen based upon the changes that happen upon updates. So this is not technically just watching for anything that happens with this count uh effect that that count variable.
This happens anytime the component rerenders if I'm understanding outside of just the extension of specific JavaScript classes. The templating of like if statements or for statements is fairly speltish but also fairly JavaScript JSXish as well. So
this is technically you know within a component but then you have the ability to use for loops to say okay instead of doing a map for example you can say for const item of items and this is in that array we're going to show the item but then we can iterate on that via items.push. So what does this look like? Add item.
And here's what that's doing. is just adding uh push into this ripple array to add the item based off of the length. And again, this is all reactive because we're not having to watch for that and keep track of it with any kind of state changes, that state change automatically happens within this extension of the ripple array. One of the benefits of being able to have that magic that extends JavaScript and having, you know, not only a ripple extension, but then also these ripple arrays.
There's also some interesting elements like decorators or even event props that you can listen for things like on click on pointer move etc while still being able to use that reactivity within your variables. All right, after about 20 minutes of going back and forth between the GitHub repo and my code editor, and then with a little help from Claude Code, I've got this to-do app working with Ripple just to see, okay, what does this actually look like in practice?
And again, this isn't the best way to do it, but this is the way that I like to do it to show, okay, here's how I might do most of the functionality or the UI things that I would use something like ripple form. And I quite like it. So, this is what it looks like in uh VS Code. We have our app. We have an array. This is the to-dos. It's nice to be able to extend this from a JavaScript class.
And then it's nice that all the effect and I don't really have Yeah, I just have one. This is just checking for how many to-dos there are. So when I uh you know go into this to-do and I say um you know clean the house uh check emails I have this that constantly is updated because the effect runs on every rerender.
So um if I was to look at the console I don't think I have anything in the console but if I was to say um another one what we're doing is just adding one and then checking okay how many are there that are left. So there's two left. Again, rerendering in that count. Um, but adding another one says that there's three left now. So what's happening uh within VS Code? If I look at this effect, it's just adding a new count variable. But this active count effectively becomes state in our ripplejs application.
Of course, this is not persisted. And I don't think that this exists outside of this particular component. So there there is no effective store like there is within spelt at least just yet. But it is nice to know that I just have this active count that exists and I can use it anywhere in my application. Same thing with ripple arrays like I can use those anywhere in my application. They become reactive. So when I'm saying you know to-dos.push it becomes reactive.
The text becomes reactive. The completed state becomes reactive. Same thing with the uh ids of those ripple arrays as well. So yeah. Um and then the actual templating itself. I think this is the part that I really like because this all feels very JavaScripty. It feels like I'm writing a React application, but I'm not intermingling this within JSX. I love the templing because this feels like HTML, but I still have a for loop.
I feel like I'm writing JavaScript while still writing the HTML that I'm used to writing. If that makes any sense whatsoever because I get to call things like onchange or this dollar sign checked to be able to say, hey, this is the reactive state for this particular to-do. And then same thing with if statements as well. And it's nice to be able to do all this in Tailwind. I could just put this import tail one CSS and knowing that this is scoped to this component.
So any other component I might have for ripplejs on my application or on my site doesn't have these particular styles. This probably isn't the best place to do it. But for this application, this is the way I'm doing it. And yeah, all that with only calling two imports, if you will.
And this is mostly uh the way that I think Ripple is designed to be built. and be created with is using as little as possible of the actual uh JavaScript library but using as much JavaScript as necessary. And again, that's all doable because there is a ripple extension. So, what about you? Are you a Ripple fan? Uh do you see what could be possible with this?
Uh, if you're not already, be sure to like, subscribe, and let me know what other content you might like to see. Maybe a full Ripple course within Laravel or PHP might be interesting.
But, uh, if not, go ahead and give a star to the Ripple library, the Ripple repo, because I think it could be something really awesome. I'm excited to see where it goes. There isn't too much that it's shows for on the road map other than SSR because right now it's just SPA only and then types as well.
But it'd be interesting to see how this plays into bigger frameworks like you know ripple within convex or ripple within inertiajs and Laravel. So yeah, give it a go.