{ "name": "cryptpad", "version": "2026.5.1", "summary": "CryptPad: end-to-end encrypted documents, sheets, slides, kanban, whiteboard, forms and a drive", "category": "server", "license": "AGPL-3.0-or-later", "homepage": "https://cryptpad.org/", "source": { "url": "https://github.com/cryptpad/cryptpad/archive/refs/tags/2026.5.1.tar.gz", "sha256": "03b9be01b31055645c2c6d837cc5852fc8e86d93cf0f1714a65f5d3fe79aab39" }, "watch": {"kind": "github-tag", "repo": "cryptpad/cryptpad", "tag_regex": "^([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)$", "pin": "any"}, "vendor": "vendor.txt", "deps": [ "nodejs" ], "env_packages": [], "static": false, "nss": false, "check": "t=$(mktemp -d) && for i in $(seq 1 50); do P=$(free_port); Q=$((P + 1)); cat /proc/net/tcp /proc/net/tcp6 2> /dev/null | has -E \"^ *[0-9]+: [0-9A-F]+:$(printf %04X \"$Q\") \" || break; done && W=$(free_port) && printf '%s\\n' 'const e = process.env; module.exports = { httpUnsafeOrigin: \"http://127.0.0.1:\" + e.P, httpAddress: \"127.0.0.1\", httpPort: +e.P, websocketPort: +e.W, maxWorkers: 1, filePath: e.T + \"/datastore/\", archivePath: e.T + \"/archive\", pinPath: e.T + \"/pins\", taskPath: e.T + \"/tasks\", blockPath: e.T + \"/block\", blobPath: e.T + \"/blob\", blobStagingPath: e.T + \"/blobstage\", decreePath: e.T + \"/decrees\", logPath: e.T + \"/logs\", logToStdout: true, installMethod: \"bucketvs\" };' > \"$t/config.js\" && { (cd share/cryptpad && T=$t P=$P Q=$Q W=$W CRYPTPAD_CONFIG=$t/config.js exec \"$PREFIX/bin/node\" server.js) > \"$t/log\" 2>&1 & } && pid=$! && P=$P Q=$Q W=$W bin/node -e 'const e = process.env, u = (p, x) => \"http://127.0.0.1:\" + p + x; const get = async (p, x) => { const r = await fetch(u(p, x)); return [r.status, await r.text()]; }; (async () => { let m; for (let i = 0; i < 180; i++) { try { m = await get(e.P, \"/\"); break; } catch { await new Promise((r) => setTimeout(r, 500)); } } const c = await get(e.P, \"/api/config\"), s = await get(e.Q, \"/sheet/inner.html\"), o = await get(e.P, \"/common/onlyoffice/dist/v9/web-apps/apps/api/documents/api.js\"), x = await get(e.P, \"/common/onlyoffice/dist/x2t/x2t.js\"); const ws = await new Promise((ok) => { const w = new WebSocket(\"ws://127.0.0.1:\" + e.W + \"/cryptpad_websocket\"); w.onopen = () => { w.close(); ok(\"open\"); }; w.onerror = () => ok(\"failed\"); }); console.log(\"cryptpad main\", m && m[0], m && /CryptPad/.test(m[1]), \"sandbox\", s[0], c[1].includes(u(e.Q, \"\")) ? \"sandbox-origin\" : \"no-sandbox-origin\", \"onlyoffice\", o[0], \"x2t\", x[0], \"websocket\", ws); })();' | grep 'main 200 true sandbox 200 sandbox-origin onlyoffice 200 x2t 200 websocket open'; r=$?; kill $(cat /proc/$pid/task/*/children 2> /dev/null) $pid 2> /dev/null; [ $r = 0 ] || tail -n 20 \"$t/log\"; rm -rf \"$t\"; exit $r" }