Prototype .spd (Supernote Atelier) file support - #137
Merged
Conversation
Adds a minimal read-only viewer for .spd files (Supernote Atelier app), built on supernote-typescript's SupernoteAtelier parser (philips/supernote-typescript#33). Registers the 'spd' extension to a new SupernoteAtelierView that flattens every layer with toCompositeImage() and shows the result as a single image — no page concept, so none of SupernoteView's zoom/find/thumbnail toolbar or embed support yet. sql.js's wasm binary is embedded into the bundle via esbuild's binary loader (esbuild.config.mjs) rather than fetched/read at runtime, so it works the same on desktop and mobile without a locateFile() callback. Points the supernote-typescript submodule at a local merge of PR #33 (worktree-spd-parser) onto main, pushed to spd-prototype-merge-main so the pinned commit resolves for anyone cloning this branch. Closes #136.
supernote-typescript#33 (SupernoteAtelier/.spd support) has since merged into that repo's main branch (published to npm as 0.5.2, though that repo doesn't have a corresponding git tag yet). Repoints the submodule at upstream main directly, replacing the throwaway local merge of PR #33 onto main that was pushed to spd-prototype-merge-main as a workaround while the PR was still open.
6 tasks
philips
marked this pull request as ready for review
July 28, 2026 18:22
This was referenced Jul 28, 2026
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.
Summary
Prototype for #136: a minimal read-only viewer for
.spdfiles (theSupernote Atelier app's format), built on top of
supernote-typescript#33's
SupernoteAtelierparser.spdextension to a newSupernoteAtelierView(
src/atelierView.ts) — opens the file, callstoCompositeImage()toflatten every layer, and shows the result as one image.
SupernoteView(the.noteviewer):.spdhas no page concept, just layered tiles on one canvas, so there'sno zoom/find/thumbnail toolbar, no embed registration
(
![[file.spd]]), and no vault-writing commands yet.sql.js's wasm binary is embedded directly into the bundle viaesbuild's
binaryloader (esbuild.config.mjs) instead of beingfetched/read at runtime, so it works the same on desktop and mobile
without a
locateFile()callback.supernote-typescriptsubmodule at that repo'smain(PR PNG easy - .Notes Direct into Obsidian from Supernote? #33 has since merged — published to npm as
0.5.2, though that repodoesn't have a corresponding git tag yet).
What's not here yet
![[file.spd]]) support..spd.SupernoteAtelier.viewport/canvasSizearen't used (no zoom/pan yet).Test plan
npm run buildsucceedsnpm test— all 95 existing tests still passnpm run lint— no new warnings/errorsSupernoteAtelier.open()+toCompositeImage()againstsupernote-typescript/tests/input/real-device.spdoutside theplugin (same code path the view uses) and visually confirmed the
layered strokes composite correctly over the reference background