Introduction
42space is a portable development environment for 42 School machines.
On a 42 cluster, your HOME follows you to every machine but is small (about 4 GB), while /goinfre is large but belongs to one machine and can be wiped at any time. Installing tools in HOME fills your quota; installing them in goinfre means doing it again on every machine.
42space splits the two: HOME keeps a small, git-tracked description of your setup, and goinfre holds the actual installs. Log into any machine and 42space restores everything there in the background, without slowing down your shell.
What it manages
- Tools: node, go and nvim from built-in recipes, any release archive or binary by URL, global npm packages, uv tools, Python interpreters and script recipes for everything else.
- VS Code extensions: kept in goinfre, with release channels and profiles.
- Projects: git repos in goinfre, remembered by their remote, with their secret files kept in HOME.
- Environment: variables and PATH entries, with per-machine paths.
- HOME quota: caches relocated to goinfre and a report of what fills HOME.
Principles
- No sudo, ever. Everything installs as your user. Scripts that call
sudo,su,pkexecordoasare refused. - Nothing is replayed blindly. Detected changes become recipes only after you accept them, and scripts run only when their exact content is approved.
- Pinned. Downloads are checked against a sha256, and npm, uv and VS Code packages resolve to exact versions in a lock file.
- Fast shells. The shell hook reads two files and sources one. Python never runs at shell start unless the machine is out of date, and then only in the background.
- Standard library only. 42space is a single-file Python 3.11+ app with no dependencies.
Next: install it.