Experiment index All work

Contribution guide

Built an interactive model, diagram, or simulation that runs in the browser? Fork the repository, add your files, test locally, and open a pull request.

1. Fork and create a branch

Start by forking the repository to your GitHub account, then clone your fork and create a branch for your entry. Replace YOUR-USERNAME with your GitHub username. Fork Experiment index

git clone https://github.com/YOUR-USERNAME/experiment-index.git
cd experiment-index
git switch -c add-pendulum

2. Add your experiment

  1. Create a folder under entries/ (for example, entries/pendulum/) and place your index.html and any local assets inside. Use relative paths for all links and assets so the page works both locally and once published.
  2. Include a link back to ../../index.html so visitors can return to the main index from your experiment.
  3. Register the entry by appending an object to the entries array in catalog.js:
    {
      title: 'Pendulum motion',
      description: 'Change the length and compare the periods.',
      categories: ['Diagrams', 'Simulations'],
      href: 'entries/pendulum/index.html'
    }
  4. Optional: add a new filter name to the categories array in catalog.js (using the exact same spelling on your entry), or add a preview image in assets/ with image and imageAlt fields. Entries without an image use a clean text layout.

3. Preview locally

From the repository root, start a local static server and open http://127.0.0.1:8000/:

python3 -m http.server 8000 --bind 127.0.0.1

Verify three things before committing: your card appears under the right category filters, clicking it opens your experiment cleanly, and reloading the experiment URL works without console errors.

4. Open a pull request

Stage your new folder, catalog.js, and any preview image you added in assets/, then push your branch:

git add entries/pendulum/ catalog.js
git commit -m "Add interactive pendulum diagram"
git push -u origin add-pendulum

Open a pull request against emm-aa/experiment-index on main. In the description, note what the experiment lets someone explore, how you tested it, and any external CDN or WebGL requirements. A screenshot helps reviewers inspect visual changes quickly. Open a pull request