# Tencent/puerts

PUER(普洱) Typescript. Let's write your game in UE or Unity with TypeScript.

Repository: https://github.com/Tencent/puerts
Canonical: https://ross.abutalabs.com/products/puerts
Language: C++
License: NOASSERTION
License Family: other
Topics: unity, typescript, javascript, v8, dotnet, unrealengine, nodejs, quickjs
Last push: 2026-08-25T08:58:41+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 77, longevity 100
- inputs: {"age_days": 2209, "days_push": 8, "days_rel": 154, "gap_med": 29, "n_releases_24m": 12}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6191, forks 858 (observed 2026-08-28T04:09:39.299067+00:00)

## What it is
PuerTS is a multi-language scripting solution from Tencent that embeds JavaScript/TypeScript (and, for Unity, Lua and Python) runtimes into Unity, Unreal Engine, and .NET applications. It provides high-performance C#/C++ interop and generates TypeScript declarations for type-safe access to host engine APIs.

## Use cases
- write Unity game logic in TypeScript
- script Unreal Engine gameplay with JavaScript
- embed a V8 or QuickJS runtime in a .NET application
- use npm packages inside a Unity game
- hot-reload game scripts without recompiling the engine
- mix Lua, Python, and TypeScript in one Unity project
- generate TypeScript typings for Unity or Unreal APIs

## When to choose
- your team prefers TypeScript/JavaScript over C++ or C# for game logic
- you want to leverage the npm ecosystem inside Unity or Unreal
- you need a fast, type-safe scripting layer with native interop
- you want to mix multiple scripting languages in a Unity project

## When to avoid
- you need a purely C#/C++ codebase with no scripting layer
- your target platform cannot ship a JS engine runtime
- you only need simple config scripting where Lua alone suffices
- you require Unreal support for languages other than JavaScript/TypeScript

## Facets
- artifact type: library
- maturity: active
- function: interpreter, sdk, plugin-system
- domain: programming-languages, cross-platform
- platform: cpp, c, dotnet, game-engine, cross-platform
- tags: typescript, javascript-engine, v8, quickjs, unity, unreal-engine, scripting, interop, lua, python, game-development

## Member repositories
- Tencent/puerts (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:39.299067+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:47:22.082236+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/puerts (fetched 2026-08-28T04:09:39.299067+00:00, sha f07ab7790061)
- Data as of 2026-08-30T08:39:29.467469+00:00.
