Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions extensions/is-it-alive/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# Raycast specific files
raycast-env.d.ts
.raycast-swift-build
.swiftpm
compiled_raycast_swift
compiled_raycast_rust

# misc
.DS_Store

.pnpm-store
10 changes: 10 additions & 0 deletions extensions/is-it-alive/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Is It Alive? Changelog

## [Initial Release] - {PR_MERGE_DATE}

- Monitor status pages from a single Raycast command
- Auto-detect providers: Statuspage.io, Better Stack, incident.io, and Railway
- Add, edit, and delete monitored sites with local storage persistence
- Color-coded site list with parallel fetch and incident accessories
- Detail view with overview, active incidents, and per-component status
- 90-day uptime history charts with SVG bar visualization
21 changes: 21 additions & 0 deletions extensions/is-it-alive/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Alerix

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
106 changes: 106 additions & 0 deletions extensions/is-it-alive/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<p align="center">
<img src="assets/extension-icon.png" width="128" alt="Is It Alive? icon" />
</p>

<h1 align="center">Is It Alive?</h1>

<p align="center">
Raycast extension that monitors status pages so you can quickly answer: <strong>is the outage on my side or theirs?</strong>
</p>

<p align="center">
Add status page URLs, get a color-coded list of services, and drill into component-level detail with uptime history — without opening a browser tab.
</p>

## Screenshots

<p align="center">
<img src="metadata/is-it-alive-1.png" alt="Monitored sites list with live status" width="720" />
</p>

<p align="center">
<em>Site list — parallel fetch, status subtitles, and quick access to details.</em>
</p>

<p align="center">
<img src="metadata/is-it-alive-2.png" alt="Status detail view with 90-day uptime charts" width="720" />
</p>

<p align="center">
<em>Detail view — component breakdown, active incidents, and 90-day uptime history.</em>
</p>

## Supported status pages

The extension auto-detects the provider when you add a URL. Detection order: **Railway → incident.io → Better Stack → Statuspage**.

| Provider | Examples | Detection |
| --- | --- | --- |
| **Railway** | [status.railway.com](https://status.railway.com) | Hostname match |
| **incident.io** | [status.openai.com](https://status.openai.com) | `/proxy/{host}/component_impacts` API |
| **Better Stack** | [status.yachtway.com](https://status.yachtway.com) | `/index.json` JSON:API |
| **Statuspage.io** | [status.claude.com](https://status.claude.com), GitHub, Vercel | `/api/v2/summary.json` |

incident.io is checked before Statuspage because some Statuspage hosts expose proxy-style URLs that look similar but lack incident.io-only endpoints like `component_impacts`.

## Features

- **Site list** — parallel fetch, status subtitle, incident accessories
- **Add / edit / delete** — sites stored in Raycast local storage
- **Detail view** — overview, active incidents, per-component status
- **Uptime charts** — 90-day SVG bar history with uptime percentage


## Usage

1. Open **Is It Alive?** in Raycast
2. Add a status page URL (display name is optional — it defaults to the page title)
3. Press Enter to preview

## Development

Requires [Raycast](https://raycast.com), Node.js, and npm.

```bash
npm install
npm run dev # run in Raycast dev mode
npm run lint # lint + format check
npm run build # production build
```

### Project structure

```
src/
alive.tsx # main list command
adapters/
index.ts # provider detection + registry
statuspage.ts # Statuspage.io v2 API
betterstack.ts # Better Stack /index.json API
incident-io.ts # incident.io proxy API
railway.ts # Railway status API
components/
site-form.tsx # add / edit form
site-detail.tsx # preview with uptime charts
hooks/use-sites.ts # local storage CRUD
lib/
fetch-json.ts # shared JSON fetch helper
snapshot-text.ts # uptime labels + status descriptions
status-colors.ts # indicator + component colors
uptime-chart.ts # SVG chart generation + uptime math
url.ts # URL normalization + Railway host check
types/ # shared + provider-specific API types
```

### Adding a new provider

1. Add a `SiteProvider` variant in `src/types/index.ts`
2. Add provider API types under `src/types/` if needed
3. Implement `StatusAdapter` (`detect?` + `fetchSnapshot`) in `src/adapters/`
4. Register it in `src/adapters/index.ts` and update `detectProvider`

Each adapter normalizes its API into a shared `StatusSnapshot` shape so the UI stays provider-agnostic.

## License

MIT
Binary file added extensions/is-it-alive/assets/extension-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions extensions/is-it-alive/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { defineConfig } = require("eslint/config");
const raycastConfig = require("@raycast/eslint-config");

module.exports = defineConfig([...raycastConfig]);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/is-it-alive/metadata/is-it-alive-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading