/svc/examples lists FILIUS' examples, which lie beside F in the image (GPL like this repository, kept out of the dashboard); /svc/projects makes a project from one; /svc/projects/<id>/import takes a .fls (up to 64 MiB), /copy copies a project as it is now, /export gives it back as a .fls with its warnings. Large files go into the blob store on import and come back from it on export, which is refused when one is missing. Found on the way: Node's request body is a Buffer, and Yjs takes no Buffer into a document, so every .fls with binary files would have failed; and fflate, now in the bundle, imports createRequire itself, which the build's banner declared again, so F did not start. The banner names it otherwise and a test builds and starts the bundle. The proxy's /svc/ takes 70 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
955 B
JSON
31 lines
955 B
JSON
{
|
|
"name": "@mdg-filius/server",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"license": "GPL-3.0-only",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "esbuild src/main.ts src/simWorker.ts src/precompressMain.ts --bundle --platform=node --format=esm --target=node20 --outdir=dist --out-extension:.js=.mjs --external:pg-native --banner:js=\"import { createRequire as createBundleRequire } from 'node:module'; const require = createBundleRequire(import.meta.url);\"",
|
|
"start": "node dist/main.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@hocuspocus/server": "3.4.4",
|
|
"@mdg-filius/core": "0.0.0",
|
|
"@mdg-filius/doc": "0.0.0",
|
|
"@mdg-filius/protocol": "0.0.0",
|
|
"@mdg-filius/sim": "0.0.0",
|
|
"pg": "8.23.1",
|
|
"ws": "8.22.0",
|
|
"y-protocols": "1.0.6",
|
|
"yjs": "^13.6.33"
|
|
},
|
|
"devDependencies": {
|
|
"@hocuspocus/provider": "3.4.4",
|
|
"@types/pg": "8.23.1",
|
|
"@types/ws": "8.18.2"
|
|
}
|
|
}
|