Files
dragology-pd/package.json
T
david fe6f2bfe76 Browser patch editor for Pure Data (closes #1)
Open a .pd file, drag boxes and pull cords, save it back as a file Pd
will load. Dragging is Dragology: `d.vary` moves a box, and a cord drag
is `d.closest(...).whenFar(vary)` over every inlet in the patch, so the
plug snaps to an inlet and cancels on empty space.

The parser is a byte-exact round trip. Two Pd format details that matter:
`#X connect` indices count comments, and `;;` (an empty record) is not the
same as a blank line. Anything unmodelled — arrays, `#X declare`,
subpatches — is preserved verbatim.

Tests run real Pd: patches round trip, an edited patch loads in
`pd -nogui` without new complaints, and the bridge carries a message into
a running Pd and back.

The bridge writes to server/patches/ and runs `pd -nogui` itself, so
saving and hearing the patch is one button.
2026-11-04 19:19:53 -08:00

30 lines
771 B
JSON

{
"name": "dragology-pd",
"private": true,
"version": "0.0.1",
"type": "module",
"description": "A browser patch editor for Pure Data, built with Dragology",
"scripts": {
"dev": "vite",
"build": "tsc -p tsconfig.json && vite build",
"typecheck": "tsc -p tsconfig.json",
"test": "node --test --experimental-strip-types test/*.test.ts",
"bridge": "node server/bridge.mjs"
},
"dependencies": {
"dragology": "^0.1.7",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@types/node": "^25.2.3",
"@types/react": "^19.2.4",
"@types/react-dom": "^19.2.3",
"@types/ws": "^8.5.13",
"@vitejs/plugin-react": "^6.0.1",
"typescript": "^5.9.3",
"vite": "^8.0.3",
"ws": "^8.18.0"
}
}