15 comments

  • Xlab5 hours ago
    I will steal this to make a local-first version of <a href="https:&#x2F;&#x2F;microterm.dev" rel="nofollow">https:&#x2F;&#x2F;microterm.dev</a> for macOS :)<p>My idea is to have unified environment across all targets, so the only thing that changes is speed and amount of RAM.
  • josephg7 hours ago
    What does local first mean in this context? Does it just mean local? Like, the software runs locally?
    • harshdoesdev7 hours ago
      yeah, it just means everything runs on your machine. there are services like E2B, sprites.dev and others that give you sandboxes in the cloud. shuru runs VMs locally using Apple&#x27;s Virtualization.framework, so nothing leaves your Mac.
    • userbinator5 hours ago
      Unfortunately yes. It&#x27;s just another stupid marketing buzzword these days.
      • Xlab5 hours ago
        it&#x27;s the other way around, everything is in the cloud now (upload your files to us, we are privacy respecting, bla bla)<p>So it&#x27;s good that the product actually highlights it is dealing with local hardware only.
        • josephg1 hour ago
          Yes, but we have a perfectly serviceable term for local software already: &quot;local software&quot;.<p>To me, &quot;local-first software&quot; means something slightly different. The term was coined by this essay[1], which says:<p>&gt; Local-first ideals include the ability to work offline and collaborate across multiple devices<p>&gt; This means that while local-first apps keep their data in local storage on each device, it is also necessary for that data to be synchronized across all of the devices on which a user does their work.<p>But this is clearly not what&#x27;s going on here. This project is just local software, like we&#x27;ve had forever.<p>If a fancy new &quot;local first&quot; buzzword makes local-only software seem more sexy, then I suppose I don&#x27;t want to get too mad about it. I really like local software. But the autist in me likes it when technical terms have a well defined meaning.<p>[1]: <a href="https:&#x2F;&#x2F;www.inkandswitch.com&#x2F;essay&#x2F;local-first&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.inkandswitch.com&#x2F;essay&#x2F;local-first&#x2F;</a>
        • userbinator4 hours ago
          I don&#x27;t expect &quot;Linux MicroVMs for macOS&quot; to have anything to do with clouds.
  • runako4 hours ago
    How does this compare to Apple container[1]?<p>I am excited by the innovation happening in the space!<p>1 - <a href="https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;container" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;container</a>
    • harshdoesdev4 hours ago
      apple container is more of a docker-style workflow, OCI images, registries, etc. shuru is just micro VMs with checkpointing, much simpler scope.
  • jclay4 hours ago
    Has anyone tackled this for Windows? WSL isn’t ideal when shipping a consumer app to a non-developer target audience since it requires some setup.
  • 7777777phil7 hours ago
    The agent stack is splitting into specialized layers and sandboxing is clearly becoming its own thing. Shuru, E2B, Modal, Firecracker wrappers.<p>Earlier this month I wrote about how these layers have very different defensibility profiles and why going monolithic is the wrong call: <a href="https:&#x2F;&#x2F;philippdubach.com&#x2F;posts&#x2F;dont-go-monolithic-the-agent-stack-is-stratifying&#x2F;" rel="nofollow">https:&#x2F;&#x2F;philippdubach.com&#x2F;posts&#x2F;dont-go-monolithic-the-agent...</a><p>EDIT: Spelling
    • camkego30 minutes ago
      It&#x27;s a good article and seems to mirror my experience doing partial-AI software development. If you are not saving your context for decision making and your conclusions in software architecture (as made between developers and AI) you are losing very valuable context information on software design. Although I&#x27;m not sure the article ties closely to the topic of micro VMs.
  • BrandiATMuhkuh4 hours ago
    Very cool. Was looking for something like this for a new project of mine. (I&#x27;m working on a project that is like a marriage of retool+OpenClaw. It&#x27;s used by SME to quickly build inhouse apps)
  • xrd7 hours ago
    What is the benefit of this over lima, for example?
    • harshdoesdev7 hours ago
      Lima can do a lot of what shuru does if you set it up for it. the difference is mostly in defaults and how much you have to configure upfront. with shuru you get ephemeral VMs, no networking, and a clean rootfs on every run without touching a config file. shuru run and you&#x27;re in. Checkpoints and branching are built into the CLI rather than being an experimental feature you have to figure out. Lima is a much bigger and more mature project though. Shuru is something I am building partly to learn and partly because I wanted something with saner defaults for this specific use case.
      • enneff6 hours ago
        Thanks for doing this. I had basically the same experience with Lima. It is very nice but the defaults are not what I want, and I don&#x27;t like having to wonder whether I turned <i>off</i> the stuff that I don&#x27;t want enabled. Better that everything is disabled by default and I selectively turn things on (like networking) as I need them.<p>I&#x27;m gonna give shuru a try. My main concern is being based on Alpine (seemingly the only option?) I may not be able to easily pull in the dependencies for the projects I&#x27;m working on, but I&#x27;ll see how it goes.
        • harshdoesdev6 hours ago
          glad to hear it, that&#x27;s exactly the thinking behind it. alpine is the only option right now yeah. what kind of dependencies are you running into issues with? would help me figure out what to prioritize next.
          • enneff5 hours ago
            I haven&#x27;t yet - just generally I have found it a bit of a hassle to figure out which packages to install whenever I use a different distro. I&#x27;ll let you know how it goes!
          • halostatue4 hours ago
            Disclaimer: I haven&#x27;t tried this yet.<p>I would want the equivalent of the trixie-slim Docker image (Debian 13, no documentation). It&#x27;s ~46 Mb instead of ~4Mb as a Docker image, but gives a reasonably familiar interface.<p>(This is largely based on some odd experiences with Elixir on Alpine, which is where I am doing most of my work these days.)
  • JSR_FDED4 hours ago
    This looks awesome. How would you recommend setting up an allowlist for external network communications (for cases where networking is enabled)?
  • rishabhaiover6 hours ago
    I&#x27;ve noticed claude forks parallel agents on an assigned task. How would they communicate in isolated sandboxes like these? Would it be cleaner and more effective for a harness to orchestrate swarms of agents in a single clean linux environment like OrbStack?
    • harshdoesdev6 hours ago
      haven&#x27;t thought about multi-agent communication yet. each sandbox is fully isolated which is the point. checkpoints help a bit here though, you can branch multiple agents from the same checkpoint so they all start from the same state.
      • rishabhaiover6 hours ago
        I think I made a cursory and incorrect assumption. Given this is backed by Apple&#x27;s Virtualization, it has POSIX compliance and forks&#x2F;execs are allowed within the sandbox which can support agent parallelization within a sandbox I believe.<p>Looks like a great project at surface!
  • praveenhm4 hours ago
    How does it compare to Lume. It uses Apple&#x27;s native Virtualization Framework to run macOS and Linux VMs at near-native speed on Apple Silicon.
    • harshdoesdev4 hours ago
      lume is a much more full featured VM manager, macOS and Linux VMs, API server, prebuilt images, python SDK etc. shuru is intentionally minimal.
  • tobyhinloopen6 hours ago
    Neat! I was looking for something like this
  • Krisso7 hours ago
    Why was using straigt containers not enough?
    • harshdoesdev7 hours ago
      containers work fine for a lot of this. shuru is just what felt more natural to me. less config overhead and i wanted to learn by building it.
      • wickrom2 hours ago
        What would you say are a natural use case for Shuru or Lima vs say a full docker like environment? What does the sandbox allow you to do differently? There&#x27;s additional overhead of the hypervisor. I&#x27;m mostly just trying to learn, as yourself.
        • nsonha25 minutes ago
          installing new tools inside container require you to update the Dockerfile and rebuild, here it seems you can simply run the installation command and create a checkpoint
  • janlucien4 hours ago
    [dead]
  • okayokay1235 hours ago
    [dead]
  • conradev6 hours ago
    Use OrbStack. It’s faster than Virtualization.framework because it has its own hypervisor.
    • noname1206 hours ago
      Not true, OrbStack uses Virtualization.framework: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36189550">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36189550</a>
      • nsonha30 minutes ago
        Yes but they also use a custom linux kernel to achieve better performance than plain vz. I&#x27;m not technical enough to tell if it&#x27;s bs, but it boots subsecond
      • saagarjha2 hours ago
        I don&#x27;t think they use Virtualization for most launches now
    • harshdoesdev6 hours ago
      OrbStack is great but it is solving a different problem. it&#x27;s a full Docker Desktop replacement. shuru is just a thin layer over Virtualization.framework for spinning up throwaway sandboxes.
    • JoshTriplett6 hours ago
      OrbStack has some invasive elements inside it trying to provide filesystem integration, and the filesystem they use is not POSIX compliant and causes breakage with some build systems and other software.