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
- Create a folder under
entries/(for example,entries/pendulum/) and place yourindex.htmland any local assets inside. Use relative paths for all links and assets so the page works both locally and once published. - Include a link back to
../../index.htmlso visitors can return to the main index from your experiment. - Register the entry by appending an object to the
entriesarray incatalog.js:{ title: 'Pendulum motion', description: 'Change the length and compare the periods.', categories: ['Diagrams', 'Simulations'], href: 'entries/pendulum/index.html' } - Optional: add a new filter name to the
categoriesarray incatalog.js(using the exact same spelling on your entry), or add a preview image inassets/withimageandimageAltfields. 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