Use @mcmcjs/doodleppl in DoodleBUGS#513
Open
shravanngoswamii wants to merge 13 commits into
Open
Conversation
Contributor
|
A preview of this pull request has been deployed. |
Merged
sunxd3
approved these changes
Jul 7, 2026
Contributor
|
A preview of this pull request has been deployed. |
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.
The editor now lives in the doodleppl npm package (developed in the mcmcjs monorepo, with its codegen in @mcmcjs/doodleppl), and this directory becomes its deployed site. Three steps, one per commit:
The editor's duplicated codegen, Stan generator, validator, topological sort, and distribution catalog were replaced with @mcmcjs/doodleppl calls. Verified byte-for-byte: generated BUGS and Stan output for all 12 bundled examples is identical before and after (24/24).
The widget source moved to the doodleppl package, so the app here reduces to an index.html mounting plus a three-line main.ts. The DoodleWidget demo article now loads the package's CDN build from unpkg, and the old dist-lib build is gone. Verified in the browser against the built site: the full editor (canvas, palette, projects, examples, code preview) renders with zero console errors.
Housekeeping to match the new size: one tsconfig, four devDependencies (vite, typescript, prettier, @types/node), no eslint/vue toolchain, and the publish/preview workflows drop the deleted build:lib step. README updated to describe the architecture and the new embed story.
Note for existing users: the editor UI and features are unchanged (same widget the site already shipped), but hosts embedding the old lib URL should move to the doodleppl package; the element tag is now .
🤖 Generated with Claude Code