Repository navigation
Package draw.io 31.4.6 for StartOS - #1
Merged
Merged
Conversation
Runs the official jgraph/drawio image unmodified: one daemon, one Web UI interface on 8080 (Tomcat's own HTTPS port stays unexposed), and a readiness check on that port, which Tomcat opens only once the editor has deployed. The server stores no diagrams; they save to the user's device, the browser, or Nextcloud through its draw.io app. The only state is store.json with the primary URL. Set Primary URL chooses the address written into HTML exports, embed code and share links, which upstream's image otherwise points at localhost:8080 and at draw.io's hosted viewer. DRAWIO_SERVER_URL is pinned to "/": set alone, DRAWIO_BASE_URL makes the entrypoint derive an absolute server URL, and the editor then breaks when opened from any other address. Init picks the .local address on install, raises an important, non-blocking task when the chosen address disappears, and clears it when the address comes back. Verified on hardware (StartOS 0.4.0.2, x86_64); details in the PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stupleb
force-pushed
the
initial-package
branch
from
September 26, 2026 21:52
8964925 to
7d218c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First release of draw.io for StartOS, as
31.4.6:0, on SDK 2.0.9.What it is
The official
jgraph/drawioimage, unmodified. The server only delivers the editor: diagrams save to the user's device, the browser, or Nextcloud through its draw.io app ("Diagramming"), never to the server. No login and no database; the only state isstore.jsonwith the primary URL.Set Primary URL
Upstream's image points HTML exports and embed code at
http://localhost:8080, and share links at draw.io's hosted viewer. The action picks one of the service's own addresses for both; init chooses the.localaddress on install.DRAWIO_SERVER_URLis pinned to/, because setting onlyDRAWIO_BASE_URLmakes the entrypoint derive an absolute server URL, and the editor then breaks when opened from any other address.When the chosen address disappears, an
importanttask asks for a new one and the editor keeps running; the task clears itself if the address comes back.Nextcloud
The Diagramming app's Editor URL can point at this service. Nextcloud then loads the editor from the package and saves to Nextcloud as before. The editor takes its language, dark mode and editor configuration from the app's own settings, and real-time co-editing needs draw.io's hosted service, so it is not available.
Tested
On lean-anaconda (StartOS 0.4.0.2, x86_64):
.localaddress.localaddress and the LAN IP, every request staying on that address and nothing outside contacted on load.localaddress; re-enabling it: task clearedNot tested
Backup and restore; saving a diagram from inside Nextcloud; the aarch64 package on hardware (it builds); saving to a folder with the browser's Device option.