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

@holoscript/playground

v1.0.0

Published

Interactive web-based playground for trying HoloScript in the browser

Downloads

52

Readme

HoloScript Playground 🌐

Interactive web-based editor for trying HoloScript in your browser - no installation required!

Features

Live Code Editor

  • Monaco Editor with HoloScript syntax highlighting
  • Auto-completion and error detection
  • Real-time preview

🎮 Multiple Runtime Engines

  • Demolition: Building collapse with realistic physics
  • Avalanche: Snow avalanche simulation
  • Erosion: Water erosion and terrain deformation
  • Earthquake: Seismic wave propagation

📚 Example Gallery

  • Pre-built examples for each runtime
  • One-click loading
  • Instant preview

🔗 Share & Export

  • Share code via URL
  • Download .holo files
  • Export to various formats

📊 Live Statistics

  • FPS counter
  • Particle count
  • Runtime status

Quick Start

Development

# Install dependencies
pnpm install

# Start dev server
pnpm dev

# Open http://localhost:3000

Build for Production

# Build optimized bundle
pnpm build

# Preview production build
pnpm preview

Deploy to GitHub Pages

# Deploy to gh-pages branch
pnpm deploy

Usage

Writing HoloScript Code

  1. Select an example from the sidebar or write your own code
  2. Choose a runtime engine (Demolition, Avalanche, Erosion, or Earthquake)
  3. Click "Run" to execute (or enable auto-run for live updates)
  4. Watch the live preview in the canvas

Example Code

composition BuildingDemolition {
  traits {
    physics {
      gravity: [0, -9.8, 0],
      timeScale: 1.0
    }

    camera {
      position: [0, 20, 50],
      target: [0, 10, 0],
      fov: 60
    }
  }

  entities {
    structure Building {
      floors: 5,
      columnsPerFloor: 4
    }

    behavior ExplosionControl {
      trigger: "click",
      explosionForce: 3000
    }
  }
}

Keyboard Shortcuts

  • Ctrl/Cmd + S - Run code
  • Ctrl/Cmd + R - Reset simulation
  • Ctrl/Cmd + / - Toggle comment
  • F11 - Fullscreen

Architecture

┌─────────────────────────────────────────────┐
│            HoloScript Playground            │
├─────────────────────────────────────────────┤
│                                             │
│  ┌──────────────┐      ┌─────────────────┐ │
│  │ Monaco Editor│─────▶│  HoloScript     │ │
│  │              │      │  Parser         │ │
│  └──────────────┘      └────────┬────────┘ │
│                                 │          │
│                                 ▼          │
│                        ┌─────────────────┐ │
│                        │  Runtime        │ │
│                        │  Executor       │ │
│                        └────────┬────────┘ │
│                                 │          │
│                                 ▼          │
│                        ┌─────────────────┐ │
│                        │  Canvas         │ │
│                        │  Renderer       │ │
│                        └─────────────────┘ │
│                                             │
└─────────────────────────────────────────────┘

Features Roadmap

✅ Completed

  • [x] Monaco Editor integration
  • [x] HoloScript syntax highlighting
  • [x] Example gallery
  • [x] Multi-runtime support
  • [x] Share via URL
  • [x] Download code
  • [x] Live statistics
  • [x] Console output

🚧 In Progress

  • [ ] Full runtime executor integration
  • [ ] 3D preview with Three.js
  • [ ] Real-time particle rendering
  • [ ] Interactive canvas controls

🔮 Future

  • [ ] Collaborative editing (multiplayer)
  • [ ] Version history
  • [ ] Community examples
  • [ ] Export to video
  • [ ] Mobile responsiveness
  • [ ] VR preview mode
  • [ ] AI code completion
  • [ ] Performance profiling

Technology Stack

  • Editor: Monaco Editor (VS Code's editor)
  • Build: Vite + TypeScript
  • Runtime: HoloScript Core (@holoscript/core)
  • Rendering: Three.js (planned)
  • Deployment: GitHub Pages

Browser Support

  • ✅ Chrome/Edge (latest)
  • ✅ Firefox (latest)
  • ✅ Safari (latest)
  • ⚠️ Mobile (limited support)

Contributing

Contributions welcome! Please see the main HoloScript repository for contribution guidelines.

Development Tips

  1. Hot Reload: Changes to playground.ts auto-reload
  2. Monaco Types: Types are loaded from CDN at runtime
  3. Examples: Add new examples to the EXAMPLES object
  4. Runtimes: Add new runtimes to the RUNTIMES array

License

MIT © Brian X Base Team

Links


Try it now: https://holoscript.net/playground

Built with ❤️ by the HoloScript community