Install
Install Sourcey with npm, Homebrew, Docker or Nix. Pick the one your project already uses.
Sourcey CLI
The full Sourcey binary handles OpenAPI, MCP, Doxygen, godoc, rustdoc, MkDocs, and Markdown sources.
npm
Requires Node.js 22.22.2 or later, 24.15 or later, or 26.
npm install -g sourcey
sourcey initFor one-shot use without a global install:
npx sourcey init
npm install
npm run devStop the development server with Ctrl+C, then run npm run build to write the static site to dist/.
Homebrew
Works on macOS and Linuxbrew.
brew tap sourcey/tap
brew install sourcey
sourcey init
npm install
sourcey devThe formula installs Sourcey through Node under the hood, so it depends on node. If you already have Node, the npm path is a smaller install.
Docker
The official sourcey/sourcey image runs every CLI command. The image's WORKDIR is /docs and its ENTRYPOINT is sourcey, so the first argument after the image name becomes the subcommand.
Initialize a new project (interactive):
docker run --rm -it -v "$PWD":/docs sourcey/sourcey initInstall the generated project's dependencies inside the container:
docker run --rm -v "$PWD":/docs --entrypoint npm sourcey/sourcey installBuild:
docker run --rm -v "$PWD":/docs sourcey/sourcey buildRun the dev server. The container needs --host 0.0.0.0 so the dev server binds outside the loopback interface, and -p 4400:4400 to forward the port to the host:
docker run --rm -p 4400:4400 -v "$PWD":/docs sourcey/sourcey dev --host 0.0.0.0On Linux, files written by the container are owned by root by default. Pass --user "$(id -u):$(id -g)" to keep them owned by your user.
On Windows PowerShell, use ${PWD} instead of "$PWD".
Nix
Requires a Nix install with flakes enabled. The generated project also needs Node.js 22.22.2 or later, 24.15 or later, or 26, and npm for its local dependencies.
One-shot run:
nix run github:sourcey/sourceyPersistent install:
nix profile install github:sourcey/sourcey
sourcey init
npm install
sourcey devStandalone Go docs generator
For Go-only consumers without a JavaScript toolchain, sourcey-godoc ships as a separate native binary. It produces static Go docs sites or portable godoc.json snapshots; no Sourcey npm package required.
Go
go install github.com/sourcey/sourcey/go/sourcey-godoc/cmd/sourcey-godoc@latestHomebrew
brew tap sourcey/tap
brew install sourcey-godocScoop (Windows)
scoop bucket add sourcey https://github.com/sourcey/scoop-bucket
scoop install sourcey-godocLocal development
To work on Sourcey itself:
git clone https://github.com/sourcey/sourcey.git
cd sourcey
npm install
npm run build && npm test