René's URL Explorer Experiment


Title: p5.libprocessing.js · Issue #157 · processing/libprocessing · GitHub

Open Graph Title: p5.libprocessing.js · Issue #157 · processing/libprocessing

X Title: p5.libprocessing.js · Issue #157 · processing/libprocessing

Description: Spent a couple days over the weekend botch together a proof of concept for using libprocessing with p5.js as a custom renderer running in Node.js: https://github.com/limzykenneth/p5.libprocessing.js I have mostly just tried to get things...

Open Graph Description: Spent a couple days over the weekend botch together a proof of concept for using libprocessing with p5.js as a custom renderer running in Node.js: https://github.com/limzykenneth/p5.libprocessing.j...

X Description: Spent a couple days over the weekend botch together a proof of concept for using libprocessing with p5.js as a custom renderer running in Node.js: https://github.com/limzykenneth/p5.libprocessing.j...

Opengraph URL: https://github.com/processing/libprocessing/issues/157

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"p5.libprocessing.js","articleBody":"Spent a couple days over the weekend botch together a proof of concept for using libprocessing with p5.js as a custom renderer running in Node.js: https://github.com/limzykenneth/p5.libprocessing.js\n\nI have mostly just tried to get things working as likely there will be things that are messy or not used as intended, I tried to copy the Rust examples where possible for the basic pattern. There are two changes I made to libprocessing itself however to get things working:\n\n```diff\ndiff --git a/Cargo.toml b/Cargo.toml\nindex a813652..19f5031 100644\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -48,11 +48,15 @@ processing_core = { workspace = true }\n processing_render = { workspace = true }\n processing_midi = { workspace = true }\n processing_input = { workspace = true }\n+processing_glfw = { workspace = true }\n processing_webcam = { workspace = true, optional = true }\n processing_cuda = { workspace = true, optional = true }\n tracing = \"0.1\"\n tracing-subscriber = { version = \"0.3\", features = [\"env-filter\"] }\n\n+[target.'cfg(target_os = \"linux\")'.dependencies]\n+processing_glfw = { workspace = true, features = [\"wayland\"] }\n+\n [target.'cfg(target_arch = \"wasm32\")'.dependencies]\n wasm-bindgen-futures = \"0.4\"\n js-sys = \"0.3\"\ndiff --git a/src/lib.rs b/src/lib.rs\nindex 9f00d06..03a1fd6 100644\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -1,4 +1,6 @@\n pub mod prelude;\n+pub extern crate processing_render;\n+pub extern crate processing_glfw;\n\n use std::num::NonZero;\n```\n\nEssentially it is re-exporting `processing_glfw` and `processing_render` so that the GLFW context and draw commands are available to the FFI layer. If there are other more semantic way to handle this, it can be switched over.\n\n---\n\n### Implementation details/question\n#### Renderer\nTo implement a renderer in p5.js, the renderer is defined as a class with relevant methods, most of them corresponding to p5.js drawing functions. There are two options to get this to work with p5.libprocessing.js, one is to implement the class more or less entirely in Rust with NAPI-RS as a struct (which is what the proof of concept does), the other option is to implement a JS class and have that call into the Rust FFI either through an object or otherwise.\n\nThe former requires a bit less code to do while the latter may be needed to normalize passing data between JS (as it comes from p5.js) and Rust. It could be possible to combine the two if needed as a decoration in JS then call into Rust. Not sure what the best approach is and we can have a think about this.\n\n#### Draw loop\nCurrently the draw loop is executed through Node.js' `setImmediate()`, meaning the draw loop is still in JS, limited by the event loop. There could be a possibility to have the draw loop exist in Rust within `while glfw_ctx.poll_events() {` and  `graphics_begin_draw` `graphics_end_draw` pair if we pass a reference to the JS `draw()` function to be called in Rust (NAPI-RS has that capability), though I'm not sure this will be ideal, other functions such as event handlers will likely need to be passed in as so in that case.\n\n---\n\nThe proof of concept is very basic and I just wanted to get a super basic sketch going (which is just an excuse to say don't mind the messy detail in it for now 😓 )\n\nhttps://github.com/user-attachments/assets/eb309b6a-a2ae-4bb7-a58e-c45e37da9475","author":{"url":"https://github.com/limzykenneth","@type":"Person","name":"limzykenneth"},"datePublished":"2026-05-04T15:27:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/157/libprocessing/issues/157"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ab27b2bb-7665-3311-8b71-432d058124f9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB97A:246CE:3E9F695:5188A4A:6A5D1D42
html-safe-nonce4d4a1c2b1236e247dd8baf87fe95c04db05bdd6c4a6a5a3edbfb892bcd1e378b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTdBOjI0NkNFOjNFOUY2OTU6NTE4OEE0QTo2QTVEMUQ0MiIsInZpc2l0b3JfaWQiOiI1MjI0NzYyMzY5NDQxMDc4NTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc26cc7f5f0859679fff41e64aab319d8020ca166b9343386bf9e5176bf64d05b
hovercard-subject-tagissue:4377735398
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/libprocessing/157/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7b7eb8c2bee730c79d41e5cfbb7983e0256ab769ffd8bc0aa309cc9b728de75e/processing/libprocessing/issues/157
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7b7eb8c2bee730c79d41e5cfbb7983e0256ab769ffd8bc0aa309cc9b728de75e/processing/libprocessing/issues/157
og:image:altSpent a couple days over the weekend botch together a proof of concept for using libprocessing with p5.js as a custom renderer running in Node.js: https://github.com/limzykenneth/p5.libprocessing.j...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelimzykenneth
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/processing/libprocessing git https://github.com/processing/libprocessing.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id1101329545
octolytics-dimension-repository_nwoprocessing/libprocessing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1101329545
octolytics-dimension-repository_network_root_nwoprocessing/libprocessing
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/issues/157#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fissues%2F157
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fissues%2F157
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=processing%2Flibprocessing
Reloadhttps://github.com/processing/libprocessing/issues/157
Reloadhttps://github.com/processing/libprocessing/issues/157
Reloadhttps://github.com/processing/libprocessing/issues/157
Please reload this pagehttps://github.com/processing/libprocessing/issues/157
processing https://github.com/processing
libprocessinghttps://github.com/processing/libprocessing
Notifications https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Fork 12 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Star 56 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Code https://github.com/processing/libprocessing
Issues 68 https://github.com/processing/libprocessing/issues
Pull requests 2 https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Wiki https://github.com/processing/libprocessing/wiki
Security and quality 0 https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
Code https://github.com/processing/libprocessing
Issues https://github.com/processing/libprocessing/issues
Pull requests https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Wiki https://github.com/processing/libprocessing/wiki
Security and quality https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
p5.libprocessing.jshttps://github.com/processing/libprocessing/issues/157#top
WASMhttps://github.com/processing/libprocessing/milestone/12
https://github.com/limzykenneth
limzykennethhttps://github.com/limzykenneth
on May 4, 2026https://github.com/processing/libprocessing/issues/157#issue-4377735398
https://github.com/limzykenneth/p5.libprocessing.jshttps://github.com/limzykenneth/p5.libprocessing.js
libprocessing Roadmaphttps://github.com/orgs/processing/projects/49
WASMhttps://github.com/processing/libprocessing/milestone/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.