René's URL Explorer Experiment


Title: Add a Playground page that formats Java in the browser by abashev · Pull Request #10 · openjavaformat/docs · GitHub

Open Graph Title: Add a Playground page that formats Java in the browser by abashev · Pull Request #10 · openjavaformat/docs

X Title: Add a Playground page that formats Java in the browser by abashev · Pull Request #10 · openjavaformat/docs

Description: What A Playground page at /playground/, after "Get started" in the navigation. Code goes on the left, the formatted result shows on the right, and the formatting runs in the browser. The formatter is compiled to WebAssembly by openjavaformat/open-java-format#196. The code is not sent anywhere, and the result is what the command line writes for the same input. Part of openjavaformat/open-java-format#21. Page: docs/playground/index.md. Every message is in the Markdown, links included, so the strict build checks them; the script only shows the one that applies. Thanks at the end of the page, to Denis Pavlyuchenko, who suggested the playground, and to cobr123, whose WebAssembly build it started from. Script and styles: docs/javascripts/playground.js and docs/stylesheets/playground.css, through extra_javascript and extra_css. The script sets the page up through document$, because the site navigates without reloading. On other pages it does nothing. It loads the module on this page only, once per visit. It starts it with GraalVM.run and learns from the promise whether loading failed. Format runs on the button or Ctrl/⌘+Enter. Copy copies the result. Header tab: Playground is white on the theme's blue, like the Format button, on every page and in both palettes. Fetching the module: scripts/fetch-playground.sh takes the zip from the GitHub release that ojf_version names, checks it against that release's checksums_sha256.txt, and unpacks the two files next to the page. docs.yml runs it before the build, and so do mise run serve and mise run build. OJF_WASM_ZIP= takes a module built locally instead. Before a release carries the module 21.0.1 has no zip. In that case the script writes a warning and the build carries on. The page then says that the playground comes with the next release and links to the command line. follow-releases.yml already redeploys the site when a new release is out, so the page starts working with no change here. A zip that is present but fails its checksum fails the build. Tests The tests ran with Playwright on a local build of the site, in Chromium 134, Firefox 135 and WebKit 18.4, against a module built from the formatter PR. All of these passed: Loading: Other pages do not request the module. The playground works both when reached through the navigation and when opened directly. After leaving and coming back, it works again without downloading the module a second time. Formatting: Format gives the same text as open-java-format--all.jar - for the starting example. Pressing Format makes no request. A warm format of the example takes 6 to 35 ms. Errors: class B { gives a line:column error. The shortcut works. Formatting works again after the error is fixed. Layout: Panes are side by side at 1400 px. At 390 px in dark mode they are stacked, with no horizontal scroll. Fallback states: With WebAssembly.validate returning false, the page shows the unsupported-browser message. Without the module, the page shows "comes with the next release" and Format stays disabled. zensical build --clean --strict passes with the module and without it. The fetch script was tried on all three paths: the real 21.0.1 release without the zip (a warning), a local zip, and a wrong checksum (fails).

Open Graph Description: What A Playground page at /playground/, after "Get started" in the navigation. Code goes on the left, the formatted result shows on the right, and the formatting runs in the browser. The ...

X Description: What A Playground page at /playground/, after "Get started" in the navigation. Code goes on the left, the formatted result shows on the right, and the formatting runs in the brows...

Opengraph URL: https://github.com/openjavaformat/docs/pull/10

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1b83a8d4-3d85-8d21-49be-469c308dde20
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA1FA:3E5885:69506D:8B9E93:6AFBC9D4
html-safe-nonce26bf87638a5e3ae414d4850086c7adc46d6ccb0ce6a74e5c4628d6a56c5a1fa4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUZBOjNFNTg4NTo2OTUwNkQ6OEI5RTkzOjZBRkJDOUQ0IiwidmlzaXRvcl9pZCI6Ijg0MjE3NTI5OTAyNjc1OTExMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b71794a2952d03e5875ce39adac842b9e4c10d2a1fd1d7737d450e87b2284df
hovercard-subject-tagpull_request:5199835491
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/openjavaformat/docs/pull/10/files
twitter:imagehttps://avatars.githubusercontent.com/u/214171?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/214171?s=400&v=4
og:image:altWhat A Playground page at /playground/, after "Get started" in the navigation. Code goes on the left, the formatted result shows on the right, and the formatting runs in the browser. The ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned440bda0d812801778b27bfe9f7c1ce9ff22420c73f6f95150c4fcbca311c50b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/openjavaformat/docs git https://github.com/openjavaformat/docs.git
octolytics-dimension-user_id325177626
octolytics-dimension-user_loginopenjavaformat
octolytics-dimension-repository_id1377537254
octolytics-dimension-repository_nwoopenjavaformat/docs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1377537254
octolytics-dimension-repository_network_root_nwoopenjavaformat/docs
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2c43021aed8695990c86c0eaaedc600bfeffec36
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/openjavaformat/docs/pull/10/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenjavaformat%2Fdocs%2Fpull%2F10%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenjavaformat%2Fdocs%2Fpull%2F10%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=openjavaformat%2Fdocs
Reloadhttps://github.com/openjavaformat/docs/pull/10/files
Reloadhttps://github.com/openjavaformat/docs/pull/10/files
Reloadhttps://github.com/openjavaformat/docs/pull/10/files
openjavaformathttps://github.com/openjavaformat
docshttps://github.com/openjavaformat/docs
Codehttps://github.com/openjavaformat/docs
Issueshttps://github.com/openjavaformat/docs/issues
Pull requests1 (1)https://github.com/openjavaformat/docs/pulls
Actionshttps://github.com/openjavaformat/docs/actions
Security and qualityhttps://github.com/openjavaformat/docs/security
Insightshttps://github.com/openjavaformat/docs/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fopenjavaformat%2Fdocs%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fopenjavaformat%2Fdocs%2Fissues%2Fnew%2Fchoose
abashevhttps://github.com/abashev
mainhttps://github.com/openjavaformat/docs/tree/main
abashev/playgroundhttps://github.com/openjavaformat/docs/tree/abashev/playground
Conversation 0 https://github.com/openjavaformat/docs/pull/10
Commits 3 https://github.com/openjavaformat/docs/pull/10/commits
Checks 2 https://github.com/openjavaformat/docs/pull/10/checks
Files changed https://github.com/openjavaformat/docs/pull/10/files
Please reload this pagehttps://github.com/openjavaformat/docs/pull/10/files
Add a Playground page that formats Java in the browser https://github.com/openjavaformat/docs/pull/10/files#top
Show all changes 3 commits https://github.com/openjavaformat/docs/pull/10/files
8ccd403 Add a Playground page that formats Java in the browser abashev Nov 7, 2026 https://github.com/openjavaformat/docs/pull/10/commits/8ccd403faf56cfb6bea43ce75343715fbb4397ae
4a5429d Set the Playground tab apart in the header abashev Nov 7, 2026 https://github.com/openjavaformat/docs/pull/10/commits/4a5429dc1eb9d3d4de85c997386a0f5b77a8aa61
6fcba07 Thank the people behind the playground on its page abashev Nov 7, 2026 https://github.com/openjavaformat/docs/pull/10/commits/6fcba07aaa74ad789eba253fef900f33d67956c0
Clear filters https://github.com/openjavaformat/docs/pull/10/files
Please reload this pagehttps://github.com/openjavaformat/docs/pull/10/files
Please reload this pagehttps://github.com/openjavaformat/docs/pull/10/files
docs.yml https://github.com/openjavaformat/docs/pull/10/files#diff-9cf2000c53760d837a449f874e53f792819108d3a4bf346336d0f7d082deae2c
.gitignore https://github.com/openjavaformat/docs/pull/10/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
README.md https://github.com/openjavaformat/docs/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
playground.js https://github.com/openjavaformat/docs/pull/10/files#diff-5b2f9a4e7f3ce87c20387cf06cf0f5772d886e44f2ea1f51aab2fecdb6d7e049
index.md https://github.com/openjavaformat/docs/pull/10/files#diff-507f06c5edbb79f471214ea8158040e9288ac81f93638ef9b053787a8f889eae
playground.css https://github.com/openjavaformat/docs/pull/10/files#diff-a21fc8bf576550b01343b324c5dd6f57b7f2ce3c573b2312b5419f2b563cd339
mise.toml https://github.com/openjavaformat/docs/pull/10/files#diff-3c9056799ce8e353b18de841a8b9c8492d46cb096e063c86fb0ce54cfcd117c2
fetch-playground.sh https://github.com/openjavaformat/docs/pull/10/files#diff-9f12bb2421887caba48a358910727e01d4bc4a4375c2f6e2b9956f9a3f687572
zensical.toml https://github.com/openjavaformat/docs/pull/10/files#diff-c785042929d7b216744f869cd6ace6657b73aaf6a5f041da1d096c2b6e34ff04
.github/workflows/docs.ymlhttps://github.com/openjavaformat/docs/pull/10/files#diff-9cf2000c53760d837a449f874e53f792819108d3a4bf346336d0f7d082deae2c
View file https://github.com/openjavaformat/docs/blob/6fcba07aaa74ad789eba253fef900f33d67956c0/.github/workflows/docs.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openjavaformat/docs/pull/10/{{ revealButtonHref }}
https://github.com/openjavaformat/docs/pull/10/files#diff-9cf2000c53760d837a449f874e53f792819108d3a4bf346336d0f7d082deae2c
https://github.com/openjavaformat/docs/pull/10/files#diff-9cf2000c53760d837a449f874e53f792819108d3a4bf346336d0f7d082deae2c
.gitignorehttps://github.com/openjavaformat/docs/pull/10/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/openjavaformat/docs/blob/6fcba07aaa74ad789eba253fef900f33d67956c0/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openjavaformat/docs/pull/10/{{ revealButtonHref }}
https://github.com/openjavaformat/docs/pull/10/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
README.mdhttps://github.com/openjavaformat/docs/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/openjavaformat/docs/blob/6fcba07aaa74ad789eba253fef900f33d67956c0/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openjavaformat/docs/pull/10/{{ revealButtonHref }}
https://github.com/openjavaformat/docs/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/openjavaformat/docs/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/javascripts/playground.jshttps://github.com/openjavaformat/docs/pull/10/files#diff-5b2f9a4e7f3ce87c20387cf06cf0f5772d886e44f2ea1f51aab2fecdb6d7e049
View file https://github.com/openjavaformat/docs/blob/6fcba07aaa74ad789eba253fef900f33d67956c0/docs/javascripts/playground.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openjavaformat/docs/pull/10/{{ revealButtonHref }}
docs/playground/index.mdhttps://github.com/openjavaformat/docs/pull/10/files#diff-507f06c5edbb79f471214ea8158040e9288ac81f93638ef9b053787a8f889eae
View file https://github.com/openjavaformat/docs/blob/6fcba07aaa74ad789eba253fef900f33d67956c0/docs/playground/index.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openjavaformat/docs/pull/10/{{ revealButtonHref }}
docs/stylesheets/playground.csshttps://github.com/openjavaformat/docs/pull/10/files#diff-a21fc8bf576550b01343b324c5dd6f57b7f2ce3c573b2312b5419f2b563cd339
View file https://github.com/openjavaformat/docs/blob/6fcba07aaa74ad789eba253fef900f33d67956c0/docs/stylesheets/playground.css
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openjavaformat/docs/pull/10/{{ revealButtonHref }}
Please reload this pagehttps://github.com/openjavaformat/docs/pull/10/files
Please reload this pagehttps://github.com/openjavaformat/docs/pull/10/files
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.