Show HN: Node.js video tutorials where you can edit and run the code
219 points
22 hours ago
| 37 comments
| HN
Hey HN,

I'm Sindre, CTO of Scrimba (YC S20). We originally launched Scrimba to make video learning more interactive for aspiring frontend developers. So instead of passively watching videos, you can jump in an experiment with the code directly inside the video player. Since launch, almost two million people have used Scrimba to grow their skills.

However, one limitation is that we've only supported frontend code, as our interactive videos run in the browser, whereas most of our learners want to go fullstack—building APIs, handling auth, working with databases, and so forth.

To fix this, we spent the last 6 months integrating StackBlitz WebContainers into Scrimba. This enables a full Node.js environment—including a terminal, shell, npm access, and a virtual file system—directly inside our video player. Everything runs in the browser.

Here is a 2-minute recorded demo: https://scrimba.com/s08dpq3nom

If you want to see more, feel free to enroll into any of the seven fullstack courses we've launched so far, on subject like Node, Next, Express, SQL, Vite, and more. We've opened them up for Hacker News today so that you don't even need to create an account to watch the content:

https://scrimba.com/fullstack

Other notable highlights about our "IDE videos":

- Based on events (code edits, cursor moves, etc) instead of pixels

- Roughly 100x smaller than traditional videos

- Recording is simple: just talk while you code

- Can be embedded in blogs, docs, or courses, like MDN does here: https://developer.mozilla.org/en-US/curriculum/core/css-fund...

- Entirely built in Imba, a language I created myself: https://news.ycombinator.com/item?id=28207662

We think this format could be useful for open-source maintainers and API-focused teams looking to create interactive docs or walkthroughs. Our videos are already embedded by MDN, LangChain, and Coursera.

If you maintain a library or SDK and want an interactive video about it, let us know—happy to record one for free that you can use however you like.

Would love to answer any questions or hear people's feedback!

remisharrock
41 minutes ago
[-]
We also created a while back codecast for my courses in c programming. I also have Linux running entirely in the browser. And the c programming language "running" fully in the browser. Everything in sync with your oral explanations.

The courses :

https://www.coursera.org/specializations/c-programming-linux

https://www.edx.org/certificates/professional-certificate/da...

I wrote a few papers to explain:

CODECAST: An Innovative Technology to Facilitate Teaching and Learning Computer Programming in a C Language Online Course

https://scholar.google.com/citations?view_op=view_citation&h...

WebLinux: a scalable in-browser and client-side Linux and IDE

https://scholar.google.com/citations?view_op=view_citation&h...

I also have a taskgrader to grade student's codes :

Teaching C Programming Interactively at Scale Using Taskgrader: an Open-source Autograder Tool

https://scholar.google.com/citations?view_op=view_citation&h...

https://codecast.wp.imt.fr/

reply
sam98brown
19 minutes ago
[-]
Scrimba is fantastic and has helped me a lot
reply
seansh
20 hours ago
[-]
This looks fantastic! I’ve been seeing a growing number of tools trying to bring more interactivity to programming tutorials and for good reason. Screencasts are too passive, and it’s easy to get lost halfway through. Books and blogs don’t really show how code evolves over time either.

I’m working on a solution too, called CodeMic [1] where instead of bringing the environment to the web, it brings video and workspace sync into the IDE so viewers can follow along directly inside their own editor.

You’ve done an impressive job integrating everything, including the Console for example, that’s especially tricky to pull off in an extension for VSCode, Emacs, or Vim.

[1] https://CodeMic.io

reply
jasonjmcghee
10 hours ago
[-]
Interactivity and liveness in programming deserves to be discussed far more often than it is on front-page of hacker news, but excited there are multiple ongoing threads!

I'm a very strong supporter of interactive blogposts as well. Obviously https://ciechanow.ski/ is leader here - being able to mess with something to build intuition is huge.

reply
seansh
3 hours ago
[-]
Agreed. ciechanow.ski has been a huge inspiration, as well as 3blue1brown, Bret Victor, and Chris Granger (remember Light Table?). But none of them provide a way to walk through thousands of lines of real code and show how it is built and evolves over time. That is the key problem Scrimba and CodeMic are trying to solve.

The two people I have seen who really master this are Robert Nystrom (Crafting Interpreters) and Casey Muratori (Handmade Hero). But even they are limited by the mediums they use: books and videos, which are not ideal for this kind of guided exploration.

reply
oulipo
4 hours ago
[-]
you should check what Bret Victor https://worrydream.com/ is doing at Dynamicland https://dynamicland.org/2024/Intro/
reply
jasonjmcghee
4 hours ago
[-]
I'm a huge fan of Bret Victor and very familiar with his incredible work.

The links are great (people should check them out!)

Anyone who hasn't watched his famous talk from 2012 should watch it "Inventing on Principle" https://youtube.com/watch?v=PUv66718DII

reply
mrborgen
20 hours ago
[-]
CodeMic looks very cool, well done! A lot of people have asked us over the years whether we they can implement Scrimba into their preferred IDE, so it makes total sense to take that approach as well.
reply
kamikazeturtles
21 hours ago
[-]
Scrimba is really cool. When I first got into programming, a few years ago, I tried to build something similar using rrweb but with server side code execution in docker containers so that it could support all the programming languages like replit.

When I first heard about Scrimba, I abandoned my project because I thought you guys would already go down that path. Why didn't you guys go down that route?

reply
remisharrock
28 minutes ago
[-]
Actually I have a new version of codecast doing that ! (See my post a minutes back in that thread)
reply
mrborgen
20 hours ago
[-]
Good question! Expanding from client-side JS to Node.js is our first step in that direction. We considered server-side execution for all languages but chose WebContainers instead, as it’s a better fit for us when teaching fullstack web dev, and easier to maintain.

That said, our new IDE is built to easily support server-side execution down the line.

reply
lud_lite
8 hours ago
[-]
Scrimba taught me React back in 2021. I recently checked if there was a Go course there, but sadly not. However with this announcement hopefully soon.

Why I like Scrimba? The lesson style that forces you to use a blank Page on each exercise means you develop memory for the language. Even more of a plus post LLMs IMO.

reply
porsager
21 hours ago
[-]
Imba is probably one of the best kept web development secrets! Sindre has done a remarkable job of making an insanely terse while powerfull language for building web applications. Not that it's limited to web applications only, the syntax translates perfectly for any other area as well.

The fact that a platform like Scrimba was built using this language and probably only a handfull developers should make you want to learn from someone like that even more!

It's also the only learning platform I've ever recommended where I see people staying and learning more.

reply
flanbiscuit
19 hours ago
[-]
Something seems to be broken in the Imba website for me in both FF and Chrome for MacOS.

When I go to the main website: https://imba.io/

Then click on the "Demo" button

I get taken to the "Playground": https://imba.io/try/examples/apps/playground/app.imba

There is no code on the page but the preview seems to work. Same thing with all of the other examples. They work in the Preview panel, but no code loads at all.

Looking in the dev console I see a few errors:

   GET https://imba.io/monaco/min/vs/loader.js HTTP/1.1 404 Not Found

   Uncaught ReferenceError: require is not defined
  
   current file did set undefined
Some images and a preflight.css is also not found
reply
barrenko
19 hours ago
[-]
Not sure of how much help is it to OP, but I'd also like to commend Imba's front page paint demo, it's just so neat.
reply
evnp
18 hours ago
[-]
It's beautiful, but note to OP it doesn't work great on Android Chrome for me - can only draw very very short lines.
reply
pier25
20 hours ago
[-]
I'm hoping Imba will get more attention with the upcoming v2 release. It has tons of cool ideas and the "no reactivity" state paradigm is so much easier to reason about.

Also its css notation is what Tailwind should have been.

Btw you're the Postgres.js author, right?

reply
porsager
20 hours ago
[-]
It's got all the right decision for the scope it's covering!

Yeah, I'm the author of Postgres.js, although it hasn't gotten the tlc it deserved lately cause I've been too busy with another soon to be public project.

reply
gizzlon
18 hours ago
[-]
There's a free Scribe course on Imba: https://scrimba.com/learn-imba-c01h

Haven't gotten around to it yet, hope it's still relevant :P

reply
ilrwbwrkhv
17 hours ago
[-]
Yeah, Imba is one of the greatest things that has come out of the JavaScript ecosystem.

Unfortunately, most JavaScript developers are very sheep-like and can only groupthink.

They will only use what they're told by influencers or they see others using. So that's why they will go to Next.js and React and all of these absolutely horribly designed frameworks.

reply
ushakov
18 hours ago
[-]
fun fact I learned about Imba is that it's name stands for "imbalance" (like in computer games!)
reply
tomw1808
16 hours ago
[-]
That is AWESOME! I am wondering, are you creating all the content yourself?

I am doing plenty of courses across different platforms, from udemy to teachable selfhosting etc. They all lack the interactivity. I am currently hosting the code samples myself and basically redirect students there, where they can interact.

But scrimba is another league!

If you open this up similar to how udemy just hosts videos and does revenue share, count me in. With the webcontainers, the sky is the limit and beyond.

reply
mrborgen
15 hours ago
[-]
We currently create the courses ourselves, but would love to see if there’s an opportunity for a collab here. Please send me an email at per@scrimba.com :)
reply
nozzlegear
17 hours ago
[-]
I'm trying to find more information about creating videos/courses with Scrimba, but most of the info on your website is geared toward consuming content. I see that it's possible to create a new course, but is it possible to create one that's private/limited access? My usecase is recording a course with a tool like this and selling it as the video part of premium course materials for my clients.
reply
mrborgen
5 hours ago
[-]
Technically, there are ways to do that, though it's not a core use-case for us, which is why we're not pushing it.

An alternative way is to embed the scrims into your own platform, and have the scrims be unlisted on Scrimba. Would that do?

reply
hairama
20 hours ago
[-]
At the end of 2023 Sony & Steam informed me that I spent hundreds of hours playing games.

“Hundreds of hours?!? With that much time I could learn to play the piano or speak Spanish! Hell, I could learn to code!”

I stumbled across Scrimba on a Reddit thread and signed up for the paid version after a few lessons: it was unlike anything I had tried in the past.

Now I’m able to build basic react apps but I have a much better understanding of what’s going on “under the hood”.

Have you thought about using it to introduce new hires to a codebase?

reply
mrborgen
20 hours ago
[-]
Very glad to hear that! Yes, we’re working on a desktop app (currently in alpha) that lets you record Scrimba screencasts of local codebases. It’ll be perfect for onboarding, and since it runs on your own machine, it can support any language.
reply
sylens
16 hours ago
[-]
Would love to see a blog post about your journey if you wrote one (or are planning to). Other resources used, key lessons along the way, etc. Scrimba looks great but surely there has to be a point where you take off the training wheels, right?
reply
rglover
17 hours ago
[-]
This is wild. I'd love to use this to do a demo app for my JS framework, Joystick [1]. Would a collab be possible (happy to contribute the end result to the Scrimba library)?

[1] https://cheatcode.co/joystick

reply
mrborgen
14 hours ago
[-]
Yes, we'd be happy to collaborate on creating something on Joystick. It looks like an awesome framework!
reply
rglover
12 hours ago
[-]
Awesome, thank you! What's a good way to get in touch?
reply
mrborgen
5 hours ago
[-]
Just send me an email at per@scrimba.com :)
reply
gavinray
16 hours ago
[-]
Sindre, so great to see you posting here and doing well. We met in the early Imba days.

Over the years, I've referred many folks asking for what I believed to be the best resources for self-teaching web development to Scrimba.

All the best to you & the team, I'm sure the future is bright.

reply
badmonster
5 hours ago
[-]
Quick question: how are you handling persistent state or database access across sessions in the browser-based Node.js environment?
reply
stevederico
4 hours ago
[-]
Love scrimba. One of my all-time favorite ways to learn programming.

Will check out the new course. Keep up the great work!

reply
setheron
11 hours ago
[-]
I logged in but I am not sure how to add video to a "Scrim". I'd love to create some Nix (https://nixos.org/) content. Is this possible?
reply
mrborgen
2 hours ago
[-]
Here is a quick Loom on how to create a scrim: https://www.loom.com/share/1f034653a1ef4e99953cf3b9a5c367ff
reply
oulipo
4 hours ago
[-]
that would be really nice!
reply
gitroom
5 hours ago
[-]
the whole thing makes me jealous honestly - coding used to feel so much more closed off when i first started out. you think having super interactive stuff like this early on actually keeps folks coming back to learn more?
reply
fullstackchris
1 hour ago
[-]
Very impressive and cool stuff! This shares similar themes to what I'm building over at https://studio.codevideo.io - I also chose to go with an event sourcing solution. I experimented with real time mouse recording but though it was overall too complex for more advanced examples, so for now I've setted with a virtual mouse that you can move from place to place to simulate how it might actually move - I'm curious, how did you solve realtime edits and highlighting directly in the editor? Are you using Monaco editor with realtime highlighting updates somehow? It's something I still haven't implemented in CodeVideo...
reply
remisharrock
26 minutes ago
[-]
Also you could look at how we did it with codecast, it's open source on GitHub search for codecast France ioi With mouse relative position, highlights selections of code etc
reply
seveibar
20 hours ago
[-]
Would love to use this for interactive tscircuit tutorials! Is it easy to create a course? The output looks great!

Is the web preview saved as a video or rendered dynamically? In the case of tscircuit, we run an autorouter in the background so it can be like a slow-loading website with a big project- I imagine doing courses on building games would have a similar problem if there isn’t video capture for the preview.

reply
mrborgen
19 hours ago
[-]
Would love to see tscircuit tutorials on Scrimba! It’s easy to record — just talk over the code. I demo it in this scrim from around 1:40. https://scrimba.com/s0kmcarts1

The preview is rendered live, not video. So with heavy projects (e.g. lots of JS animations), the recording can get large due to the detailed DOM stream.

reply
atum47
10 hours ago
[-]
There was this beautiful website that did something similar: it would type in the code and showing the result on the side. It was mostly creative JS code.
reply
oulipo
4 hours ago
[-]
Are you thinking of Processing / P5js ?
reply
ahmadrosid
21 hours ago
[-]
Amazing, this is much more better than learning with AI.
reply
abaymado
10 hours ago
[-]
This is phenomenon! I am an iOS Engineer, not sure if you ever want to bring this to mobile but I would be happy to contribute.
reply
zersiax
20 hours ago
[-]
I love this idea, it would actually solve a lot of accessibility issues within coding courses for the fully blind. Unfortunately right now the scrimba interface appears to need some help where that is concerned. WOuld love to discuss more if you're interested? @somebee
reply
barrenko
19 hours ago
[-]
This looks to be the perfect usecase to throw an agent into the loop (sorry for saying so).
reply
ach9l
18 hours ago
[-]
yep, this is not for humans, agents with dia-1.6B or anything similar, they will outclass humans at this, really quick. i'd like to work on a poc if you are interested, i train and deploy models for a living.
reply
nozzlegear
17 hours ago
[-]
What do you mean it's not for humans, and that agents will outclass humans at this? Humans like to learn new things, and this seems like a novel format for learning. I don't think an AI is ever going to "outclass" our curiosity or desire to learn.
reply
ach9l
17 hours ago
[-]
oh, i meant humans as teachers. if i had to choose between a human teaching me quantum physics equations or a collection of richard feynman’s lessons turned into agentic lessons, i’d pick the agent. i mean, we can compile the whole collection of lessons in agentic form way faster than any human could deliver the same number of lessons.

the product is exclusively for humans. the teacher, i'm not so sure.

reply
nozzlegear
13 hours ago
[-]
That makes a lot of sense, thanks for explaining.
reply
serial_dev
16 hours ago
[-]
Will this support other languages, too? Would love to have Rust, Dart, Python, or basically any other language having this, even if it doesn’t have all the features
reply
mrborgen
5 hours ago
[-]
Once we have our desktop app ready (very soon), it'll be possible to record any language. However, the viewer then won't get the same ability to run the code, only to edit it.

We do have rudimentary Python support with the interactivity though. Planning out a course on it these days.

reply
benslv
21 hours ago
[-]
I taught myself React using the Scrim a platform, so I feel very supportive and thankful to you for building it. Being able to directly interact with the code being shown onscreen was invaluable to me for understanding it.
reply
hliyan
21 hours ago
[-]
Minor issue, Chrome on Windows: cursor position seems to have an offset error -- can never quite get to the end of a line. As you type, text doesn't quite appear where the cursor is.
reply
somebee
21 hours ago
[-]
Will try to push a fix in the next few hours. We are instantiating the monaco editor with a custom font (Source Code Pro) before we're sure the font has loaded, which throws of the char box measurements in monaco. We did have a fix for this in the old (non-backend IDE), so I'll port that over ASAP. Thanks for notifying us :)
reply
kirykl
19 hours ago
[-]
Scrimba is such a great learning tool, I’ve tried the front end material, excited to check out the new stuff
reply
giancarlostoro
17 hours ago
[-]
CodeSchool used to be interactive until PluralSight bought them out, then pulled in all the videos, but kept none of the interactivity. Shame.

There's also the Processing tutorial series which is insanely interactive:

https://hello.processing.org/

Sharing these in the hopes they server as inspiration for anyone who works on educational programming content.

reply
oulipo
4 hours ago
[-]
Really cool! You might have issues with some encoding somewhere though... https://imgur.com/a/WvFICiD
reply
whiddershins
5 hours ago
[-]
So can I just sign up and get started using it on my blog, or how does this work?
reply
mrborgen
2 hours ago
[-]
Here is a Loom on how to record a scrim: https://www.loom.com/share/1f034653a1ef4e99953cf3b9a5c367ff
reply
mrborgen
4 hours ago
[-]
Yes, you can! I'll record a video on how to do that with the new IDE, as it's indeed a bit unclear.
reply
re-lre-l
3 hours ago
[-]
Wait a minute. It's going to be possible to create my own curses with some kind of monetization attached? And not only frontend in future? Would be amazing.
reply
huksley
21 hours ago
[-]
Supercool! Can you use any other webapp, not a code IDE?
reply
mrborgen
21 hours ago
[-]
Thanks! Not sure I fully understand — do you mean using our DOM recorder on other web apps instead of our IDE? In theory, yes, we’ve used it on third-party sites in previous iterations of Scrimba.

But there are some limitations, as certain HTML elements (like native dropdowns, date pickers, canvas etc) are rendered outside the DOM and thus can’t be recorded.

reply
MahendraDani
21 hours ago
[-]
This is epic.
reply
thegreatpeter
19 hours ago
[-]
Wow. What a fascinating idea. Great work!
reply
codybontecou
20 hours ago
[-]
Incredible work!
reply
k0ns0l
17 hours ago
[-]
+1

Great works OP!

reply
nailer
20 hours ago
[-]
I don’t understand. If the audience member makes a change, and then the speakers events are played back on top of the change, the code won’t make sense.
reply
mrborgen
19 hours ago
[-]
If you make a change, then the screencast pauses and you create a branch of the codebase, so that you can experiment on your own.

Once you hit "play" again, your changes are reverted and you continue watching the teacher's code.

So the teacher's voice is never on top of your code, as that wouldn't make sense.

reply
TIPSIO
19 hours ago
[-]
Did you try it?
reply
revskill
21 hours ago
[-]
Awesome. But only JS is supported ?
reply
somebee
21 hours ago
[-]
Right now, only js is supported out of the box, but I guess any language that can run via web assembly or other techniques could work. WebContainers has experimental python support, but it won't work with a lot of the dependencies you would usually utilize in python etc.
reply
ach9l
17 hours ago
[-]
we should be able to use this as a vscode extension to solve this issue. is there an sdk to integrate this into electron apps?
reply
somebee
16 hours ago
[-]
We are finalizing an electron app as we speak. That will allow recording anything that runs on your own system
reply
steffoz
20 hours ago
[-]
Incredible!
reply