html5-simulation

Generate self-contained HTML5 canvas simulations in a single index.html for iframe integration.

Updated Dec 14, 2024
One-click install
npx skills add https://github.com/Sanssin/Inite --skill html5-simulation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: html5-simulation
Source: https://github.com/Sanssin/Inite/tree/main/docs/skills/html5-simulation
Command: npx skills add https://github.com/Sanssin/Inite --skill html5-simulation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

INITE users need a quick, reproducible way to prototype physics-based simulations that are portable and embeddable into React apps. This skill automates generating a self-contained index.html with HTML, CSS, and JavaScript, ready for iframe integration, saving time and ensuring consistency.

Core Features & Use Cases

  • Self-contained index.html per simulation containing HTML, CSS, and JavaScript; ready to embed.
  • Outputs to public/simulations/{simulation-id}/index.html for easy deployment and sharing.
  • Use case: rapidly prototype physics demos for radiation education and interactive learning in classroom or web apps.

Quick Start

Create a new HTML5 simulation by defining the physics formulas, then run the generator to output public/simulations/{simulation-id}/index.html and load it in an iframe.

Frequently Asked Questions about html5-simulation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a self-contained HTML5 physics simulation for iframe embedding?

You can generate a self-contained HTML5 canvas simulation by defining physics formulas and running the generator, which outputs a single index.html with HTML, CSS, and JavaScript ready for iframe integration.

How does a deterministic game loop work for canvas simulations?

A deterministic game loop maintains centralized state and responsive canvas setup to ensure consistent physics rendering across different browsers, resulting in reproducible interactive outputs suitable for educational demonstrations.

Can I use these HTML5 simulations for radiation physics education?

Yes, these HTML5 simulations support radiation physics education by rapidly prototyping interactive physics demos that run entirely in a single index.html file, making them easy to deploy in classroom or web apps.

Does the generated index.html output require external dependencies to run?

No, the generated index.html output requires no external dependencies to run because the simulation is entirely self-contained with all necessary HTML, CSS, and JavaScript embedded within the single file.

What is the best way to embed a physics simulation into a React app?

The best way to embed a physics simulation into a React app is to load the generated self-contained index.html file directly within an iframe, ensuring isolated execution and easy deployment from the public directory.