diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index da91f93..3acb622 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -3,7 +3,7 @@ name: Site
on:
push:
branches: [main]
- paths: [site/**, .github/workflows/pages.yml]
+ paths: [site/**, docs/**, scripts/sitedocs/**, .github/workflows/pages.yml]
workflow_dispatch:
permissions:
@@ -23,6 +23,11 @@ jobs:
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v7
+ - uses: actions/setup-go@v7
+ with:
+ go-version-file: go.mod
+ # the documentation pages, from the guides in docs/
+ - run: go run ./scripts/sitedocs
- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v5
with:
diff --git a/.gitignore b/.gitignore
index ce47d3a..fe30c21 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
/build/
/internal/webui/dist/*
!/internal/webui/dist/.keep
+/site/docs/
node_modules/
*.test
coverage.*
diff --git a/AGENTS.md b/AGENTS.md
index bc336c9..ea6e9cf 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -14,6 +14,7 @@ Portplane is a cross-platform desktop app (macOS, Linux, Windows). It shows ever
- `cmd/portplane-window`: the Linux window (GTK 4 and WebKitGTK loaded at run time), a second binary so `portplane` never links desktop libraries (ADR-0018).
- `internal/`: Go packages. `internal/webui/dist` holds the built UI that the binary embeds.
- `web/`: the React + Vite UI (`pnpm -C web dev|build|test|typecheck`).
+- `site/`: the website on GitHub Pages (landing page and downloads). Its docs pages (`site/docs/`, not committed) come from the guides in `docs/` through `mise run site` (`scripts/sitedocs`); the Pages workflow runs it on deploy.
- `mise run build|test|lint`: everything CI checks. Dev servers run under dekit (`dekit.yaml` at the root), never started directly.
`prototype/` is the single-machine Node prototype that started the project. It is reference material: do not extend it into the product.
diff --git a/README.md b/README.md
index c4eb5ee..163d71e 100644
--- a/README.md
+++ b/README.md
@@ -1,50 +1,108 @@
+
+
+
+
# Portplane
-> Every dev server, on every machine, in one window.
+**Every dev server, on every machine, in one window.**
+
+Stop hunting for `localhost:51xx`. Portplane shows every dev server across your projects and your other machines, gives each one a stable `https://.localhost` address, and starts or stops it with a click.
+
+[**Download**](https://akamachinecode.github.io/portplane/#download) · [Website](https://akamachinecode.github.io/portplane/) · [Docs](https://akamachinecode.github.io/portplane/docs/) · [Changelog](CHANGELOG.md)
+
+[](https://github.com/akamachinecode/portplane/releases/latest)
+[](LICENSE)
+
+
+
+
+
+
+
+
+
+## Why Portplane
+
+You run a website, an admin, an API and a docs site, across a few monorepos and a couple of git worktrees, some on your laptop and some on a box under your desk. Ports collide, ports move, bookmarks break, and the only way to know what is running is to read terminal output.
+
+Portplane fixes that in one window:
-See which local dev servers are running across all your project folders, and across your other machines over SSH. Open them at stable `https://.localhost` URLs, and start or stop them with a click. Built on top of [dekit](https://dekit.run) and [portless](https://github.com/vercel-labs/portless), not instead of them.
+- **One address per app, forever.** `https://shop.localhost`, `https://api.shop.localhost`, `https://checkout.shop.localhost` for a worktree. Real HTTPS, a trusted certificate, no port numbers to remember.
+- **Everything at a glance.** Every app's state (on, starting, failed, off), grouped by project and worktree, on this computer and on every machine you reach over SSH.
+- **One click to act.** Start, stop or restart an app or a whole project. When something fails, its last lines of output are right there, ready to copy.
+- **Set up in five minutes, no terminal.** Point it at a folder: Portplane finds your apps, installs what's missing, proposes an address for each and writes plain config after you review it.
-**Status:** early development, not ready for daily use yet. The [roadmap](docs/roadmap.md) tracks the way to v1.0. The single-machine prototype that started the project lives in [`prototype/`](prototype/README.md).
+## Features
-
+| | |
+|---|---|
+| **Apps** | Live state for every dev server, grouped by project and git worktree. Pin favourites, search everything with Ctrl/⌘K, see each app's live output. |
+| **Addresses** | Stable `.localhost` URLs over HTTPS. Rename an app's address in a click, clean up stale ones, add aliases. |
+| **Remote machines** | Add any host from `~/.ssh/config` or your Tailscale network. Its apps open at `https://..localhost`, through SSH, as if they were local. |
+| **Sharing** | Share an app with your tailnet, publicly with Tailscale Funnel, ngrok or Cloudflare, or open it from your phone on the same Wi-Fi. |
+| **Health** | Failed apps, stopped runners, certificate and proxy problems in one place, each with its fix. |
+| **Guided setup** | Installs dekit, portless and Node.js for you, sets up HTTPS and browser trust, then finds and configures your apps. On remote machines too. |
+| **Docker Compose** | Start, stop and open compose projects with stable addresses. |
+| **Native everywhere** | A menu-bar app on macOS, its own window and tray icon on Linux and Windows. |
-## Install
+## Download
+
+| | |
+|---|---|
+| **macOS** 12+ | [Apple silicon and Intel `.dmg`](https://akamachinecode.github.io/portplane/#download-mac) |
+| **Linux** | [`.deb`, `.rpm` or `.tar.gz`, x86-64 and ARM64](https://akamachinecode.github.io/portplane/#download-linux) |
+| **Windows** 10/11 (beta) | [`.zip`, x64 and ARM64](https://akamachinecode.github.io/portplane/#download-windows) |
+
+Or from a terminal:
```sh
curl -fsSL https://akamachinecode.github.io/portplane/install.sh | sh # macOS, Linux
-irm https://akamachinecode.github.io/portplane/install.ps1 | iex # Windows (beta)
+irm https://akamachinecode.github.io/portplane/install.ps1 | iex # Windows
```
-Or download the macOS app (`.dmg`), `.deb`, `.rpm` or `.zip` from [Releases](https://github.com/akamachinecode/portplane/releases). See the [install guide](docs/install.md) for first-launch prompts and verifying downloads.
+Every release has cosign-signed checksums. The [install guide](https://akamachinecode.github.io/portplane/docs/) covers first-launch prompts and verifying downloads.
+
+## Quick start
-## Use it
+Open Portplane and follow the guided setup. Or from a terminal:
```sh
-portplane folders add ~/code # where your projects (and their dekit.yaml) live
-portplane # opens https://portplane.localhost, with a menu-bar or tray icon
+portplane folders add ~/code # where your projects live
+portplane # opens the window, with a menu-bar or tray icon
portplane setup ~/code # no dekit config yet? propose one for every app it finds
portplane ls # the same view in the terminal
portplane restart shop/web # start, stop or restart an app or a whole project ("shop/")
portplane autostart on # start at login
```
-Add other machines from the window (**Add a machine**): any host in `~/.ssh/config` or your Tailscale network. Their apps open at `https://..localhost`. To generate dekit config from the window, use **Settings → Set up…** on a folder.
+## Built on tools you already trust
+
+Portplane doesn't run your servers and doesn't replace anything. It sits on two small open-source tools:
+
+- **[dekit](https://dekit.run)** runs and supervises your dev servers.
+- **[portless](https://github.com/vercel-labs/portless)** gives them stable `.localhost` addresses through a local HTTPS proxy.
+
+And it keeps three promises:
+
+- **Local-first.** No accounts, no cloud, no telemetry.
+- **Nothing listening on your network.** The UI lives on loopback; other machines are reached only over SSH, with your keys. See the [security model](https://akamachinecode.github.io/portplane/docs/security/).
+- **No lock-in.** The config it writes is plain dekit YAML you can keep using without Portplane.
Without dekit or portless, Portplane still lists the ports open on your machine and the folder each one serves.
-## Read more
+## Status
+
+Portplane is young (v0.x) and moving fast towards v1.0: expect rough edges, and tell us about them in [Issues](https://github.com/akamachinecode/portplane/issues). The [roadmap](docs/roadmap.md) shows what's next.
+
+## Learn more
-- [Vision](docs/vision.md)
-- [Field notes](docs/field-notes.md): what wiring dekit and portless by hand taught us
-- [Open questions](docs/open-questions.md)
-- [Roadmap to v1.0](docs/roadmap.md)
-- [Architecture decision records](docs/adr/README.md)
-- [Upstream proposals](docs/upstream.md)
-- [Security model](docs/security.md) · [Troubleshooting](docs/troubleshooting.md)
+- [Documentation](https://akamachinecode.github.io/portplane/docs/): install, troubleshooting, security model
+- [Vision](docs/vision.md) and [roadmap](docs/roadmap.md)
+- [Architecture decision records](docs/adr/README.md) · [Field notes](docs/field-notes.md) · [Upstream proposals](docs/upstream.md)
## Contributing
-See [CONTRIBUTING.md](CONTRIBUTING.md). Security issues: [SECURITY.md](SECURITY.md).
+Contributions are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). Report security issues privately: [SECURITY.md](SECURITY.md).
## License
diff --git a/docs/images/portplane-dark.png b/docs/images/portplane-dark.png
index 905f5cf..642bfb7 100644
Binary files a/docs/images/portplane-dark.png and b/docs/images/portplane-dark.png differ
diff --git a/docs/images/portplane-light.png b/docs/images/portplane-light.png
index 8a68edb..7248c0c 100644
Binary files a/docs/images/portplane-light.png and b/docs/images/portplane-light.png differ
diff --git a/docs/security.md b/docs/security.md
index 9edb802..6251220 100644
--- a/docs/security.md
+++ b/docs/security.md
@@ -2,8 +2,6 @@
Portplane starts and stops processes, reads process information, connects to other machines and, when you ask, installs dekit and portless and runs portless's admin steps. This page says what it trusts, what it exposes and what it never does. Report vulnerabilities privately (see [SECURITY.md](../SECURITY.md)).
-> Installs, privileged steps and update checks arrive with milestone M5 ([roadmap](roadmap.md)). Until a release includes them, Portplane shows the commands for you to run instead.
-
## What runs where
| Component | Runs as | Listens on |
diff --git a/go.mod b/go.mod
index 54ba3da..1415bf6 100644
--- a/go.mod
+++ b/go.mod
@@ -9,6 +9,7 @@ require (
github.com/hashicorp/yamux v0.1.2
github.com/jchv/go-webview2 v0.0.0-20260205173254-56598839c808
github.com/shirou/gopsutil/v4 v4.26.10
+ github.com/yuin/goldmark v1.8.7
go.yaml.in/yaml/v3 v3.0.6
golang.org/x/sys v0.48.0
)
diff --git a/go.sum b/go.sum
index 37b10e0..6b19f9b 100644
--- a/go.sum
+++ b/go.sum
@@ -27,6 +27,8 @@ github.com/tklauser/go-sysconf v0.4.0 h1:7H0uAN+7RkwWRaxhYXDLqa5V3LPrJeV8wmD9dRU
github.com/tklauser/go-sysconf v0.4.0/go.mod h1:8mTNWyog7H+MpKijp4VmKJAd2bbYQ2zuUwkYRbUArPI=
github.com/tklauser/numcpus v0.12.0 h1:NR85qdvHA9pFse3x3weVZ0r0ST8R6l5RHbZrlRaqob4=
github.com/tklauser/numcpus v0.12.0/go.mod h1:ABHeXzJnr/qqwguhClkZKT1/8VABcYrsyUiUGobwWJg=
+github.com/yuin/goldmark v1.8.7 h1:XT/tNqCIbabh0ln675w4x3dv04kQBKi8NwYqi9IJaxI=
+github.com/yuin/goldmark v1.8.7/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM=
diff --git a/mise.toml b/mise.toml
index 68f151a..e11f4be 100644
--- a/mise.toml
+++ b/mise.toml
@@ -19,6 +19,10 @@ description = "Build the portplane binary with the embedded UI"
depends = ["web:build"]
run = "go build -o bin/portplane ./cmd/portplane"
+[tasks.site]
+description = "Make the website's documentation pages (site/docs) from docs/"
+run = "go run ./scripts/sitedocs"
+
[tasks.test]
description = "Go and web tests"
run = ["go test ./...", "pnpm -C web test"]
diff --git a/release-please-config.json b/release-please-config.json
index a6e9c55..94aac4e 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -50,7 +50,13 @@
}
],
"initial-version": "0.1.0",
- "include-component-in-tag": false
+ "include-component-in-tag": false,
+ "extra-files": [
+ {
+ "type": "generic",
+ "path": "site/app.js"
+ }
+ ]
}
},
"include-component-in-tag": false
diff --git a/scripts/sitedocs/main.go b/scripts/sitedocs/main.go
new file mode 100644
index 0000000..57b57d5
--- /dev/null
+++ b/scripts/sitedocs/main.go
@@ -0,0 +1,311 @@
+// Command sitedocs turns the user guides in docs/ into the documentation
+// pages of the website (site/docs/), with the landing page's look. The
+// Markdown in docs/ stays the only source: GitHub shows it as is, and the
+// Pages workflow runs this before it publishes site/.
+//
+// go run ./scripts/sitedocs # writes site/docs/
+package main
+
+import (
+ "bytes"
+ _ "embed"
+ "flag"
+ "fmt"
+ "html/template"
+ "log"
+ "os"
+ "path"
+ "path/filepath"
+ "regexp"
+ "strings"
+
+ "github.com/yuin/goldmark"
+ "github.com/yuin/goldmark/ast"
+ "github.com/yuin/goldmark/extension"
+ "github.com/yuin/goldmark/parser"
+ "github.com/yuin/goldmark/renderer"
+ "github.com/yuin/goldmark/renderer/html"
+ "github.com/yuin/goldmark/text"
+ "github.com/yuin/goldmark/util"
+)
+
+const repoURL = "https://github.com/akamachinecode/portplane"
+
+// A page of the site, made from one file in docs/.
+type page struct {
+ Src string // file in docs/
+ Slug string // "" for the docs home
+ Nav string // its name in the sidebar
+ Group string
+ // Questions: the page is a list of paragraphs that open with a bold
+ // question (troubleshooting). Each gets an anchor and a contents entry.
+ Questions bool
+}
+
+var pages = []page{
+ {Src: "install.md", Slug: "", Nav: "Install", Group: "Get started"},
+ {Src: "troubleshooting.md", Slug: "troubleshooting", Nav: "Troubleshooting", Group: "Get started", Questions: true},
+ {Src: "security.md", Slug: "security", Nav: "Security model", Group: "Reference"},
+ {Src: "vision.md", Slug: "vision", Nav: "Vision", Group: "Project"},
+}
+
+// Links in the sidebar that stay on GitHub.
+var external = []struct{ Group, Nav, URL string }{
+ {"Project", "Roadmap", repoURL + "/blob/main/docs/roadmap.md"},
+ {"Project", "Decisions (ADRs)", repoURL + "/blob/main/docs/adr/README.md"},
+ {"Project", "Changelog", repoURL + "/blob/main/CHANGELOG.md"},
+}
+
+//go:embed page.html
+var pageHTML string
+
+type navItem struct {
+ Name, URL string
+ Current bool
+ External bool
+}
+
+type navGroup struct {
+ Name string
+ Items []navItem
+}
+
+type tocItem struct {
+ ID, Text string
+ Sub bool
+}
+
+type view struct {
+ Title string
+ Description string
+ Root string // relative path from the page to site/
+ Groups []navGroup
+ TOC []tocItem
+ Body template.HTML
+ EditURL string
+ Prev, Next *navItem
+}
+
+func main() {
+ docs := flag.String("docs", "docs", "folder with the Markdown guides")
+ out := flag.String("out", "site/docs", "output folder")
+ flag.Parse()
+
+ tpl := template.Must(template.New("page").Parse(pageHTML))
+ md := goldmark.New(
+ goldmark.WithExtensions(extension.GFM),
+ goldmark.WithParserOptions(parser.WithAutoHeadingID()),
+ goldmark.WithRendererOptions(
+ html.WithXHTML(),
+ renderer.WithNodeRenderers(util.Prioritized(rawAsText{}, 100)),
+ ),
+ )
+
+ if err := os.RemoveAll(*out); err != nil {
+ log.Fatal(err)
+ }
+ for i, p := range pages {
+ src, err := os.ReadFile(filepath.Join(*docs, p.Src))
+ if err != nil {
+ log.Fatal(err)
+ }
+ root := "../"
+ if p.Slug != "" {
+ root = "../../"
+ }
+ doc := md.Parser().Parse(text.NewReader(src))
+ title, toc := transform(doc, src, p, root)
+ var body bytes.Buffer
+ if err := md.Renderer().Render(&body, src, doc); err != nil {
+ log.Fatal(err)
+ }
+ v := view{
+ Title: title,
+ Description: description(doc, src),
+ Root: root,
+ Groups: sidebar(root, p),
+ TOC: toc,
+ Body: template.HTML(body.String()),
+ EditURL: repoURL + "/blob/main/docs/" + p.Src,
+ }
+ if i > 0 {
+ v.Prev = &navItem{Name: pages[i-1].Nav, URL: pageURL(root, pages[i-1].Slug)}
+ }
+ if i < len(pages)-1 {
+ v.Next = &navItem{Name: pages[i+1].Nav, URL: pageURL(root, pages[i+1].Slug)}
+ }
+ dir := filepath.Join(*out, p.Slug)
+ if err := os.MkdirAll(dir, 0o755); err != nil {
+ log.Fatal(err)
+ }
+ var buf bytes.Buffer
+ if err := tpl.Execute(&buf, v); err != nil {
+ log.Fatal(err)
+ }
+ if err := os.WriteFile(filepath.Join(dir, "index.html"), buf.Bytes(), 0o644); err != nil {
+ log.Fatal(err)
+ }
+ fmt.Println(filepath.Join(dir, "index.html"))
+ }
+}
+
+func pageURL(root, slug string) string {
+ if slug == "" {
+ return root + "docs/"
+ }
+ return root + "docs/" + slug + "/"
+}
+
+func sidebar(root string, current page) []navGroup {
+ var groups []navGroup
+ add := func(group string, item navItem) {
+ for i := range groups {
+ if groups[i].Name == group {
+ groups[i].Items = append(groups[i].Items, item)
+ return
+ }
+ }
+ groups = append(groups, navGroup{Name: group, Items: []navItem{item}})
+ }
+ for _, p := range pages {
+ add(p.Group, navItem{Name: p.Nav, URL: pageURL(root, p.Slug), Current: p.Src == current.Src})
+ }
+ for _, e := range external {
+ add(e.Group, navItem{Name: e.Nav, URL: e.URL, External: true})
+ }
+ return groups
+}
+
+// transform rewrites links for the site, gives question paragraphs an
+// anchor, and returns the page's title and its table of contents.
+func transform(doc ast.Node, src []byte, p page, root string) (string, []tocItem) {
+ var title string
+ var toc []tocItem
+ _ = ast.Walk(doc, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
+ if !entering {
+ return ast.WalkContinue, nil
+ }
+ switch n := n.(type) {
+ case *ast.Heading:
+ id, _ := n.AttributeString("id")
+ idStr := string(asBytes(id))
+ switch {
+ case n.Level == 1 && title == "":
+ title = plain(n, src)
+ case n.Level == 2 || (n.Level == 3 && !p.Questions):
+ toc = append(toc, tocItem{ID: idStr, Text: plain(n, src), Sub: n.Level == 3})
+ }
+ case *ast.Paragraph:
+ if !p.Questions {
+ break
+ }
+ if strong, ok := n.FirstChild().(*ast.Emphasis); ok && strong.Level == 2 {
+ q := strings.TrimRight(plain(strong, src), ".")
+ id := slug(q)
+ n.SetAttributeString("id", []byte(id))
+ n.SetAttributeString("class", []byte("question"))
+ toc = append(toc, tocItem{ID: id, Text: q})
+ }
+ case *ast.Link:
+ n.Destination = []byte(rewrite(string(n.Destination), p.Src, root))
+ case *ast.Image:
+ n.Destination = []byte(rewrite(string(n.Destination), p.Src, root))
+ }
+ return ast.WalkContinue, nil
+ })
+ return title, toc
+}
+
+func asBytes(v any) []byte {
+ if b, ok := v.([]byte); ok {
+ return b
+ }
+ return nil
+}
+
+// rewrite points a relative link at the site's page when the target is one,
+// and at the file on GitHub otherwise.
+func rewrite(dest, from, root string) string {
+ if dest == "" || strings.HasPrefix(dest, "#") || strings.Contains(dest, "://") || strings.HasPrefix(dest, "mailto:") {
+ return dest
+ }
+ file, frag, _ := strings.Cut(dest, "#")
+ if frag != "" {
+ frag = "#" + frag
+ }
+ target := path.Clean(path.Join("docs", path.Dir(from), file))
+ for _, p := range pages {
+ if target == "docs/"+p.Src {
+ return pageURL(root, p.Slug) + frag
+ }
+ }
+ kind := "blob"
+ if !strings.Contains(path.Base(target), ".") {
+ kind = "tree"
+ }
+ return repoURL + "/" + kind + "/main/" + target + frag
+}
+
+// plain is a node's text without markup.
+func plain(n ast.Node, src []byte) string {
+ var b strings.Builder
+ _ = ast.Walk(n, func(c ast.Node, entering bool) (ast.WalkStatus, error) {
+ if !entering {
+ return ast.WalkContinue, nil
+ }
+ switch c := c.(type) {
+ case *ast.Text:
+ b.Write(c.Segment.Value(src))
+ if c.SoftLineBreak() {
+ b.WriteByte(' ')
+ }
+ case *ast.String:
+ b.Write(c.Value)
+ case *ast.RawHTML:
+ for i := 0; i < c.Segments.Len(); i++ {
+ seg := c.Segments.At(i)
+ b.Write(seg.Value(src))
+ }
+ }
+ return ast.WalkContinue, nil
+ })
+ return strings.TrimSpace(b.String())
+}
+
+var nonSlug = regexp.MustCompile(`[^a-z0-9]+`)
+
+func slug(s string) string {
+ return strings.Trim(nonSlug.ReplaceAllString(strings.ToLower(s), "-"), "-")
+}
+
+// description is the first paragraph after the title, for search engines.
+func description(doc ast.Node, src []byte) string {
+ for n := doc.FirstChild(); n != nil; n = n.NextSibling() {
+ if p, ok := n.(*ast.Paragraph); ok {
+ d := plain(p, src)
+ if len(d) > 180 {
+ d = d[:strings.LastIndex(d[:180], " ")] + "…"
+ }
+ return d
+ }
+ }
+ return ""
+}
+
+// rawAsText shows inline HTML as text: the guides write placeholders such as
+// , never markup.
+type rawAsText struct{}
+
+func (rawAsText) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer) {
+ reg.Register(ast.KindRawHTML, func(w util.BufWriter, src []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
+ if !entering {
+ return ast.WalkContinue, nil
+ }
+ raw := n.(*ast.RawHTML)
+ for i := 0; i < raw.Segments.Len(); i++ {
+ seg := raw.Segments.At(i)
+ _, _ = w.WriteString(template.HTMLEscapeString(string(seg.Value(src))))
+ }
+ return ast.WalkContinue, nil
+ })
+}
diff --git a/scripts/sitedocs/page.html b/scripts/sitedocs/page.html
new file mode 100644
index 0000000..21d03b9
--- /dev/null
+++ b/scripts/sitedocs/page.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ {{.Title}} · Portplane docs
+ {{with .Description}}{{end}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/site/app-dark.webp b/site/app-dark.webp
new file mode 100644
index 0000000..aeff17c
Binary files /dev/null and b/site/app-dark.webp differ
diff --git a/site/app-light.webp b/site/app-light.webp
new file mode 100644
index 0000000..8ccc2d4
Binary files /dev/null and b/site/app-light.webp differ
diff --git a/site/app.js b/site/app.js
index 2e0f7c4..842a824 100644
--- a/site/app.js
+++ b/site/app.js
@@ -1,56 +1,236 @@
-// Picks the right download for the visitor and wires the install tabs.
+// Fills the download lists, picks the right build for the visitor and wires
+// the install tabs. The lists render at once from VERSION (kept in step by
+// release-please), then the GitHub API fills in sizes and any newer release.
(function () {
"use strict";
const repo = "akamachinecode/portplane";
+ const VERSION = "0.5.0"; // x-release-please-version
- function detect() {
+ // Every build of a release, in the order each card shows them. `name`
+ // spells the file for a version; `match` finds it among the API's assets.
+ const BUILDS = [
+ { os: "darwin", arch: "arm64", group: "App", label: "Apple silicon", kind: "Disk image", ext: ".dmg", name: (v) => `portplane_${v}_darwin_arm64.dmg`, match: /_darwin_arm64\.dmg$/ },
+ { os: "darwin", arch: "amd64", group: "App", label: "Intel", kind: "Disk image", ext: ".dmg", name: (v) => `portplane_${v}_darwin_amd64.dmg`, match: /_darwin_amd64\.dmg$/ },
+ { os: "darwin", arch: "arm64", group: "Command line", label: "Apple silicon", kind: "Archive", ext: ".tar.gz", name: (v) => `portplane_${v}_darwin_arm64.tar.gz`, match: /_darwin_arm64\.tar\.gz$/ },
+ { os: "darwin", arch: "amd64", group: "Command line", label: "Intel", kind: "Archive", ext: ".tar.gz", name: (v) => `portplane_${v}_darwin_amd64.tar.gz`, match: /_darwin_amd64\.tar\.gz$/ },
+ { os: "linux", arch: "amd64", distro: "deb", group: "Debian, Ubuntu", label: "x86-64", kind: "Package", ext: ".deb", name: (v) => `portplane_${v}_amd64.deb`, match: /_amd64\.deb$/ },
+ { os: "linux", arch: "arm64", distro: "deb", group: "Debian, Ubuntu", label: "ARM64", kind: "Package", ext: ".deb", name: (v) => `portplane_${v}_arm64.deb`, match: /_arm64\.deb$/ },
+ { os: "linux", arch: "amd64", distro: "rpm", group: "Fedora, RHEL, openSUSE", label: "x86-64", kind: "Package", ext: ".rpm", name: (v) => `portplane-${v}-1.x86_64.rpm`, match: /\.x86_64\.rpm$/ },
+ { os: "linux", arch: "arm64", distro: "rpm", group: "Fedora, RHEL, openSUSE", label: "ARM64", kind: "Package", ext: ".rpm", name: (v) => `portplane-${v}-1.aarch64.rpm`, match: /\.aarch64\.rpm$/ },
+ { os: "linux", arch: "amd64", group: "Any distribution", label: "x86-64", kind: "Archive", ext: ".tar.gz", name: (v) => `portplane_${v}_linux_amd64.tar.gz`, match: /_linux_amd64\.tar\.gz$/ },
+ { os: "linux", arch: "arm64", group: "Any distribution", label: "ARM64", kind: "Archive", ext: ".tar.gz", name: (v) => `portplane_${v}_linux_arm64.tar.gz`, match: /_linux_arm64\.tar\.gz$/ },
+ { os: "windows", arch: "amd64", group: "App", label: "x64", kind: "Archive", ext: ".zip", name: (v) => `portplane_${v}_windows_amd64.zip`, match: /_windows_amd64\.zip$/ },
+ { os: "windows", arch: "arm64", group: "App", label: "ARM64", kind: "Archive", ext: ".zip", name: (v) => `portplane_${v}_windows_arm64.zip`, match: /_windows_arm64\.zip$/ },
+ ];
+ const OS_NAMES = { darwin: "macOS", linux: "Linux", windows: "Windows" };
+ const DOWNLOAD_ICON = '';
+
+ // ---- what is the visitor on ----
+
+ function detectOS() {
const ua = navigator.userAgent || "";
const platform = (navigator.userAgentData && navigator.userAgentData.platform) || navigator.platform || "";
- if (/Win/i.test(platform) || /Windows/i.test(ua)) return { os: "windows", tab: "windows" };
- if (/Mac/i.test(platform) || /Mac OS X/i.test(ua)) return { os: "darwin", tab: "mac" };
- if (/Linux/i.test(platform) || /Linux/i.test(ua)) return { os: "linux", tab: "linux" };
- return { os: "", tab: "mac" };
+ if (/Android|iPhone|iPad|iPod/i.test(ua)) return "";
+ if (/Win/i.test(platform) || /Windows/i.test(ua)) return "windows";
+ if (/Mac/i.test(platform) || /Mac OS X/i.test(ua)) return "darwin";
+ if (/Linux|X11|CrOS/i.test(platform) || /Linux/i.test(ua)) return "linux";
+ return "";
}
- function selectTab(name) {
- document.querySelectorAll(".tabs button").forEach((b) => b.setAttribute("aria-selected", String(b.dataset.os === name)));
- document.querySelectorAll(".panel").forEach((p) => { p.hidden = p.dataset.os !== name; });
+ function detectDistro() {
+ const ua = navigator.userAgent || "";
+ if (/Fedora|Red Hat|CentOS|openSUSE|SUSE/i.test(ua)) return "rpm";
+ if (/Ubuntu|Debian|Mint/i.test(ua)) return "deb";
+ return "";
}
- async function pickDownload(os) {
- const link = document.getElementById("download");
- const note = document.getElementById("download-note");
- if (!os) return;
+ // Browsers hide the CPU. Chromium tells it on request; elsewhere the GPU's
+ // name gives Apple silicon away ("Apple M2", "Apple GPU"). Unknown: arm64
+ // on a Mac (most Macs sold since 2020), amd64 elsewhere.
+ async function detectArch(os) {
try {
- const res = await fetch("https://api.github.com/repos/" + repo + "/releases/latest", { headers: { Accept: "application/vnd.github+json" } });
- if (!res.ok) return;
- const rel = await res.json();
- const assets = rel.assets || [];
- // Apple silicon cannot be detected reliably from a browser: default to
- // arm64, the common case, and name the other build.
- const wanted = {
- darwin: [/_darwin_arm64\.dmg$/, /_darwin_arm64\.tar\.gz$/],
- linux: [/_linux_amd64\.tar\.gz$/],
- windows: [/_windows_amd64\.zip$/],
- }[os];
- for (const re of wanted) {
- const a = assets.find((x) => re.test(x.name));
- if (a) {
- link.href = a.browser_download_url;
- link.textContent = "Download " + rel.tag_name + " for " + { darwin: "macOS", linux: "Linux", windows: "Windows" }[os];
- note.textContent = os === "darwin"
- ? "For Apple silicon. Intel Macs: pick the amd64 build on the releases page."
- : "Other builds and checksums are on the releases page.";
- return;
+ if (navigator.userAgentData && navigator.userAgentData.getHighEntropyValues) {
+ const v = await navigator.userAgentData.getHighEntropyValues(["architecture"]);
+ if (v.architecture === "arm") return "arm64";
+ if (v.architecture === "x86") return os === "darwin" ? gpuArch() || "amd64" : "amd64";
+ }
+ } catch (e) { /* not allowed: fall through */ }
+ if (os === "darwin") return gpuArch() || "arm64";
+ if (/aarch64|arm64/i.test(navigator.userAgent || "")) return "arm64";
+ return "amd64";
+ }
+
+ function gpuArch() {
+ try {
+ const gl = document.createElement("canvas").getContext("webgl");
+ const ext = gl && gl.getExtension("WEBGL_debug_renderer_info");
+ const name = ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : "";
+ if (/Apple (M\d|GPU)/i.test(name)) return "arm64";
+ if (/Intel|AMD|Radeon|NVIDIA/i.test(name)) return "amd64";
+ } catch (e) { /* no WebGL */ }
+ return "";
+ }
+
+ // ---- rendering ----
+
+ function el(tag, attrs, html) {
+ const n = document.createElement(tag);
+ for (const k in attrs || {}) n.setAttribute(k, attrs[k]);
+ if (html != null) n.innerHTML = html;
+ return n;
+ }
+
+ function size(bytes) {
+ if (!bytes) return "";
+ return bytes >= 1e6 ? (bytes / 1e6).toFixed(1) + " MB" : Math.round(bytes / 1e3) + " KB";
+ }
+
+ function downloadURL(tag, name) {
+ return `https://github.com/${repo}/releases/download/${tag}/${name}`;
+ }
+
+ // release: { tag, version, assets: name -> {url, size} | null }
+ function render(release, pick) {
+ document.querySelectorAll(".platform").forEach((card) => {
+ const os = card.dataset.os;
+ const list = card.querySelector(".files");
+ list.textContent = "";
+ card.classList.toggle("mine", pick && pick.os === os);
+ let group = "";
+ for (const b of BUILDS.filter((x) => x.os === os)) {
+ const file = resolve(release, b);
+ if (!file) continue;
+ if (b.group !== group) {
+ group = b.group;
+ list.appendChild(el("li", { class: "group" }, group));
}
+ const mine = pick && pick.build === b;
+ const meta = [b.kind + " · " + b.ext, size(file.size)].filter(Boolean).join(" · ");
+ const a = el("a", { class: "file" + (mine ? " recommended" : ""), href: file.url, download: "" },
+ `${b.label}${mine ? ' For this computer' : ""}` +
+ `${meta}${DOWNLOAD_ICON}`);
+ a.setAttribute("aria-label", `Download ${OS_NAMES[os]} ${b.label} ${b.ext}${file.size ? ", " + size(file.size) : ""}`);
+ const li = el("li");
+ li.appendChild(a);
+ list.appendChild(li);
}
- } catch (e) {
- /* offline or rate-limited: keep the link to the releases page */
+ });
+ }
+
+ function resolve(release, b) {
+ if (release.assets) {
+ const name = Object.keys(release.assets).find((n) => b.match.test(n));
+ return name ? { name, ...release.assets[name] } : null;
}
+ const name = b.name(release.version);
+ return { name, url: downloadURL(release.tag, name), size: 0 };
+ }
+
+ function choose(os, arch, distro) {
+ if (!os) return null;
+ const own = BUILDS.filter((b) => b.os === os && b.arch === arch);
+ // Linux without a known distribution: point at the card, not at a guess.
+ if (os === "linux") return { os, arch, build: distro ? own.find((b) => b.distro === distro) || null : null };
+ return own[0] ? { os, arch, build: own[0] } : null;
+ }
+
+ function renderHero(release, pick) {
+ const link = document.getElementById("hero-download");
+ const label = document.getElementById("hero-download-label");
+ const note = document.getElementById("hero-download-note");
+ if (!pick) return;
+ const b = pick.build;
+ if (!b) {
+ link.href = "#download-linux";
+ label.textContent = "Download for Linux";
+ note.innerHTML = `v${release.version} for ${pick.arch === "arm64" ? "ARM64" : "x86-64"}: .deb for Debian and Ubuntu, .rpm for Fedora and openSUSE, or an archive for any distribution.`;
+ return;
+ }
+ const file = resolve(release, b);
+ if (!file) return;
+ link.href = file.url;
+ label.textContent = "Download for " + OS_NAMES[pick.os];
+ const extra = { darwin: b.label + " · ", linux: b.label + " · ", windows: "Beta · " + b.label + " · " }[pick.os];
+ note.innerHTML = `${extra}v${release.version} · ${b.ext}${file.size ? " · " + size(file.size) : ""}. Not your computer? See every build.`;
+ }
+
+ function renderMeta(release) {
+ const date = release.date ? new Date(release.date).toLocaleDateString("en", { year: "numeric", month: "short", day: "numeric" }) : "";
+ const notes = `https://github.com/${repo}/releases/tag/${release.tag}`;
+ document.getElementById("release-meta").innerHTML =
+ `Version ${release.version}${date ? ", released " + date : ""}. What's new`;
+ const pill = document.getElementById("release-pill");
+ pill.href = notes;
+ document.getElementById("release-pill-text").textContent = `v${release.version} is out${date ? " · " + date : ""}`;
+ document.getElementById("checksums").href = downloadURL(release.tag, "checksums.txt");
+ document.getElementById("signature").href = downloadURL(release.tag, "checksums.txt.sigstore.json");
+ }
+
+ async function latest() {
+ const res = await fetch(`https://api.github.com/repos/${repo}/releases/latest`, { headers: { Accept: "application/vnd.github+json" } });
+ if (!res.ok) throw new Error(String(res.status));
+ const rel = await res.json();
+ const assets = {};
+ for (const a of rel.assets || []) assets[a.name] = { url: a.browser_download_url, size: a.size };
+ return { tag: rel.tag_name, version: rel.tag_name.replace(/^v/, ""), date: rel.published_at, assets };
+ }
+
+ // ---- install tabs and copy buttons ----
+
+ function selectTab(name, focus) {
+ document.querySelectorAll(".tabs button").forEach((b) => {
+ const on = b.dataset.tab === name;
+ b.setAttribute("aria-selected", String(on));
+ b.tabIndex = on ? 0 : -1;
+ if (on && focus) b.focus();
+ });
+ document.querySelectorAll(".cmd").forEach((p) => { p.hidden = p.dataset.tab !== name; });
+ }
+
+ function wireTabs(os) {
+ const tabs = Array.from(document.querySelectorAll(".tabs button"));
+ tabs.forEach((b, i) => {
+ b.addEventListener("click", () => selectTab(b.dataset.tab));
+ b.addEventListener("keydown", (e) => {
+ if (e.key !== "ArrowRight" && e.key !== "ArrowLeft") return;
+ const next = tabs[(i + (e.key === "ArrowRight" ? 1 : tabs.length - 1)) % tabs.length];
+ selectTab(next.dataset.tab, true);
+ });
+ });
+ selectTab(os === "windows" ? "windows" : "unix");
+ document.querySelectorAll(".copy").forEach((btn) => {
+ btn.addEventListener("click", async () => {
+ const text = btn.parentElement.querySelector("code").textContent;
+ try {
+ await navigator.clipboard.writeText(text);
+ btn.textContent = "Copied";
+ btn.classList.add("done");
+ setTimeout(() => { btn.textContent = "Copy"; btn.classList.remove("done"); }, 1600);
+ } catch (e) { /* clipboard blocked: the command stays selectable */ }
+ });
+ });
+ }
+
+ // ---- start ----
+
+ async function main() {
+ const os = detectOS();
+ wireTabs(os);
+ let release = { tag: "v" + VERSION, version: VERSION, date: "", assets: null };
+ let pick = os ? choose(os, os === "darwin" ? "arm64" : "amd64", detectDistro()) : null;
+ render(release, pick);
+ renderHero(release, pick);
+
+ const [arch, fresh] = await Promise.all([
+ os ? detectArch(os) : Promise.resolve(""),
+ latest().catch(() => null), // offline or rate-limited: keep VERSION's links
+ ]);
+ if (fresh) release = fresh;
+ pick = os ? choose(os, arch, detectDistro()) : null;
+ render(release, pick);
+ renderHero(release, pick);
+ renderMeta(release);
}
- const d = detect();
- selectTab(d.tab);
- document.querySelectorAll(".tabs button").forEach((b) => b.addEventListener("click", () => selectTab(b.dataset.os)));
- pickDownload(d.os);
+ main();
})();
diff --git a/site/docs.css b/site/docs.css
new file mode 100644
index 0000000..3e97f06
--- /dev/null
+++ b/site/docs.css
@@ -0,0 +1,83 @@
+/* The documentation pages (made by scripts/sitedocs). Builds on style.css. */
+
+.brand-sub { color: var(--text-3); font-weight: 510; padding-left: 9px; margin-left: 1px; border-left: 1px solid var(--border-strong); }
+.top nav a[aria-current="page"] { color: var(--text); }
+
+.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: 40px; align-items: start; }
+.docs-page .wrap { max-width: 1340px; }
+@media (min-width: 1280px) { .docs-layout { grid-template-columns: 200px minmax(0, 1fr) 220px; } }
+@media (min-width: 1280px) { .prose { max-width: 740px; } }
+
+/* sidebar */
+.sidebar { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; font-size: 0.9rem; }
+.side-group + .side-group { margin-top: 22px; }
+.side-title { margin: 0 0 6px; padding: 0 10px; font-size: 0.72rem; font-weight: 510; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
+.sidebar ul, .toc ul { list-style: none; margin: 0; padding: 0; }
+.sidebar a { display: block; padding: 5px 10px; border-radius: 7px; text-decoration: none; color: var(--text-2); transition: background 0.12s, color 0.12s; }
+.sidebar a:hover { background: var(--surface-hover); color: var(--text); }
+.sidebar a[aria-current="page"] { background: var(--surface-2); color: var(--text); font-weight: 510; }
+.sidebar .ext { color: var(--text-3); font-size: 0.8em; }
+
+/* on this page */
+.toc { display: none; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; font-size: 0.82rem; }
+@media (min-width: 1280px) { .toc { display: block; } }
+.toc .side-title { padding: 0; }
+.toc li a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--border); color: var(--text-3); text-decoration: none; line-height: 1.4; transition: color 0.12s, border-color 0.12s; }
+.toc li.sub a { padding-left: 22px; }
+.toc li a:hover { color: var(--text); }
+.toc li a.active { color: var(--accent-text); border-left-color: var(--accent); }
+
+/* the guide */
+.prose { min-width: 0; font-size: 0.97rem; line-height: 1.7; padding-bottom: 24px; }
+.prose > :first-child { margin-top: 0; }
+.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; font-variation-settings: "opsz" 32; }
+.prose h2 { font-size: 1.4rem; margin: 56px 0 12px; padding-top: 8px; }
+.prose h3 { font-size: 1.08rem; margin: 36px 0 8px; }
+.prose h2, .prose h3, .prose .question { scroll-margin-top: 80px; }
+.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: light-dark(#33353b, #c9cbd1); }
+.prose li { margin: 4px 0; }
+.prose li::marker { color: var(--text-3); }
+.prose strong { color: var(--text); font-weight: 590; }
+.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
+.prose a:hover { text-decoration-color: currentColor; }
+.prose code { font-size: 0.86em; }
+.prose blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 2px solid var(--accent); color: var(--text-2); }
+.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
+
+.prose .question { padding: 16px 0 0; margin: 0 0 16px; border-top: 1px solid var(--border); }
+.prose h1 + p + .question, .prose h1 + .question { border-top: 0; }
+
+.code { position: relative; margin: 0 0 20px; }
+.prose pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.6; font-size: 0.84rem; }
+.prose pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
+.code .copy { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.15s; }
+.code:hover .copy, .code .copy:focus-visible, .code .copy.done { opacity: 1; }
+@media (hover: none) { .code .copy { opacity: 1; } }
+
+.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 20px; font-size: 0.88rem; max-width: 100%; }
+.prose th, .prose td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
+.prose th { color: var(--text-3); font-weight: 510; font-size: 0.8rem; }
+
+.page-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); }
+.page-foot .edit { font-size: 0.85rem; color: var(--text-3); text-decoration: none; }
+.page-foot .edit:hover { color: var(--text); }
+.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
+.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 510; transition: border-color 0.15s; }
+.pager a:hover { border-color: var(--border-strong); }
+.pager a span { font-size: 0.78rem; color: var(--text-3); font-weight: 400; }
+.pager .next { grid-column: 2; text-align: right; }
+
+.docs-page footer:last-of-type { margin-top: 48px; }
+
+@media (max-width: 860px) {
+ .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
+ /* the sidebar becomes a row of pages under the header */
+ .sidebar { position: sticky; top: 56px; z-index: 5; max-height: none; overflow-x: auto; overflow-y: hidden; display: flex; gap: 2px; margin: 0 -16px 24px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); scrollbar-width: none; }
+ .sidebar::-webkit-scrollbar { display: none; }
+ .side-group, .side-group + .side-group { margin: 0; }
+ .side-group ul { display: flex; gap: 2px; }
+ .side-title, .sidebar a:has(.ext) { display: none; }
+ .sidebar a { white-space: nowrap; }
+ .prose h2, .prose h3, .prose .question { scroll-margin-top: 120px; }
+ .brand-sub { display: none; }
+}
diff --git a/site/docs.js b/site/docs.js
new file mode 100644
index 0000000..2c9e4df
--- /dev/null
+++ b/site/docs.js
@@ -0,0 +1,42 @@
+// The documentation pages: copy buttons on code blocks and the current
+// section highlighted in "On this page".
+(function () {
+ "use strict";
+
+ document.querySelectorAll(".prose pre").forEach((pre) => {
+ const box = document.createElement("div");
+ box.className = "code";
+ pre.replaceWith(box);
+ box.appendChild(pre);
+ const btn = document.createElement("button");
+ btn.type = "button";
+ btn.className = "copy";
+ btn.textContent = "Copy";
+ btn.setAttribute("aria-label", "Copy code");
+ btn.addEventListener("click", async () => {
+ try {
+ await navigator.clipboard.writeText(pre.innerText.replace(/\n$/, ""));
+ btn.textContent = "Copied";
+ btn.classList.add("done");
+ setTimeout(() => { btn.textContent = "Copy"; btn.classList.remove("done"); }, 1600);
+ } catch (e) { /* clipboard blocked: the code stays selectable */ }
+ });
+ box.appendChild(btn);
+ });
+
+ const links = Array.from(document.querySelectorAll(".toc a"));
+ const targets = links.map((a) => document.getElementById(decodeURIComponent(a.hash.slice(1)))).filter(Boolean);
+ if (!targets.length || !("IntersectionObserver" in window)) return;
+ const visible = new Set();
+ const mark = () => {
+ // the first section on screen, or the last one scrolled past
+ let current = targets.find((t) => visible.has(t));
+ if (!current) current = targets.filter((t) => t.getBoundingClientRect().top < 100).pop();
+ links.forEach((a) => a.classList.toggle("active", current && a.hash === "#" + current.id));
+ };
+ const io = new IntersectionObserver((entries) => {
+ entries.forEach((e) => (e.isIntersecting ? visible.add(e.target) : visible.delete(e.target)));
+ mark();
+ }, { rootMargin: "-72px 0px -60% 0px" });
+ targets.forEach((t) => io.observe(t));
+})();
diff --git a/site/fonts/LICENSE-geist-mono.txt b/site/fonts/LICENSE-geist-mono.txt
new file mode 100644
index 0000000..2e4aef1
--- /dev/null
+++ b/site/fonts/LICENSE-geist-mono.txt
@@ -0,0 +1,93 @@
+Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/site/fonts/LICENSE-inter.txt b/site/fonts/LICENSE-inter.txt
new file mode 100644
index 0000000..40589da
--- /dev/null
+++ b/site/fonts/LICENSE-inter.txt
@@ -0,0 +1,93 @@
+Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/site/fonts/geist-mono.woff2 b/site/fonts/geist-mono.woff2
new file mode 100644
index 0000000..0750682
Binary files /dev/null and b/site/fonts/geist-mono.woff2 differ
diff --git a/site/fonts/inter.woff2 b/site/fonts/inter.woff2
new file mode 100644
index 0000000..b0d0e2e
Binary files /dev/null and b/site/fonts/inter.woff2 differ
diff --git a/site/index.html b/site/index.html
index eac7d57..55847ed 100644
--- a/site/index.html
+++ b/site/index.html
@@ -4,106 +4,185 @@
Portplane: every dev server, on every machine, in one window
-
+
+
+
+
+
+
+
- Portplane
-
+
Every dev server, on every machine, in one window.
-
See what is running across all your project folders and your other machines over SSH. Open each app at a stable https://<name>.localhost URL, and start or stop it with a click. No logs, no terminals: the state of things at a glance.
Every dev server, on every machine, in one window.
+
See what is running across all your project folders and your other machines over SSH. Open each app at a stable https://<name>.localhost address and start or stop it with a click.
Free and open source under Apache-2.0. Downloads come from GitHub Releases, with signed checksums.
+
Free and open source under Apache-2.0. Every build has signed checksums.
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
+
+
See
-
Every app's state (on, starting, failed or off), its stable URL and the port behind it, grouped by project and git worktree. Ports opened by anything else show up too.
-
-
+
Every app's state (on, starting, failed or off), its address and the port behind it, grouped by project and git worktree. Ports opened by anything else show up too.
+
+
+
Act
-
Start, stop or restart an app or a whole project. Open everything a project runs in one click. When something fails, the last lines of its output are one click away, ready to copy.
-
-
+
Start, stop or restart an app or a whole project. When something fails, its last lines of output are one click away, ready to copy.
+
+
+
Set up
-
Point Portplane at a folder. It finds the apps in your monorepos and worktrees, proposes a URL for each and writes plain dekit config after you review the diff.
-
-
+
Point Portplane at a folder. It finds the apps in your monorepos and worktrees, proposes an address for each and writes plain dekit config after you review it.
+
+
+
Reach
-
Add a machine from ~/.ssh/config or Tailscale. Its servers appear next to yours and open at https://<app>.<machine>.localhost through the SSH connection.
-
+
Add a machine from ~/.ssh/config or Tailscale. Its servers appear next to yours and open at https://<app>.<machine>.localhost over SSH.
+
+
-
+
Built on the tools you already use
-
Portplane does not run your servers and does not replace anything. It sits on top of two small tools and keeps their config plain and yours.
+ Portplane
+ Finds your projects, shows them all in one place, reaches other machines and sets everything up.
+
+
Local-first. No accounts, no cloud, no telemetry.
-
No listener on your network. The UI lives on loopback; other machines are reached only over SSH, with your keys.
-
No lock-in. Generated config is plain dekit YAML you can keep using without Portplane.
+
Nothing listening on your network. The UI lives on loopback; other machines are reached only over SSH, with your keys.
+
No lock-in. The config it writes is plain dekit YAML you can keep using without Portplane.
-
-
Install
-
-
-
-
+
+
+
Download
+
The latest release, straight from GitHub Releases.
-
-
Download the .dmg for your Mac (Apple silicon: arm64, Intel: amd64) and drag Portplane to Applications. It lives in the menu bar. Or install the command line:
-
curl -fsSL https://akamachinecode.github.io/portplane/install.sh | sh
-
Portplane is not notarized by Apple. The first time you open the app, macOS blocks it: open System Settings → Privacy & Security and choose Open Anyway. The terminal install is not affected.
+
+
+
+
+
+
+
macOS
+ macOS 12 or later
+
+
+
Not notarized by Apple: the first time you open it, go to System Settings → Privacy & Security and choose Open Anyway.
+
+
+
+
Linux
+ WebKitGTK 6.0
+
+
+
The .deb and .rpm add Portplane to your applications menu and pull in WebKitGTK.
+
+
+
+
Windows Beta
+ Windows 10 or 11
+
+
+
Not code-signed: if SmartScreen warns you, choose More info → Run anyway.
+
-
-
curl -fsSL https://akamachinecode.github.io/portplane/install.sh | sh
-
Or download the .deb or .rpm from the latest release.
The script checks the SHA-256 of what it downloads, and the signature too when cosign is installed. Then open Portplane: its guided setup installs dekit and portless for you. Details in the install guide.
-
Then add a folder and open the window:
-
portplane folders add ~/code
-portplane
-
You also need dekit and portless; Portplane tells you what is missing and the exact command to install it. Every download can be verified: see the install guide.