> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# @nanoforge-dev/common

[![NanoForge](https://raw.githubusercontent.com/NanoForge-dev/Engine/main/.github/logo.png)](https://github.com/NanoForge-dev)

[![npm version](https://img.shields.io/npm/v/@nanoforge-dev/common.svg?maxAge=3600)](https://www.npmjs.com/package/@nanoforge-dev/common)

[![npm downloads](https://img.shields.io/npm/dt/@nanoforge-dev/common.svg?maxAge=3600)](https://www.npmjs.com/package/@nanoforge-dev/common)

[![Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml/badge.svg)](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml)

[![Last commit](https://img.shields.io/github/last-commit/NanoForge-dev/Engine.svg?logo=github\&logoColor=ffffff\&path=packages%2Fcommon)](https://github.com/NanoForge-dev/Engine/commits/main/packages/common)

[![Contributors](https://img.shields.io/github/contributors/NanoForge-dev/Engine.svg?maxAge=3600\&logo=github\&logoColor=fff\&color=00c7be)](https://github.com/NanoForge-dev/Engine/graphs/contributors)

## About

`@nanoforge-dev/common` is library with common interfaces and utilities used by Nanoforge Engine.

## Installation

**Node.js 26 or newer is required.**

```sh theme={null}
npm install @nanoforge-dev/common
yarn add @nanoforge-dev/common
pnpm add @nanoforge-dev/common
bun add @nanoforge-dev/common
```

## Links

* [GitHub][source]
* [npm][npm]

## Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
[documentation][documentation].\
See [the contribution guide][contributing] if you'd like to submit a PR.

## Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to ask questions in [discussions][discussions].

[documentation]: https://github.com/NanoForge-dev/Engine

[discussions]: https://github.com/NanoForge-dev/Engine/discussions

[source]: https://github.com/NanoForge-dev/Engine/tree/main/packages/common

[npm]: https://www.npmjs.com/package/@nanoforge-dev/common

[contributing]: https://github.com/NanoForge-dev/Engine/blob/main/.github/CONTRIBUTING.md

## Classes

* [Library](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/Library.md)
* [NfDuplicateLibraryException](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/NfDuplicateLibraryException.md)
* [NfException](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/NfException.md)
* [NfFetchException](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/NfFetchException.md)
* [NfFile](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/NfFile.md)
* [NfNotFound](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/NfNotFound.md)
* [NfNotInitializedException](https://docs.nanoforge.eu/references/engine/3.0.0/common/classes/NfNotInitializedException.md)

## Interfaces

* [AppContext](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/AppContext.md)
* [AssetContext](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/AssetContext.md)
* [ClientRunOptions](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/ClientRunOptions.md)
* [Context](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/Context.md)
* [EventEmitter](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/EventEmitter.md)
* [InitContext](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/InitContext.md)
* [LibraryRelationships](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/LibraryRelationships.md)
* [RunOptions](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/RunOptions.md)
* [ServerRunOptions](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/ServerRunOptions.md)
* [TickObserver](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/TickObserver.md)
* [VarsContext](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/VarsContext.md)
* [ViewportContext](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/ViewportContext.md)
* [ViewportOptions](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/ViewportOptions.md)
* [ViewportState](https://docs.nanoforge.eu/references/engine/3.0.0/common/interfaces/ViewportState.md)

## Type Aliases

* [ViewportFit](https://docs.nanoforge.eu/references/engine/3.0.0/common/type-aliases/ViewportFit.md)

## Variables

* [DEFAULT\_LIBRARY\_RELATIONSHIPS](https://docs.nanoforge.eu/references/engine/3.0.0/common/variables/DEFAULT_LIBRARY_RELATIONSHIPS.md)

## Functions

* [computeViewport](https://docs.nanoforge.eu/references/engine/3.0.0/common/functions/computeViewport.md)
* [defineLibraryKey](https://docs.nanoforge.eu/references/engine/3.0.0/common/functions/defineLibraryKey.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.