Better HN
topnewbestaskshowjobs
Log inSign up

appcypher

116 karma · joined Jun 21, 2017 (9y ago) · 55 submissions

Submissions

comment 2mo ago · link · parent

microsandbox is open-source and runs on linux, macos and windows: https://github.com/superradcompany/microsandbox/

comment 3mo ago · link · parent

it's been mentioned on this thread already, we think https://github.com/superradcompany/microsandbox/ is the closest OSS to it and we have a great DX and improving.

3.

Microsandbox – local-first programmable micro VMs(github.com ↗)

3 points · by appcypher · 5mo ago · discuss

comment 6mo ago · link · parent

that's the tldr. we used fuse and we learnt we shouldn't for a sandbox filesystem

comment 6mo ago · link · parent

interested. is the split for dedup, parallel pulls, or lazy loading specific files? maybe all.

we've played with some chunking ideas on our end but haven't landed on a format. drop a link when it's out.

comment 6mo ago · link · parent

fair point. that's the title we used on our X article and i copy-pasted. updated the article's actual title.

7.

We made our filesystem 47× faster by deleting it(microsandbox.dev ↗)

63 points · by appcypher · 6mo ago · 38 comments

8.

Building Context-Efficient AI agents with Bash and a CLI(tool.store ↗)

4 points · by appcypher · 9mo ago · discuss

comment 1y ago · link · parent

What do you mean?

comment 1y ago · link · parent

Not sure what that entails. You can try and I can help along the way

comment 1y ago · link · parent

Wow. Just seeing this. I've not done proper benchmarking yet but rn we are lagging behind in file I/O for the OverlayFS impl

comment 1y ago · link · parent

They are similar. We use libkrun under the hood. Firecracker team seems not to be interested in a macOS implementation

comment 1y ago · link · parent

Katacontainers is an interesting project. Microsandbox is a more opinionated project with a UX that focuses on getting up and running with microVMs quickly. I want this experience for Linux, macOS and Windows users.

More importantly is making sandboxing really accessible to AI devs with `msb server`.

comment 1y ago · link · parent

No they are not.

comment 1y ago · link · parent

If by embeddable, you mean having the vm run in the same process, then no. The vm aborts its process when it's done so it has to run as separate process.

comment 1y ago · link · parent

Will fix the docs

comment 1y ago · link · parent

We support just Docker hub for now. Let me know if you want any other OCI-compatible registry.

PS: microsandbox will likely have its own OCI registry in the future

comment 1y ago · link · parent

They are Linux VMs and you can host any executable that can work on that. The python/node environment you see is part of what makes the SDK work. Really, it's very similar to Docker in use.

comment 1y ago · link · parent

Your statement initially went over my head. Sorry lol. You can always download the installer script and audit yourself. I will set up proper distribution later.

comment 1y ago · link · parent

Right. You can skip the `with` context manager and call start and stop yourself.

There is an example of that here:

https://github.com/microsandbox/microsandbox/blob/0c13fc27ab...

comment 1y ago · link · parent

It will be maintained as I will be using it for some other product. And it will be audited in the future but it still early days.

comment 1y ago · link · parent

> can you share some thoughts on how you compare or future direction?

Microsandbox does not offer a cloud solution. It is self-hosted, designed to do what E2B does, to make it easier working with microVM-based sandboxes on your local machine whether that is Linux, macOS or Windows (planned) and to seamlessly transition to prod.

> Do you also use Firecracker under the hood?

It uses libkrun.

comment 1y ago · link · parent

We want microsandbox to be usable for everything you can with Docker.

That said, hosting microVMs require dedicated hardware or VMs with nested virt support. Containers don’t have that problem.

comment 1y ago · link · parent

They can. I need to improve the doc. Working on that right now

comment 1y ago · link · parent

Yeah. I need to fix that in the docs!

comment 1y ago · link · parent

> 1. each one should have it's own network config, eg so i can use wireguard or a vpn

This is possible right now but the networking is not where I want it to be yet. It uses libkrun's default TSI impl; performant and simplifies setup but can be inflexible. I plan to implement an alternative user-space networking stack soon.

> 2. gui pass-through to the host, eg wayland, for trusted tools, eg firefox, zoom or citrix

We don't have GUI passthrough. VNC?

> 3. needs to be lightweight. eg gnome-boxes is dead simple to setup and run and it works, but the resource usage was noticeably higher than native

It is lightweight in the sense that it is not a full vm

> 4. optional - more security is better (ie, i might run semi-untrusted software in one of them, eg from a github repo or npm), but i'm not expecting miracles and accept that escape is possible

The security guarantees are similar to what typical VMs support. It is hardware-virtualized so I would say you should be fine.

> 5. optional - sharing disk with the host via COW would be nice, so i'd only need to install the env-specific packages, not the full OS

Yeah. It uses virtio-fs and has overlayfs on top of that for COW.

12