{"_id":"@anrans001/pi-spark-control-plane","name":"@anrans001/pi-spark-control-plane","dist-tags":{"next":"0.1.0","latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anrans001/pi-spark-control-plane","version":"0.1.0","description":"PostgreSQL-backed control plane for pi-spark distributed runs.","license":"Apache-2.0","type":"module","repository":{"type":"git","url":"git+https://github.com/AnranS/pi_spark.git","directory":"packages/control-plane"},"bugs":{"url":"https://github.com/AnranS/pi_spark/issues"},"homepage":"https://github.com/AnranS/pi_spark#readme","publishConfig":{"access":"public"},"engines":{"node":">=24"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"bin":{"pi-spark-control-plane":"dist/main.js"},"dependencies":{"@anrans001/pi-spark-protocol":"0.1.0","fastify":"5.10.0","pg":"8.22.0"},"scripts":{"prepack":"npm run build","build":"tsc -b","typecheck":"tsc -b --pretty false","start":"node dist/main.js","dev":"tsx src/main.ts","test":"vitest run --root ../.. packages/control-plane/src/app.test.ts"},"gitHead":"97893713dd4abe44f30b21aed0b8ccb0b6e278d6","_id":"@anrans001/pi-spark-control-plane@0.1.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-EOQ6iF/yY5/ZAjxBrTXTN7/3EAvKzmoxTKIVR6Jwtp79klfkuAuVoibPcOL05b+8xYc4+9bVXx/LiReskvB5DQ==","shasum":"1df4bd1cd1c3f1800e07cfa6c1b3231acf11679f","tarball":"https://registry.npmjs.org/@anrans001/pi-spark-control-plane/-/pi-spark-control-plane-0.1.0.tgz","fileCount":31,"unpackedSize":136780,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBGGhWYuJwPFfSmjw+QXBx1wz4x5D3IXuWT4edYYE+nAAiEAkKTO0+g3yvQIG4knMO19vDN7b56v2fLVMRlNhA/37FA="}]},"_npmUser":{"name":"anrans001","email":"1040146674@qq.com"},"directories":{},"maintainers":[{"name":"anrans001","email":"1040146674@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-spark-control-plane_0.1.0_1784710734664_0.5482360938976247"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T08:58:54.532Z","0.1.0":"2026-07-22T08:58:54.790Z","modified":"2026-07-22T08:58:54.985Z"},"maintainers":[{"name":"anrans001","email":"1040146674@qq.com"}],"description":"PostgreSQL-backed control plane for pi-spark distributed runs.","homepage":"https://github.com/AnranS/pi_spark#readme","repository":{"type":"git","url":"git+https://github.com/AnranS/pi_spark.git","directory":"packages/control-plane"},"bugs":{"url":"https://github.com/AnranS/pi_spark/issues"},"license":"Apache-2.0","readme":"# @anrans001/pi-spark-control-plane\n\nPostgreSQL-backed Control Plane and embeddable Fastify application for\n[pi-spark](https://github.com/AnranS/pi_spark).\n\n```bash\nnpm install @anrans001/pi-spark-control-plane\nnpx pi-spark-control-plane --help\n```\n\nThe executable requires `DATABASE_URL` and `PI_SPARK_AUTH_CONFIG_FILE`. For an\nembedded server, import `buildApp`, `PgControlPlaneStore`, and `LeaseReaper`:\n\n```ts\nimport {\n  buildApp,\n  LeaseReaper,\n  PgControlPlaneStore,\n} from \"@anrans001/pi-spark-control-plane\";\n```\n\nDo not expose the HTTP endpoint directly to the public internet. Terminate TLS\nor mTLS at a trusted gateway and protect the PostgreSQL database. This package\nis ESM-only and requires Node.js 24 or newer.\n\nSee the [deployment and authentication guide](https://github.com/AnranS/pi_spark/blob/main/docs/usage.zh-CN.md).\n","readmeFilename":"README.md","_rev":"1-74a253c67121d3d7cac8eaa42ec90023"}