---
title: Examples
description: Common xx build and task patterns.
---

# Examples

xx provides managed language tools and general command tasks.

- [Go builds](go.md): Build source files and package directories, set outputs and flags, and use the managed Go SDK directly.
- [Node.js tasks](nodejs.md): Install dependencies, run package scripts, invoke Node.js directly, and use npx.
- [Commands and environments](commands.md): Run project tools, define reusable environments, and organize multiple entrypoints.

Examples assume files are inside a project whose build entrypoints live in `.xx/`. Run `.xx/build.star` with:

```console
xx run build
```

Entrypoint names do not include `.xx/` or the file extension.

<!--
Sitemap

URL: https://withxx.dev/index.md
Title: xx
Description: Practical, reproducible builds without build-system ceremony

URL: https://withxx.dev/examples/commands.md
Title: Command Examples
Description: General command, environment, and entrypoint patterns.

URL: https://withxx.dev/examples/go.md
Title: Go Examples
Description: Common Go build patterns with managed SDKs.

URL: https://withxx.dev/examples/index.md
Title: Examples
Description: Common xx build and task patterns.

URL: https://withxx.dev/examples/nodejs.md
Title: Node.js Examples
Description: Common Node.js task patterns with a managed distribution.

URL: https://withxx.dev/load.md
Title: Loading Files
Description: Split xx configuration into local Starlark modules.

URL: https://withxx.dev/packages/go.md
Title: Go Package
Description: Provision an official Go SDK, run or install Go tools, and build Go binaries.

URL: https://withxx.dev/packages/nodejs.md
Title: Node.js Package
Description: Provision official Node.js distributions and run npm and npx tasks.

URL: https://withxx.dev/packages/os.md
Title: OS Package
Description: Run commands and construct isolated task environments.
-->
