mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
docs(site): home page in the docs' wording, quick start, what's supported, FAQ
The hero names Lima as the default and smolvm and Docker as experimental. A three-step quick start replaces the recording, followed by a What's supported row (toolchains, coding agents, backends), feature-card bullets for devvm code and devcontainer.json, a link to what devvm doesn't protect, a short FAQ and the install commands again at the bottom. Claims now match their pages: .git protection is macOS only, and the VM also gets the agents' config read-only. The features shortcode takes columns="3" and feature takes level="3". Contributing's home page notes describe the page's sections and drop the recording. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
5 files changed
+141
-42
No files matched your search
@@ -307,6 +307,43 @@ html.dark .highlight .chroma .go {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
/* What's supported: three short cards without art, under the section's heading, each a heading and a
|
||||
sentence. One column, then three per row from 1024px. */
|
||||
#content > .hx\:items-start > .devvm-features-3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
#content > .hx\:items-start > .devvm-features.devvm-features-3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.devvm-feature > h3 {
|
||||
color: var(--devvm-text);
|
||||
font-family: var(--devvm-font-pixel);
|
||||
font-size: 22px;
|
||||
font-weight: 400;
|
||||
font-synthesis: none;
|
||||
margin: 0 0 0.75rem;
|
||||
}
|
||||
|
||||
.devvm-feature > p {
|
||||
margin: 0;
|
||||
color: var(--devvm-text-secondary);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.devvm-feature > p > a {
|
||||
color: var(--devvm-accent);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
.devvm-feature > p > a:hover {
|
||||
color: var(--devvm-accent-soft);
|
||||
}
|
||||
|
||||
/* The art at Departure Mono's own size (11px, one screen pixel to each of the font's), or twice it where
|
||||
one column is wide enough. */
|
||||
.devvm-feature > .devvm-art {
|
||||
|
||||
+92
-35
@@ -5,7 +5,7 @@ layout: hextra-home
|
||||
|
||||
<!-- markdownlint-disable-next-line MD034 -- a shortcode's parameter, not a bare URL -->
|
||||
{{< hextra/hero-badge link="https://github.com/w3cj/devvm" >}}
|
||||
Free and Open source
|
||||
Free and open source
|
||||
{{< /hextra/hero-badge >}}
|
||||
|
||||
{{< hextra/hero-headline >}}
|
||||
@@ -13,72 +13,129 @@ layout: hextra-home
|
||||
{{< /hextra/hero-headline >}}
|
||||
|
||||
{{< hextra/hero-subtitle >}}
|
||||
A developer-friendly, isolated sandbox, ready for you or an agent to start coding. It runs on any of three backends: [Lima](https://lima-vm.io/), [smolvm](https://smolmachines.com/) and [Docker](https://docs.docker.com/get-started/get-docker/).
|
||||
|
||||
Install with Homebrew:
|
||||
|
||||
```sh
|
||||
brew install w3cj/tap/devvm
|
||||
```
|
||||
|
||||
Or with the install script:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://github.com/w3cj/devvm/releases/latest/download/install.sh | bash
|
||||
```
|
||||
|
||||
Then run `devvm doctor` to check your machine, and run `devvm` in any project folder.
|
||||
|
||||
[Installing](docs/getting-started/install.md) has more details.
|
||||
An isolated sandbox with the project's toolchain, ready for you or a coding agent to start coding. devvm runs its VMs on [Lima](https://lima-vm.io/) by default, or on the experimental [smolvm](https://smolmachines.com/) and [Docker](https://docs.docker.com/get-started/get-docker/) backends.
|
||||
{{< /hextra/hero-subtitle >}}
|
||||
|
||||
{{< hextra/hero-button text="Read the docs" link="docs/" >}}
|
||||
{{< hextra/hero-button text="Install" link="docs/getting-started/install/" >}}
|
||||
|
||||
All it takes is one command, and you're ready to start coding.
|
||||
## Quick start
|
||||
|
||||
{{< asciinema file="home/devvm.cast" theme="devvm" autoplay="true" loop="true" >}}
|
||||
```sh
|
||||
# 1. Install devvm, and Lima with it
|
||||
brew install w3cj/tap/devvm
|
||||
# 2. Go to a project folder
|
||||
cd ~/some-project
|
||||
# 3. Open its VM, with Claude Code
|
||||
devvm claude
|
||||
```
|
||||
|
||||
To install with the script instead, which offers to install what's missing, run:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://github.com/w3cj/devvm/releases/latest/download/install.sh | bash
|
||||
```
|
||||
|
||||
Run `devvm` alone for a VM with the project's toolchain and no agent. The first VM builds the base image, which takes a few minutes once, and [your first VM](docs/getting-started/first-vm.md) walks you through it, including the Claude Code token.
|
||||
|
||||
## What's supported
|
||||
|
||||
{{< features columns="3" >}}
|
||||
|
||||
{{< feature title="Toolchains" level="3" >}}
|
||||
|
||||
devvm picks node, python, rust or go from the project's files, and you can combine them ([toolchains](docs/using/toolchains.md)).
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< feature title="Coding agents" level="3" >}}
|
||||
|
||||
Claude Code, Codex and opencode run in the VM with your settings, skills and MCP servers ([coding agents](docs/using/coding-agents.md)).
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< feature title="Backends" level="3" >}}
|
||||
|
||||
Lima runs the VMs by default, and smolvm and Docker are experimental backends ([backends](docs/backends/_index.md)).
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< /features >}}
|
||||
|
||||
## Why use devvm?
|
||||
|
||||
- Developers are exposed daily to several attack vectors including [supply chain attacks](https://en.wikipedia.org/wiki/Supply_chain_attack), leaked secrets, [prompt injections](https://en.wikipedia.org/wiki/Prompt_injection), rogue agents and more.
|
||||
- A sandbox limits the [blast radius](https://en.wikipedia.org/wiki/Blast_radius#Uses_in_software) of any potential attack.
|
||||
- We all know we _should_ be sandboxing our code and agents, but most tools require configs and setup that are hard to get right.
|
||||
- `devvm` ships with sensible defaults so you can start coding in a sandbox right away.
|
||||
- Developers face attacks every day, such as [supply chain attacks](https://en.wikipedia.org/wiki/Supply_chain_attack), leaked secrets, [prompt injections](https://en.wikipedia.org/wiki/Prompt_injection) and rogue agents.
|
||||
- A sandbox limits the [blast radius](https://en.wikipedia.org/wiki/Blast_radius#Uses_in_software) of an attack to what's inside it.
|
||||
- You know you _should_ run your code and agents in a sandbox, but most tools need configuration and setup that's hard to get right.
|
||||
- devvm comes with sensible defaults, so you can start coding in a sandbox right away.
|
||||
|
||||
{{< features >}}
|
||||
|
||||
{{< feature title="Developer ready, zero config" art="zero-config" >}}
|
||||
|
||||
- `devvm` detects the [project's toolchain](docs/using/images.md#which-image-a-new-vm-gets) from its files, so you write no config files and do no setup. It supports node, python, rust and go, with more to come.
|
||||
- Docker runs inside the VM when you need it: `devvm node+docker`.
|
||||
- Every instance automatically sets your git identity so commits inside the VM are authored by you (or your agent).
|
||||
- The base image includes [optional tools](docs/using/customizing.md#base-image-features) such as oh-my-bash, fzf, zoxide (`z`), tree, tldr and more.
|
||||
- devvm detects the [project's toolchain](docs/using/images.md#which-image-a-new-vm-gets) from its files, so you write no config files and do no setup.
|
||||
- Docker runs inside the VM when you need it, with `devvm node+docker`.
|
||||
- Every VM gets your git name and email, so the commits made in it are authored by you or your agent.
|
||||
- `devvm code` opens the VM in VS Code over Remote-SSH ([devvm code](docs/using/ssh.md#devvm-ssh-and-devvm-code)).
|
||||
- When the project has a `devcontainer.json`, devvm sets up its VM from the file's container image, ports, environment and commands ([devcontainer.json](docs/using/devcontainer.md)).
|
||||
- The base image comes with [optional extras](docs/using/customizing.md#base-image-features) that you choose, such as oh-my-bash, fzf, zoxide (`z`), tree and tldr.
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< feature title="Ready in seconds" art="copies" >}}
|
||||
|
||||
- The first VM builds a base image, and every later VM is a copy of it that starts in seconds ([images](docs/using/images.md)).
|
||||
- `devvm` builds each toolchain once and shares it read-only, so all VMs use the same copy ([shared tools](docs/using/images.md#shared-tools)).
|
||||
- devvm builds each version of a toolchain once and shares it read-only, so all VMs use the same copy ([shared tools](docs/using/images.md#shared-tools)).
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< feature title="Isolated sandbox" art="isolated" >}}
|
||||
|
||||
- The VM mounts your project folder at the same path. It sees nothing else from your home folder ([what a VM can reach](docs/safety/_index.md#what-a-vm-can-reach)).
|
||||
- `devvm` locks `.git`'s hooks and config, so the VM can't change what git runs on your machine ([.git protection](docs/safety/git-protection.md)).
|
||||
- The VM mounts your project folder at the same path. Apart from your agents' config, which it gets read-only, it sees nothing else in your home folder ([what a VM can reach](docs/safety/_index.md#what-a-vm-can-reach)).
|
||||
- On macOS, devvm locks `.git`'s hooks and config, so the VM can't change what git runs on your machine ([.git protection](docs/safety/git-protection.md)).
|
||||
- With [`--clone`](docs/using/clone.md), the VM works on a clone of the repo of its own instead of your folder, so nothing in it can touch your working tree or `.git`, and its work reaches your repo only when you fetch it.
|
||||
- Every new VM gets [network policy](docs/safety/network.md) by default, so it reaches only an allowlist of hosts, through a proxy on your machine.
|
||||
- A few habits close most of what's left, and [staying safe](docs/safety/_index.md#the-habits) lists them.
|
||||
- New VMs get [network policy](docs/safety/network.md) by default, so they reach only an allowlist of hosts, through a proxy on your machine.
|
||||
- No sandbox closes every gap, so [what devvm doesn't protect](docs/internals/security.md#what-it-doesnt-protect) lists what's left open, and [staying safe](docs/safety/_index.md#the-habits) lists the habits that close most of it.
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< feature title="Made for coding agents" art="agents" >}}
|
||||
|
||||
- Claude Code, Codex and opencode get your settings, skills and MCP servers ([coding agents](docs/using/coding-agents.md)).
|
||||
- With network policy, their secrets, such as your Claude Code token and your Codex login, stay on your machine, because the VM gets placeholders and the `devvm` proxy puts the real ones into its requests on the way out.
|
||||
- `devvm claude`, `devvm codex` and `devvm opencode` make a VM with that agent, which gets your settings, skills and MCP servers but never your history ([coding agents](docs/using/coding-agents.md)).
|
||||
- With network policy, their secrets, such as your Claude Code token and your Codex login, stay on your machine, because the VM gets placeholders and devvm's proxy puts the real ones into its requests on the way out.
|
||||
|
||||
{{< /feature >}}
|
||||
|
||||
{{< /features >}}
|
||||
|
||||
## FAQ
|
||||
|
||||
### Does it run on Linux?
|
||||
|
||||
Yes. devvm runs on macOS 13 or newer and on Linux, on arm64 or x86_64. On Linux hosts it has a few limits, such as no `.git` protection, which [known limits](docs/using/limits.md#linux-hosts) lists.
|
||||
|
||||
### Is it free?
|
||||
|
||||
Yes. devvm is open source under the [MIT license](https://github.com/w3cj/devvm/blob/main/LICENSE).
|
||||
|
||||
### What do I need?
|
||||
|
||||
devvm needs Lima 2.0 or newer, which Homebrew installs along with it, and on Linux also QEMU and access to `/dev/kvm`. `devvm doctor` checks your machine, and [installing](docs/getting-started/install.md) lists every requirement.
|
||||
|
||||
## Install devvm
|
||||
|
||||
```sh
|
||||
# Install devvm with Homebrew, and Lima with it
|
||||
brew install w3cj/tap/devvm
|
||||
# Check that your machine has what devvm needs
|
||||
devvm doctor
|
||||
```
|
||||
|
||||
To install with the script instead, run:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://github.com/w3cj/devvm/releases/latest/download/install.sh | bash
|
||||
```
|
||||
|
||||
{{< hextra/hero-button text="Install" link="docs/getting-started/install/" >}}
|
||||
{{< hextra/hero-button text="Read the docs" link="docs/" >}}
|
||||
@@ -277,14 +277,13 @@ The site is [Hugo](https://gohugo.io) with the [Hextra](https://imfing.github.io
|
||||
- **Front matter** sets `title`, shown as the page's heading, and `weight`, the page's place in its section, or a section's place in the sidebar for an `_index.md`. Start the body at `##`.
|
||||
- **Links** to other pages point at their files (`[Contributing](_index.md)`), so the linters can check them.
|
||||
- **Style:** succinct and direct. Commands are written as devvm x or in backticks, never in quotes. No `please`, `simply` or `note that`.
|
||||
- **The home page** is `docs/content/_index.md`, on Hextra's `hextra-home` layout: its hero shortcodes, then plain Markdown. `custom.css` styles it through the one `div` that the layout wraps its content in.
|
||||
- **Feature cards** on the home page come from two shortcodes in `docs/layouts/_shortcodes/`, which make a `{{</* features */>}}` grid of `{{</* feature title="Ready in seconds" art="copies" */>}}` cards, each closed with `{{</* /feature */>}}`. A card shows its title as a heading, then the Markdown inside it, then its illustration, which is optional. The cards are in one centered column on smaller screens and two per row from 1024px wide.
|
||||
- **The home page** is `docs/content/_index.md`, on Hextra's `hextra-home` layout: its hero shortcodes, then plain Markdown. `custom.css` styles it through the one `div` that the layout wraps its content in. After the hero, the page has a quick start, what's supported, why to use devvm with its feature cards, a short FAQ, and the install commands again with the hero's buttons. It keeps a marketing tone, but each of its claims matches the docs page it links to, and it uses the same terms.
|
||||
- **The quick start** shows the three commands to run first, each after a comment short enough to fit a phone's width, because a comment after its command would scroll out of view there.
|
||||
- **Feature cards** on the home page come from two shortcodes in `docs/layouts/_shortcodes/`, which make a `{{</* features */>}}` grid of `{{</* feature title="Ready in seconds" art="copies" */>}}` cards, each closed with `{{</* /feature */>}}`. A card shows its title as a heading, then the Markdown inside it, then its illustration, which is optional. The cards are in one centered column on smaller screens and two per row from 1024px wide. What's supported uses the same cards without illustrations. `{{</* features columns="3" */>}}` puts three in a row from 1024px wide, and `level="3"` on a card makes its title an `h3`, under the section's own heading.
|
||||
- **Colors:** the site is dark only (`hugo.yaml`'s `params.theme`). Its palette is in `docs/assets/css/custom.css`: a black background and one lime accent, `#7fff00`, which sets Hextra's primary color. The home page's illustrations also use `#0086b3`, the blue that Hextra's syntax highlighting gives commands like `cd`.
|
||||
- **Fonts:** Instrument Sans for text and Martian Mono for code, from Google Fonts (`docs/layouts/_partials/custom/head-end.html`); Departure Mono, a pixel font in `docs/static/fonts/` with its license, for the logo, the home page's headings, badge and buttons. Departure Mono is sharp at multiples of 11px and has one weight.
|
||||
- **The logo** is the site's title in the navbar, styled in `custom.css`: a box, and a box-drawing lock on its corner.
|
||||
- **The illustrations** on the home page are SVGs in `docs/assets/home/`, and `{{</* art "name" */>}}` inlines one into the page, so that it gets the page's fonts and colors. A feature card's `art` parameter inlines one the same way, through `docs/layouts/_partials/art.html`. Each one is drawn on Departure Mono's 11px cell, 7 pixels wide and 14 tall, so its text and shapes stay sharp at its own size or at twice its size. The `art` shortcode shows it at twice its size, 728px wide. A card shows it at its own size, 364px wide, when the cards are two per row, and at twice its size when one column has room for it. On a screen too narrow for 364px, it shrinks to fit.
|
||||
- **The recording** at the top of the home page is `docs/assets/home/devvm.cast`, played by Hextra's `asciinema` shortcode with the `devvm` player theme in `custom.css`. The recording is a real run of devvm, made with `asciinema rec`. After recording, its commands were retimed so that they appear typed one letter at a time, and its bold colors were made bright, as the terminal it was recorded in shows them.
|
||||
|
||||
`mise run lint:docs`, which `mise run lint` includes, checks `docs/` with:
|
||||
|
||||
| Linter | Checks | Config |
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{{- /* One card in the features grid: a heading, its Markdown, then art from assets/home/ if given.
|
||||
{{< feature title="Ready in seconds" art="copies" >}} Markdown {{< /feature >}} */ -}}
|
||||
{{< feature title="Ready in seconds" art="copies" >}} Markdown {{< /feature >}}
|
||||
level="3" makes the heading an h3, for cards under a section's own heading. */ -}}
|
||||
{{- $title := .Get "title" -}}
|
||||
{{- if not $title }}{{ errorf "feature: no title (%s)" .Position }}{{ end -}}
|
||||
<section class="devvm-feature">
|
||||
{{- if eq (.Get "level") "3" }}
|
||||
<h3 id="{{ $title | anchorize }}">{{ $title | .Page.RenderString }}</h3>
|
||||
{{- else }}
|
||||
<h2 id="{{ $title | anchorize }}">{{ $title | .Page.RenderString }}</h2>
|
||||
{{- end }}
|
||||
{{ .Inner | .Page.RenderString (dict "display" "block") }}
|
||||
{{- with .Get "art" }}
|
||||
{{ partial "art.html" (dict "name" . "position" $.Position) }}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
{{- /* The home page's grid of feature cards: {{< features >}}, then {{< feature >}} shortcodes, then {{< /features >}}. */ -}}
|
||||
<div class="devvm-features">{{ .Inner }}</div>
|
||||
{{- /* The home page's grid of feature cards: {{< features >}}, then {{< feature >}} shortcodes, then {{< /features >}}.
|
||||
{{< features columns="3" >}} puts three cards in a row on wide screens, for short cards without art. */ -}}
|
||||
<div class="devvm-features{{ if eq (.Get "columns") "3" }} devvm-features-3{{ end }}">{{ .Inner }}</div>
|
||||
Reference in new issue
Block a user