npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@3dsource/types-unreal

v0.0.14

Published

TypeScript types for communication with Unreal Engine

Readme

@3dsource/types-unreal

A comprehensive collection of TypeScript type definitions for Unreal Engine integration. This library provides type safety for communication between web applications and Unreal Engine.

Overview

The types-unreal library offers:

  • Type definitions for Unreal Engine commands and responses
  • TypeScript interfaces for communication protocols
  • Type-safe interaction with Unreal Engine from web applications
  • Auto-generated types from Unreal Engine Commands API specifications

Installation

Prerequisites

  • Node.js 20+

Library Installation

The package has no peer dependencies:

npm install @3dsource/types-unreal

Usage

Basic Import

Import the types you need in your TypeScript files:

import type { FLoopBackCommand, MetaBoxCommandList, MetaBoxCommandPacket, UnrealCommands } from '@3dsource/types-unreal';

Available Types

The library provides the following key type categories:

  • Command Types — types for sending commands to Unreal Engine
  • Response Types — types for handling responses from Unreal Engine
  • Event Types — types for Unreal Engine events
  • Data Structure Types — types for complex data structures used in communication

Example Usage

import { MetaBoxCommand, type FLoopBackCommand, type MetaBoxCommandPacket } from '@3dsource/types-unreal';

// Type-safe command creation
const command: FLoopBackCommand = {
  command: MetaBoxCommand.FLoopBackCommand,
};

// Send command to Unreal Engine
function sendToUnreal(packet: MetaBoxCommandPacket): void {
  // Implementation
}

sendToUnreal(command);

Updating Types

Types in this package are auto-generated from the Unreal Engine Commands API. The parser is repository tooling installed at the workspace root; consumers of @3dsource/types-unreal do not need it.

Run generation commands from the repository root:

  • Production API → generates src/lib/struct.ts:
pnpm types-unreal:generate:commands:prod
  • QA API → generates src/lib/struct.qa.ts:
pnpm types-unreal:generate:commands:qa
  • Dev API → generates src/lib/struct.dev.ts:
pnpm types-unreal:generate:commands:dev

Only src/lib/struct.ts is exported by the package public API (src/public-api.ts). The QA/Dev structures are intended for development purposes and are not exported.

Integration with Angular

The generated packet types can be passed directly to UnrealCommunicatorService from @3dsource/angular-unreal-module:

import { inject } from '@angular/core';
import { UnrealCommunicatorService } from '@3dsource/angular-unreal-module';
import { MetaBoxCommand } from '@3dsource/types-unreal';

const unreal = inject(UnrealCommunicatorService);
unreal.sendCommandToUnreal({
  command: MetaBoxCommand.FLoopBackCommand,
});

Documentation

For detailed documentation of all available types, see the source code and comments in the type definition files.

Repository development

pnpm types-unreal:build
pnpm types-unreal:docs
pnpm types-unreal:release:patch

Generation fetches the selected remote Commands API and rewrites the matching struct*.ts file. Review that diff before building or releasing.

The release command performs verification, changes the package version and publishes the verified tarball to npm. tslib is the package's only runtime dependency.