pidnap
v0.0.0-dev.7
Published
Process manager with init-system capabilities for tasks, cron jobs, and long-running processes.
Keywords
Readme
pidnap
Process manager with init-system capabilities for tasks, cron jobs, and long-running processes.
Install
pnpm installRun
pidnap initBy default, this looks for pidnap.config.ts in the current directory. To use a different config file:
pidnap init --config path/to/config.tsCLI
pidnap status
pidnap processes list
pidnap processes add --name api --definition '{"command":"node","args":["server.js"]}'
pidnap processes restart api
pidnap crons list
pidnap tasks list
pidnap tasks remove task-1Architecture
- CLI:
src/cli.tsloads config, starts RPC server, boots manager - Core:
src/manager.tsorchestrates tasks, crons, and restarting processes - Runtime:
src/lazy-process.tsexecutes processes;src/restarting-process.tshandles restarts - Scheduling:
src/cron-process.tsmanages cron jobs with retry/queue - Env:
src/env-manager.tsloads.env+ watches for reloads - API:
src/api/contract.tsdefines ORPC contract,src/api/server.tsimplements it
Development
pnpm run typecheck
pnpm run lint
pnpm run format
pnpm test