open-index/open-npm huggingface dataset:
npm package: @primitiv/audio
Description: Primitiv audio module
Author: THP Software
Latest version: 0.23.0

# @primitiv/audio

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/cli
Description: CLI tool for scaffolding Primitiv game projects
Author: THP Software
Latest version: 0.23.0

# @primitiv/cli

> **Status: Prototype** - API is unstable and may change between minor versions.

CLI tool for scaffolding Primitiv game projects.

## Installation

```bash
# Run directly (no install) — always fetches the latest version
npx @primitiv/cli@latest create my-game

# Or install globally
npm i -g @primitiv/cli@latest
```

## Usage

```bash
primitiv create [project-name]
```

You will be prompted to choose a template:

| Template | Description |
|---|---|
| **standalone** | Everything in the browser, single player |
| **fullstack** | Client + Server in the same project |
| **client** | Connected client to a remote server |
| **server** | Headless server only |

For non-standalone templates, you will also choose a transport:

| Transport | Description |
|---|---|
| **uws** | WebSocket via uWebSockets.js (simplest) |
| **webrtc-direct** | WebRTC with direct signaling |
| **webrtc-relay** | WebRTC with relay signaling |
| **webrtc-lite** | WebRTC ICE-lite (single UDP port) |

## Example

```bash
npx @primitiv/cli@latest create my-game
# → Select: standalone
# → Project created!

# For nightly version
npx @primitiv/cli@nightly create my-game

cd my-game
pnpm install
pnpm dev
```

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/client
Description: Primitiv client runtime - browser-side renderer, audio, input and networking
Author: THP Software
Latest version: 0.23.0

# @primitiv/client

> **Status: Prototype** - API is unstable and may change between minor versions.

Browser-side runtime for the Primitiv engine. Provides rendering (Canvas 2D & WebGL), audio, input handling and networking for multiplayer games.

## Installation

```bash
pnpm add @primitiv/engine @primitiv/client
```

## Quick start

```ts
import { ClientRuntime } from '@primitiv/client';
```

## Subpath exports

```ts
import { Engine, Display, User }  from '@primitiv/client/core';
import { Vector2, ScalingMode }   from '@primitiv/client/types';
import { NetworkClient }          from '@primitiv/client/network';
import { AudioEngine, SoundBank } from '@primitiv/client/audio';
import { Inputs, KeyboardInputs } from '@primitiv/client/input';
import { Terminal2D, TerminalGL } from '@primitiv/client/render';
```

## Bundle size

Full client runtime (`import { ClientRuntime } from "@primitiv/client"`):

| Format | Minified | Gzip | Brotli |
|--------|----------|------|--------|
| ESM | 253.7 KB | 70.0 KB | 58.7 KB |
| CJS | 254.2 KB | 70.3 KB | 58.9 KB |

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/core
Description: Primitiv core engine
Author: THP Software
Latest version: 0.23.0

# @primitiv/core

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/engine
Description: Primitiv engine - isomorphic game API for IApplication implementations
Author: THP Software
Latest version: 0.23.0

# @primitiv/engine

> **Status: Prototype** - API is unstable and may change between minor versions.

Isomorphic game API for the Primitiv engine. Provides public API and IApplication.

## Installation

```bash
pnpm add @primitiv/engine
```

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/input
Description: Primitiv input module
Author: THP Software
Latest version: 0.23.0

# @primitiv/input

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/logger
Description: Isomorphic structured logger for Primitiv (Node + Browser)
Author: THP Software
Latest version: 0.23.0

# @primitiv/logger

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/macro
Description: Primitiv macro layer engine - client-side declarative macro execution
Author: THP Software
Latest version: 0.23.0

# @primitiv/macro

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/network-client
Description: Primitiv network client
Author: THP Software
Latest version: 0.23.0

# @primitiv/network-client

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/network-common
Description: Primitiv network common module
Author: THP Software
Latest version: 0.23.0

# @primitiv/network-common

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/network-server
Description: Primitiv network server
Author: THP Software
Latest version: 0.23.0

# @primitiv/network-server

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/render
Description: Primitiv render module
Author: THP Software
Latest version: 0.23.0

# @primitiv/render

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/runtime-client
Description: Primitiv runtime client
Author: THP Software
Latest version: 0.23.0

# @primitiv/runtime-client

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/runtime-server
Description: Primitiv runtime server
Author: THP Software
Latest version: 0.23.0

# @primitiv/runtime-server

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/server
Description: Primitiv server runtime - authoritative game server for Node.js
Author: THP Software
Latest version: 0.23.0

# @primitiv/server

> **Status: Prototype** - API is unstable and may change between minor versions.

Authoritative game server runtime for the Primitiv engine. Runs on Node.js with uWebSockets.js and WebRTC data channels.

## Installation

```bash
pnpm add @primitiv/engine @primitiv/server
```

## Quick start

```ts
import { RuntimeServer } from '@primitiv/server';
```

## Subpath exports

```ts
import { Engine, Display, User } from '@primitiv/server/core';
import { Vector2, ScalingMode }  from '@primitiv/server/types';
import { NetworkServer }         from '@primitiv/server/network';
```

## Requirements

- Node.js >= 18.0.0

## Bundle size

Server JS runtime (`import { RuntimeServer } from "@primitiv/server"`):

| Format | Minified | Gzip | Brotli |
|--------|----------|------|--------|
| ESM | 106.1 KB | 30.7 KB | 26.2 KB |
| CJS | 106.8 KB | 31.0 KB | 26.5 KB |

Native dependencies (uWebSockets.js, node-datachannel): **~11.4 MB** per platform (prebuilt N-API binaries).

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).
npm package: @primitiv/types
Description: Type definitions for Primitiv
Author: THP Software
Latest version: 0.23.0

# @primitiv/types

> **Internal package** - This is an internal module of the [Primitiv Engine](https://primitivengine.com/).

For documentation, examples, and guides, visit **[primitivengine.com](https://primitivengine.com/)**.

## 📄 License

Apache-2.0 - See [LICENSE.txt](./LICENSE.txt).