[Docs] Embed the browser-based projects as live demos on their pages

Open
#390 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
html

Research direction

Start by checking the five listed project paths and the docs pages under docs/src; the issue reports standalone HTML pages but no existing embeds. Then inspect how the Astro docs build handles integrations and project metadata, especially project.yaml and web_entry. Done means at least Fractal-gh, PPS, and Chaos Dotter load on their docs pages only after a click, with a license check excluding code that cannot be redistributed.

Written by the indexing model from the issue text.

Description

area: docs-site priority: P3 size: M type: enhancement

Summary

Five projects already run in a browser (Fractal-gh, GenePool, Primordial Particle System, Chaos Dotter, Lenia JS) but the docs only describe them; readers must clone the repo to try them.

Location

  • Mandlebrot/Fractal-gh/index.html
  • Math_Chaos/GenePool/GenePool/index.html
  • Math_Chaos/Primordial-Particle-System/
  • Math_Chaos/Chaos_Dotter/
  • Math_Chaos/Lenia/JavaScript/Lenia.html

Evidence

git ls-files '*.html' lists standalone pages for these projects; their docs pages contain no iframe/embed (grep iframe|<Demo in docs/src -> 0).

Expected

A <LiveDemo project="fractal-gh"> component that lazy-loads the project in a sandboxed iframe with a poster, fullscreen button and 'open in new tab'.

Proposed fix

Publish each web project as a static sub-path of the docs build (copy via an Astro integration driven by project.yaml web_entry), embed with <iframe sandbox="allow-scripts" loading="lazy"> behind a click-to-run poster. Respect licenses (GenePool is all-rights-reserved: exclude until resolved). Later: WASM builds of C++ projects (Emscripten) via the same component.

Acceptance criteria

  • At least Fractal-gh, PPS and Chaos Dotter run on their docs pages
  • Demos do not load until requested (no impact on LCP)
  • License check prevents publishing non-redistributable code

Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref platform-029


Generated by Claude Code

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.