https://github.com/mskian/website-status
CLI to check website HTTP status and send notifications to ntfy.
https://github.com/mskian/website-status
cli http http-code http-status ntfy ntfy-sh ntfysh typescript typescript-cli uptime-monitor
Last synced: 7 months ago
JSON representation
CLI to check website HTTP status and send notifications to ntfy.
- Host: GitHub
- URL: https://github.com/mskian/website-status
- Owner: mskian
- License: mit
- Created: 2024-12-14T13:16:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-25T23:06:55.000Z (8 months ago)
- Last Synced: 2025-02-26T00:18:58.185Z (8 months ago)
- Topics: cli, http, http-code, http-status, ntfy, ntfy-sh, ntfysh, typescript, typescript-cli, uptime-monitor
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Website Status

CLI to check website HTTP status and send notifications to Self-hosted ntfy push server.
## Usage
- clone or download this repo
- install the packages```sh
pnpm install
```- create `.env` file and add your ntfy URL **(Important Step)**
**Example**
```env
NTFY_BASE_URL=https://ntfy.sh
```- you can also include the ENV Variable like this
```sh
NTFY_BASE_URL=https://ntfy.sh pnpm dev -u "https://example.com" -t "status"
```- Test CLI
**Example**
```sh
pnpm dev -u "https://example.com" -t "status"
```- build CLI
```sh
## Build CLI
pnpm build## Test the Production CLI
pnpm start -u "https://example.com" -t "status"```
- Link and run the CLI Locally
```sh
pnpm link --global
```- Run the CLI
**Example**
```sh
website -u "https://example.com" -t "status"
```- unlink CLI
```sh
pnpm uninstall --global website-status
```## Push Notification
For Notification Updates you can try `htfy.sh` self-hosted push notification service while setup replace `ntfy.sh` URL with your push server URL in `.env` File.
> **I mainly built this CLI for my tasker and termux automations.**
## LICENSE
MIT