Show HN: Add live runnable code to your dev docs
📰 Hacker News · mlejva
Add live runnable code to dev docs with Devbook SDK, enabling users to run and test code in a VM, and learn how to integrate it into your documentation website
Action Steps
- Add the Devbook SDK to your docs website with a single line of code
- Configure the VM to install required packages and set up the environment
- Test and run code in the VM to ensure it works as expected
- Use the Devbook dashboard to manage and monitor VM instances
- Optimize VM startup time for better user experience
Who Needs to Know This
Developers and technical writers can benefit from using Devbook to create interactive documentation, improving the learning experience for users and reducing support queries
Key Insight
💡 Devbook SDK allows you to add live runnable code to your dev docs, enabling users to run and test code in a VM, without requiring infrastructure management
Share This
🚀 Add live runnable code to your dev docs with Devbook SDK! 📚💻
Full Article
Hi HN community, I'm Vasek, co-founder, and CEO of Devbook [0]. Devbook is an SDK that you add to your docs website and then every time a user visits your dev docs, we spin up a VM just for that user. The VM is ready in about 18-20 seconds. We haven't had enough time to work on optimization but from our early tests, we are fairly confident we can get this to about 1-2 seconds. In the VM you can run almost anything. Install packages, edit & save files, run binaries, services, etc. You as a documentation owner have full control over the VM. We give you full access to filesystem, shell, stdout, and stderr. You don't have to worry about any infrastructure management. It's just one line of code on your frontend. On the backend, the VM is a Firecracker microVM [1] with our custom simple orchestrator/scheduler built on top that just gets the job done. We chose Firecracker for 4 reasons: * (1) the security with a combination of their jailer * (2) its snapshotting c
DeepCamp AI