---
title: "@vltpkg/graph: browser — vlt docs"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/graph/browser"
image: "https://docs.vlt.io/og/client/api-reference/graph/browser"
lang: "en"
---

# browser

## Type Aliases

### LoadResult

```ts
type LoadResult = object;
```

Defined in: graph/src/transfer-data/load.ts:88

The returned object when loading a graph from a transfer data structure, including the graph itself, the spec options used to create it, and the security archive (if any).

#### Type declaration

| Name              | Type                                                                                                                        |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `graph`           | [`GraphLike`](https://docs.vlt.io/client/api-reference/types/reference.md#graphlike)                                        |
| `securityArchive` | \| [`SecurityArchive`](https://docs.vlt.io/client/api-reference/security-archive/browser.md#securityarchive) \| `undefined` |
| `specOptions`     | [`SpecOptionsFilled`](https://docs.vlt.io/client/api-reference/spec/module_index.md#specoptionsfilled)                      |

---

### TransferData

```ts
type TransferData = object;
```

Defined in: graph/src/transfer-data/load.ts:98

A data structure defining a complete graph to be transfered, including extra information to the lockfile such as project info and importers.

#### Type declaration

| Name                              | Type                                                                                            |
| --------------------------------- | ----------------------------------------------------------------------------------------------- |
| `importers`                       | `object`\[]                                                                                     |
| `lockfile`                        | [`LockfileData`](https://docs.vlt.io/client/api-reference/graph/module_index.md#lockfiledata-1) |
| `projectInfo`                     | `object`                                                                                        |
| `projectInfo.homedirRelativeRoot` | `string`                                                                                        |
| `projectInfo.root`                | `string`                                                                                        |
| `projectInfo.tools`?              | `string`\[]                                                                                     |
| `projectInfo.vltInstalled`?       | `boolean`                                                                                       |
| `securityArchive`?                | `any`                                                                                           |

## Variables

### lockfile

```ts
const lockfile: object;
```

Defined in: graph/src/browser.ts:15

#### Type declaration

| Name        | Type                                                                          |
| ----------- | ----------------------------------------------------------------------------- |
| `loadEdges` | (`graph`, `edges`, `options`, `cache`?) => `void`                             |
| `loadNodes` | (`graph`, `nodes`, `options`, `actual`?, `throwOnMissingManifest`?) => `void` |

---

### longDependencyTypes

```ts
const longDependencyTypes: Set<DependencyTypeLong>;
```

Defined in: types/src/index.ts:1647

A set of the possible long dependency type names, as used in `package.json` files.

---

### transfer

```ts
const transfer: object;
```

Defined in: graph/src/browser.ts:20

#### Type declaration

| Name   | Type                                                                                                   |
| ------ | ------------------------------------------------------------------------------------------------------ |
| `load` | (`transfered`) => [`LoadResult`](https://docs.vlt.io/client/api-reference/graph/browser.md#loadresult) |

## References

### asDependencyTypeShort

Re-exports [asDependencyTypeShort](https://docs.vlt.io/client/api-reference/graph/module_index.md#asdependencytypeshort)

### createVirtualRoot

Re-exports [createVirtualRoot](https://docs.vlt.io/client/api-reference/graph/module_index.md#createvirtualroot)

### getBooleanFlagsFromNum

Re-exports [getBooleanFlagsFromNum](https://docs.vlt.io/client/api-reference/graph/module_index.md#getbooleanflagsfromnum)

### shorten

Re-exports [shorten](https://docs.vlt.io/client/api-reference/graph/module_index.md#shorten)

### stringifyNode

Re-exports [stringifyNode](https://docs.vlt.io/client/api-reference/graph/module_index.md#stringifynode)

### VIRTUAL_ROOT_ID

Re-exports [VIRTUAL_ROOT_ID](https://docs.vlt.io/client/api-reference/graph/module_index.md#virtual_root_id)
