Skip to content

Add npm package exporting wasm and worker files - #439

Merged
simolus3 merged 8 commits into
mainfrom
js-package
Jul 23, 2026
Merged

Add npm package exporting wasm and worker files#439
simolus3 merged 8 commits into
mainfrom
js-package

Conversation

@simolus3

@simolus3 simolus3 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

This adds an npm package exporting the powersync_db.worker.js file along with sqlite3.wasm and sqlite3mc.wasm. This helps with Kotlin web support: Because Kotlin web apps can have npm dependencies and are bundled with webpack, adding an npm package makes it easy to import them in Kotlin. Using new URL('@powersync/dart-sdk-assets', import.meta.url) will be recognized by webpack to bundle the asset. We want to use the Dart worker and WebAssembly files in Kotlin to avoid having to write yet another sync worker (the JavaScript worker relies on Comlink and doesn't have a stable protocol).

We actually had this package before, to use jsdelivr as a CDN for FlutterFlow apps. We removed that package after it wasn't used anymore, but now we need it again for Kotlin web.

Kotlin PR for context: powersync-ja/powersync-kotlin#361

@simolus3
simolus3 merged commit bca54ed into main Jul 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants