Installation
Get started with HoloScript in your development environment.
VS Code Extension
The easiest way to start using HoloScript.
Install from Marketplace
bash
ext install holoscript.holoscript-vscodeOr search "HoloScript Enhanced" in the VS Code extensions marketplace.
Features Included
- ✅ Syntax highlighting for
.hs,.hsplus,.holo - ✅ IntelliSense and autocomplete
- ✅ Error checking and diagnostics
- ✅ Hover documentation for traits
- ✅ Code snippets
- ✅ Live preview (coming soon)
CLI Tools
For compiling and building HoloScript projects.
Install via npm
bash
npm install -g @holoscript/cliVerify Installation
bash
holoscript --version
# HoloScript CLI v1.0.0Basic Commands
bash
# Create new project
holoscript init my-project
# Validate syntax
holoscript validate scene.holo
# Preview locally
holoscript preview scene.holo
# Compile to target
holoscript compile scene.holo --target threejs
holoscript compile scene.holo --target unity
holoscript compile scene.holo --target vrchat
# Watch mode
holoscript watch src/ --target threejsMCP Server (For AI Integration)
Connect AI agents (Claude, GPT, Cursor) to HoloScript.
Install
bash
npm install @holoscript/mcp-serverConfigure for Claude Desktop
Add to Claude Desktop config (~/.claude/settings.json):
json
{
"mcpServers": {
"holoscript": {
"command": "npx",
"args": ["@holoscript/mcp-server"]
}
}
}Available MCP Tools
| Tool | Description |
|---|---|
generate_object | Create objects from descriptions |
generate_scene | Create complete compositions |
validate_holoscript | Check code for errors |
suggest_traits | Get trait recommendations |
explain_code | Get plain English explanation |
See MCP Server Guide for full documentation.
Package Installation
Use HoloScript packages in your projects.
Core Parser
bash
npm install @holoscript/coretypescript
import { parse } from '@holoscript/core';
const ast = parse(`
orb hello {
message: "Hello World"
}
`);Traits Library
bash
npm install @holoscript/traitstypescript
import { getTraitDefinition, listAllTraits } from '@holoscript/traits';
const grabbable = getTraitDefinition('grabbable');
console.log(grabbable.parameters);Compiler
bash
npm install @holoscript/compilertypescript
import { compile } from '@holoscript/compiler';
const output = compile(holoCode, { target: 'threejs' });Project Setup
Create New Project
bash
holoscript init my-vr-game
cd my-vr-gameProject Structure
my-vr-game/
├── src/
│ ├── scenes/
│ │ └── main.holo
│ ├── templates/
│ │ └── enemies.hsplus
│ └── assets/
│ ├── models/
│ └── sounds/
├── dist/
├── holoscript.config.json
└── package.jsonConfiguration
holoscript.config.json:
json
{
"entry": "src/scenes/main.holo",
"outDir": "dist",
"targets": ["threejs", "unity"],
"assets": {
"models": "src/assets/models",
"sounds": "src/assets/sounds"
},
"optimization": {
"minify": true,
"treeshake": true
}
}Development Workflow
1. Write HoloScript
Create your scene in .holo:
holo
composition "My Scene" {
environment {
skybox: "sunset"
}
object "Player" {
@collidable
position: [0, 1.6, 0]
}
}2. Validate
bash
holoscript validate src/scenes/main.holo3. Preview
bash
holoscript preview src/scenes/main.holo4. Compile
bash
holoscript compile src/scenes/main.holo --target threejs5. Deploy
Output is in dist/ ready for deployment.
System Requirements
| Requirement | Minimum |
|---|---|
| Node.js | v18+ |
| VS Code | v1.85+ |
| RAM | 4GB |
| OS | Windows, macOS, Linux |
Next Steps
- Quick Start - Build your first scene
- VS Code Guide - Editor features
- File Formats - Understanding .hs, .hsplus, .holo