---
title: ":type()"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/selectors/pseudo-classes/type"
image: "https://docs.vlt.io/og/client/selectors/pseudo-classes/type"
lang: "en"
---

# :type()

The `:type()` pseudo-class matches packages by source, such as `registry`, `git`, or `file`.

Without an argument, `:type` matches types packages. `:type(orphan)` matches types packages whose target is missing from the graph. See [type definition associations](https://docs.vlt.io/client/selectors/pseudo-states.md#type-definition-associations).

## Syntax

```
:type(<type>)
```

### Available types

| Type        | Description                              |
| ----------- | ---------------------------------------- |
| `registry`  | Packages from npm or another registry    |
| `file`      | Local file dependencies (`file:../path`) |
| `git`       | Git repository dependencies              |
| `remote`    | Remote URL dependencies                  |
| `workspace` | Workspace packages in your monorepo      |

## Examples

### Find all git dependencies

```bash title="Terminal"
$ vlt query ':type(git)'
```

### Find all workspace dependencies

```bash title="Terminal"
$ vlt query ':type(workspace)'
```

### Find all file dependencies

```bash title="Terminal"
$ vlt query ':type(file)'
```

### What gets selected

Given:

```
my-app
├── react@18.2.0             ← type: registry
├── my-utils (workspace)     ← type: workspace
├── my-fork (git)            ← type: git
└── ../shared-lib (file)     ← type: file
```

| Query              | Selected      |
| ------------------ | ------------- |
| `:type(registry)`  | react         |
| `:type(workspace)` | my-utils      |
| `:type(git)`       | my-fork       |
| `:type(file)`      | ../shared-lib |

### Combining with other selectors

Find all non-registry dependencies:

```bash title="Terminal"
$ vlt query ':not(:type(registry))'
```

Find outdated git dependencies:

```bash title="Terminal"
$ vlt query ':type(git):outdated'
```

## See also

- [`:workspace`](https://docs.vlt.io/client/selectors/pseudo-states.md) — shorthand for matching workspaces
- [`:spec()`](https://docs.vlt.io/client/selectors/pseudo-classes/spec.md) — match by specifier string
