A terminal-native SSH blog and CV for haseebmajid.dev
  • Go 49.6%
  • HTML 42.5%
  • Nix 4.7%
  • Python 2.6%
  • JavaScript 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot d9ca1f0dca
All checks were successful
CI / integration (push) Has been skipped
CI / e2e (push) Has been skipped
CI / lint (push) Successful in 20s
CI / unit (push) Successful in 19s
CI / ci (push) Successful in 0s
CI / build (push) Successful in 29s
Merge pull request 'fix(deps): update module golang.org/x/net to v0.63.0' (#10) from renovate/golang.org-x-net-0.x into main
2026-11-29 23:19:00 +00:00
.forgejo/workflows ci: add Forgejo Actions workflow 2026-11-29 16:53:35 +00:00
assets/art feat(assets): add pixel-art gopher terminal art 2026-11-18 09:59:30 +00:00
cmd fix(content): skip theme head in Hugo export so builds need no Sass 2026-11-25 17:03:17 +00:00
content work 2026-11-15 18:17:44 +00:00
docs/superpowers feat(tui): slick terminal UI — frame, selection bar, pills, gradient header, scrollbar, progress 2026-11-16 22:42:38 +00:00
hugo-export fix(content): skip theme head in Hugo export so builds need no Sass 2026-11-25 17:03:17 +00:00
internal fix(server): force true colour so the Catppuccin palette is not quantised 2026-11-16 22:42:38 +00:00
mock feat(mock): add shell, tmux and nvim variants of the lab style 2026-11-16 22:42:38 +00:00
nix fix(nix): emit single ExecStart line so systemd accepts the unit 2026-11-15 21:18:42 +00:00
.env.example feat: complete Go project boilerplate 2026-11-15 10:52:20 +00:00
.envrc work 2026-10-25 13:02:10 +00:00
.gitignore feat(mock): interactive TUI style lab with four switchable styles 2026-11-16 22:42:38 +00:00
.golangci.yml feat: complete Go project boilerplate 2026-11-15 10:52:20 +00:00
default.nix fix(nix): add dart-sass for hugo scss pipeline 2026-11-23 10:11:46 +00:00
flake.lock build: fetch reveal-hugo theme as a flake input instead of vendoring 2026-11-15 22:03:17 +00:00
flake.nix build: fetch reveal-hugo theme as a flake input instead of vendoring 2026-11-15 22:03:17 +00:00
go.mod Merge pull request 'fix(deps): update module golang.org/x/net to v0.63.0' (#10) from renovate/golang.org-x-net-0.x into main 2026-11-29 23:19:00 +00:00
go.sum Merge pull request 'fix(deps): update module golang.org/x/net to v0.63.0' (#10) from renovate/golang.org-x-net-0.x into main 2026-11-29 23:19:00 +00:00
gomod2nix.toml feat(tui): port the lab style from the mock to the Go TUI 2026-11-16 22:42:38 +00:00
README.md docs: add gopher art to README 2026-11-18 09:59:30 +00:00
renovate.json build(config): migrate config renovate.json 2026-11-29 16:57:43 +00:00
shell.nix feat: complete Go project boilerplate 2026-11-15 10:52:20 +00:00
Taskfile.yml work 2026-11-15 18:17:44 +00:00

Pixel-art gopher peeking over an SSH terminal

ssh.haseebmajid.dev

A terminal-native blog and CV for haseebmajid.dev, readable over SSH.

Content is a build-time snapshot: Hugo resolves publication, shortcodes, and URLs from a pinned checkout of the blog, and an offline Go tool normalizes that export into terminal-oriented Markdown. The server reads only the prepared snapshot — no Hugo, blog checkout, or network access at runtime.

Stack

Go, Wish v2, Bubble Tea v2, Lip Gloss v2, Goldmark, Hugo, gomod2nix, NixOS.

Layout

cmd/server        # SSH server (Wish + Bubble Tea)
cmd/content       # offline content preparation (Hugo export + normalize)
internal/server   # Wish setup, route parsing
internal/tui      # session-local Bubble Tea models
internal/content  # catalogue, search, HTML normalization
internal/markdown # Goldmark terminal rendering + sanitization
content/          # repository-owned home.md and cv.md
hugo-export/      # export-only Hugo overlay (JSON output per post)

Usage

Prepare content

go run ./cmd/content \
  -source ../blog \
  -output ./build/content \
  -hugo hugo \
  -clock 2026-11-15T00:00:00Z

Run

ssh-keygen -t ed25519 -N '' -f ./tmp/ssh_host_ed25519_key
go run ./cmd/server \
  -host 127.0.0.1 -port 23234 \
  -host-key ./tmp/ssh_host_ed25519_key \
  -content ./build/content

Then connect:

ssh -t -p 23234 localhost            # home
ssh -t -p 23234 localhost /cv        # CV
ssh -t -p 23234 localhost /blog      # catalogue + search
ssh -t -p 23234 localhost /blog/<id> # article

Nix

nix build .#default
nix develop  # Go + Hugo + gomod2nix

The package installs the server under bin/ssh-site-server and prepared content under share/ssh-site/. A reusable NixOS module is exposed as nixosModules.default (services.ssh-site).

Reproducibility note: the Hugo export resolves the blog's reveal-hugo theme module through go, which currently needs network access at build time. For fully offline builds, vendor the Hugo module (hugo mod vendor) or pre-fetch it into the Go module cache.

Tests

go test ./...