The easter holidays I got sick and vibe coded a R...
# two-minute-week
t
The easter holidays I got sick and vibe coded a RISC-V Linux BusyBox Single Board Computer https://tomlarkworthy.github.io/lopebooks/notebooks/@tomlarkworthy_linux-sbc.html in a single HTML file. Its quite different to Fabrice's jslinux, it is a JS emulator of the Risk V instruction set, rather than a WASM emscripten toolchain approach. I wanted to understand the linux boot process. Vibed with my new Claude code plugin for notebooks which is incredibly productive albeit still with a fair few rough edges.
👏 3
🤯 2
f
you are emulating the whole riscv instruction set? -- super cool! which plugin for notebooks are you using? is it what you explain in the second tab? where do you explain what a Lopecode notebook is?
Copy code
Setup guide
1. Install Bun if needed, then:
bun install -g @lopecode/channel
claude mcp add lopecode bunx @lopecode/channel
2. Start Claude Code:
claude --dangerously-load-development-channels server:lopecode
3. Ask Claude for a pairing token, then paste it above
t
Nowhere but it's here https://github.com/tomlarkworthy/lopecode it's a local-first port of observable notebooks.
Probably not all the instructions, it seg faults when I open 'vi', but I was more interested in the boot process than running too much
f
I could
ls
and
ps
that is super impressive
t
yeah its real linux, it is pretty crazy given the size.
Added a visualization of the privilege modes as it boots. Fixed a few bugs and added floating point. Now awk and vi start! JSLinux can boot in like 3 seconds, so this is about 30x slower. I would like it to be faster....