processing / processing/p5.js-web-editor

Question: How can I grab all the code client-side for P5 Live?

Open
#3,233 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

Increasing Access

Unsure

Feature enhancement details

I'm working on a bookmarklet to make copying code over to P5 Live easier. The tricky part is that P5 Live loads everything into one file, with a special syntax for loading libraries. I’m wondering if there’s a way, using just vanilla JS, to grab all the code as a string from index.html, sketch.js, and any other files on the client side, assuming the user is already logged in.

Contributor guide

Open the contributing guide

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.

Research direction

Review index.html and sketch.js, then trace how P5 Live loads libraries and other client-side files. Determine whether vanilla JavaScript can access the needed content for a logged-in user, and document the answer or the concrete scope needed for a bookmarklet.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.