🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@holoscript/compiler

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@holoscript/compiler

HoloScript compiler — 25 compile targets (Unity, Unreal, Godot, VisionOS, WASM, WebGPU, USD, glTF, etc.)

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@holoscript/compiler

Standalone HoloScript compiler — .hsplus to platform-specific code.

Overview

The compiler package provides standalone compilation from HoloScript source to platform-specific output. It wraps the compiler infrastructure from @holoscript/core into a focused, importable API.

Supported Targets

TargetPlatformOutput
unityUnity EngineC# scripts
unrealUnreal Engine 5C++ / Blueprints
godotGodot 4GDScript
r3fReact Three FiberJSX components
babylonBabylon.jsTypeScript
visionosApple Vision ProSwift / RealityKit
webgpuWebGPUWGSL shaders
wasmWebAssemblyWAT / binary
openxrOpenXRC++ / Khronos
android-xrAndroid XRKotlin
iosiOS / ARKitSwift
androidAndroid / ARCoreKotlin
vrchatVRChatUdon#
urdfRoboticsURDF XML
sdfRoboticsSDF XML
dtdlDigital TwinsDTDL JSON
usdUniversal SceneUSD
gltf3D InterchangeglTF JSON

Usage

import { compile } from '@holoscript/compiler';

const output = await compile('./scene.holo', { target: 'unity' });

CLI

holoscript compile scene.holo --target unity --output ./build/
holoscript compile agent.hsplus --target node --output ./dist/

Adding a New Compiler Target

See Contributing a New Compiler.

License

MIT

Keywords

holoscript

FAQs

Package last updated on 23 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts