Hi HN,
Ledge is a Markdown notebook that runs shell commands, code, SQL, etc from inside your own notes.
I built Ledge because I spend much of my day copy/pasting commands from my notes into the terminal. I was inspired by how much cmux helped me organize my terminals - but there was still a split brain between my notes and frequently run commands. I've been daily-driving it for the past few weeks and use it for deploys, API calls, smoke tests, etc.
Ledge runs your real shell just like a terminal app and can be hosted locally or remotely over SSH using ledge-server. I've been building it since July and have recently added support for all the major platforms: Mac (Silicon), Windows (WSL required), Linux, iOS, Android. Mobile devices require SSH access to a ledge-server and Android is still in beta and looking for beta testers (see link on website)!
It's built on Bun and Electrobun and is free and open-source. Feel free to review the code and contribute at https://github.com/ledgesh/ledge
Feedback is very much welcome. Any must-have features that are missing?
As an Emacs user for over a decade I think this is brilliant, it solves my biggest gripes with org-babel which prevent me from using it in a team setting.
Ledge is a lot like org-babel from Emacs, but for muggles: a familiar UI, and common format go a long way.
This is pretty cool. I've been interested in runnable code in markdown for a long time. It's a kind of "literate programming¹" which I've always thought was one of Knuth's best ideas.
More prior art: xcfile²
I've used xc³ for a long time now and it's fairly solid. The idea of runnable markdown is definitely useful. A lot of projects have attempted it and none that I've seen have achieved what I'd call perfection, however, xc gets close enough for my needs.
I'll check out Ledge a bit more thoroughly and give some feedback if I can think of anything constructive. I think xc is probably more suited for my uses, however, I do like electrobun and that seems like a good runtime to build something like this.
Here's what I like about xc:
I've built a sort of configuration management system for my home infrastructure with config files in a git repo and all the deployment scripts and dependencies directly in the readme. I use it to maintain and deploy changes to my router, firewall rules, dhcp and dns, git repositories, and various containers.
Here's an ancient post that I wrote about the subject back before I even discovered xc: https://phabricator.wikimedia.org/phame/post/view/217/runnab...
Oh great, another Jupyter-esque project...
This is cool. I'll probably use this to store my commonly used prompts so I don't have to retype them all the time. For whatever reason I like being able to see all of their contents upfront like this instead of using skills, which feels like you're working in the dark. Then having the extra execution modes on top of that is great too.
Also, interestingly, this is great for creating task lists. Then you can execute each task one by one. Maybe consider adding something like hooks that lets you update the 'prompt' as well, or some state tag on it or something? (maybe you'll think of a better way to represent this), but basically, instead of having my agent write its todo lists like:
You could write them as individual prompts in Ledge, and then have some system where it can update the state of the prompt so you could set it to completed once it's finished automatically via the agent.
Edit: Okay I just tried it. Not sure why, but on Linux (Ubuntu 26.04 with a 4090 rtx) it's REALLY laggy for me. Scrolling and resizing the window is glitching hardcore, and typing is very slow.
Turns out this is a problem with my system, not the software. Ignoring my graphics card issue, it's a great tool :)