Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Fix: example.js stores defaultHTML function reference instead of calling it, causing examples to display raw JavaScript source in preview

Open Beginner friendly
#4,344 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

@syedbarkath980 is already working on this.

Since Oct 4, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start at example.js and trace how the defaultHTML function is used when examples are fetched and shown in the preview panel. Reproduce the issue with npm run fetch-examples and npm start, then verify that opening an example renders an HTML page and runs the p5.js sketch instead of displaying JavaScript source.

Written by the indexing model from the issue text.

Description

Awaiting Maintainer Approval Bug
p5.js version

v18.20.8

What is your operating system?

Windows

Web browser and version

Brave1.96.61 Chromium: 154.0.8037.98 (Official Build) (64-bit)

Actual Behavior

Bug Description

When running npm run fetch-examples locally, opening any example sketch
shows raw JavaScript function source code in the preview panel instead of
rendering a proper HTML page.

The preview panel displays raw JavaScript function source code:

Image
Expected Behavior

The preview panel renders a proper HTML page that runs the p5.js sketch.

Image
Steps to Reproduce:
  1. Clone the repository and complete manual installation
  2. Run npm run fetch-examples
  3. Start the server with npm start
  4. Open any example sketch from File → Examples
  5. Observe the preview panel

https://github.com/user-attachments/assets/26ab75c4-21c7-4937-8e80-c75395302137

Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
5d 16h
Merged PRs (30d)
8

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 processing/p5.js-web-editor

All issues in processing/p5.js-web-editor

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.