https://github.com/nashaddams/supervisor
A supervisor for managing executable services.
https://github.com/nashaddams/supervisor
deno
Last synced: 2 months ago
JSON representation
A supervisor for managing executable services.
- Host: GitHub
- URL: https://github.com/nashaddams/supervisor
- Owner: nashaddams
- License: mit
- Created: 2025-09-28T16:02:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-28T16:16:04.000Z (9 months ago)
- Last Synced: 2025-10-07T20:55:58.298Z (9 months ago)
- Topics: deno
- Language: TypeScript
- Homepage: https://jsr.io/@nashaddams/supervisor
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# supervisor
[](https://jsr.io/@nashaddams/supervisor)
[](https://jsr.io/@nashaddams/supervisor)
A supervisor for managing executable services.
## Usage
```sh
deno run -A jsr:@nashaddams/supervisor [--help]
```
### Starting services
Create a `supervisor.yml` and define the services, e.g.:
```yaml
services:
argon:
exec: argon/argon
cobalt:
exec: cobalt/cobalt.sh
neon:
exec: neon/neon
compile:
context: neon
module: mod.ts
```
```sh
deno run -A jsr:@nashaddams/supervisor start
```
### Stopping services
```sh
deno run -A jsr:@nashaddams/supervisor stop
```
### Printing the service status
```sh
deno run -A jsr:@nashaddams/supervisor status
┌─────────┬─────────────┐
│ Service │ Status │
├─────────┼─────────────┤
│ argon │ not running │
├─────────┼─────────────┤
│ cobalt │ not running │
├─────────┼─────────────┤
│ neon │ running │
└─────────┴─────────────┘
```
### Compiling Deno executables
By providing the `compile` properties to a service, `supervisor` will create
standalone Deno executables for later use:
```sh
deno run -A jsr:@nashaddams/supervisor compile
```
### Library usage
Alternatively, `supervisor` can also be imported and used as a library class:
```ts
import { Supervisor } from "@nashaddams/supervisor";
const supervisor = new Supervisor();
```
See [the docs](https://jsr.io/@nashaddams/supervisor/doc) for further details.