Creating a Stylus Project
You can create a new Stylus project by running the stylus init
command. This creates a new directory with a default configuration and a monitor.d
directory with a single monitor test.
$ stylus init ~/stylus
Initializing directory: "~/stylus"...
Done!
Run `stylus "~/stylus"` to start the server
$ tree ~/stylus/
├── config.yaml
├── monitor.d
│ └── monitor
│ ├── config.yaml
│ └── test.sh
└── static
└── README.md
Once you've created the project, you can start the server with the stylus run
command.
stylus run ~/stylus
If you open your web browser to http://localhost:8000
, you should see a
very basic default page with a green status. You'll also find a link to the
status JSON and style CSS endpoints, as well as the per-monitor log output:
Stylus
Updated at 2025-07-08T22:46:07.257Z
Monitor Status Exit Log monitor green Success (0) Log
By default, Stylus renders a basic summary page for all of your monitors. This lets you work on your monitors before creating any custom pages.