# Yarn Workspaces

**Canonical:** https://apis.io/apis/yarn-pkg/yarn-workspaces/  
**Provider:** Yarn — https://apis.io/providers/yarn-pkg/  
**Documentation:** https://yarnpkg.com/features/workspaces

Yarn Workspaces is one of 10 APIs that [Yarn](https://apis.io/providers/yarn-pkg/) publishes on the [APIs.io](https://apis.io/) network. This API exposes 1 JSON Schema definition. Tagged areas include Workspaces, Monorepo, JavaScript, and Package Manager. The published artifact set on APIs.io includes API documentation and 1 JSON Schema.

Yarn was the first package manager built specifically around workspaces. `yarn workspace`, `yarn workspaces foreach`, `yarn workspaces focus`, and `yarn workspaces list` provide first-class monorepo coordination — running commands inside a specific workspace, fanning out commands across all workspaces, installing a single workspace and its dependencies, and listing the workspace tree.

## Machine-readable artifacts (4)

- **Documentation** — https://yarnpkg.com/features/workspaces
- **Documentation** — https://yarnpkg.com/cli/workspaces/foreach
- **SourceCode** — https://github.com/yarnpkg/berry/tree/master/packages/plugin-workspace-tools
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/yarn-pkg/refs/heads/main/json-schema/yarn-pkg-workspace-schema.json

## Other Yarn APIs (9)

- [Yarn CLI](https://apis.io/apis/yarn-pkg/yarn-cli/)
- [Yarn Plug'n'Play](https://apis.io/apis/yarn-pkg/yarn-plug-n-play/)
- [Yarn Zero-Installs](https://apis.io/apis/yarn-pkg/yarn-zero-installs/)
- [Yarn Constraints](https://apis.io/apis/yarn-pkg/yarn-constraints/)
- [Yarn Protocols](https://apis.io/apis/yarn-pkg/yarn-protocols/)
- [Yarn Plugin API](https://apis.io/apis/yarn-pkg/yarn-plugin-api/)
- [Yarn Version (Release Workflow)](https://apis.io/apis/yarn-pkg/yarn-version/)
- [Yarn Patch](https://apis.io/apis/yarn-pkg/yarn-patch/)
- [Yarn DLX](https://apis.io/apis/yarn-pkg/yarn-dlx/)

## Tags

Workspaces, Monorepo, JavaScript, Package Manager

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/yarn-pkg/yarn-workspaces/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/yarn-pkg/.
