Installation

Cronhoster has three pieces: a server you stand up once — the sync API plus the runner that executes your jobs — a client that mirrors your cron folder up to it, and your scripts, a folder of plain JavaScript you author on your own machine.

Server →

Run the installer once on a Linux box. It stands up the localhost sync API and the scheduler that runs your scripts on time, both as systemd services.

Client →

The sync client runs on your own machine and mirrors your whole cron folder up to the server whenever it changes — or continuously with --watch.

The shape of it

Author a folder of JavaScript (see Usage → Client), the client syncs the whole tree to your server, and the runner executes each top-level file whose name matches the schedule grammar. Everything else in the folder — shared libraries, helpers, sub-folders — rides along and is imported normally.

It is the same drop-a-folder idea as the rest of the localhoster family, but unlike sitehoster the folder is not partitioned by domain: it is one flat script directory mirrored as a whole. Start with the server.