Back to features
Monitoring as code
Checks that live next to your code.
Manage OnlineOrNot checks, browser checks, heartbeats and status pages with Terraform, the TypeScript SDK, or a coding agent like Claude Code or Cursor, and keep monitoring in the same repository as your services.
- Feature
- Terraform provider for checks, heartbeats and status pages
- Feature
- Playwright checks deployed from standalone test files
- Feature
- Typed TypeScript SDK for the full API
- Feature
- Agent Skill and MCP server for Claude Code, Cursor and Codex
Example
resource "onlineornot_browser_check" "homepage" {
name = "Homepage Playwright check"
script = file("${path.module}/homepage.spec.js")
test_interval = 300
test_regions = ["aws:us-east-1"]
}- Terraform for every monitor.
- The OnlineOrNot Terraform provider manages uptime, browser, DNS and TCP checks, heartbeats, status pages, maintenance windows, webhooks and API tokens. Review monitoring changes in pull requests and apply them from CI.
- onlineornot_uptime_check
- onlineornot_browser_check
- onlineornot_heartbeat
- onlineornot_status_page
- Playwright checks from test files.
- Write a browser check as a normal Playwright Test file and run it locally. Terraform reads it with file(), or deploys a whole folder with fileset(), and updates the same monitor when the file changes.
- Standard @playwright/test syntax
- One monitor per file
- Drift detected on plan
- A typed SDK for scripts and tools.
- @onlineornot/api is a TypeScript client generated from the OnlineOrNot OpenAPI description, with optional Zod and Valibot schemas. Use it in deploy scripts, CI jobs and internal tools.
- npm install @onlineornot/api
- Zod and Valibot schemas
- No runtime dependencies
- Use the TypeScript SDK
- Let your coding agent set it up.
- Install the OnlineOrNot plugin in Claude Code or Codex, or the Agent Skill and MCP server in Cursor. Ask the agent to monitor your app: it reads the repository, proposes checks and heartbeats, and creates them after you approve.
- Claude Code
- Cursor
- Codex
- Any MCP client
Frequently asked questions
The short version. The docs have the details when you need them.
- Does OnlineOrNot have a Terraform provider?
- Yes. The onlineornot/onlineornot provider on the Terraform Registry manages checks, heartbeats, status pages, maintenance windows, webhooks, environment variables and API tokens.
- Can I deploy Playwright tests as checks?
- Yes. Each browser check accepts one self-contained Playwright Test file. Deploy it with Terraform, the TypeScript SDK, the CLI or the API. Local imports, configuration files and extra dependencies are not uploaded.
- Can I set up OnlineOrNot with Claude Code or Cursor?
- Yes. The OnlineOrNot Agent Skill teaches the agent what to monitor, and the hosted MCP server lets it create and manage checks, heartbeats and status pages in your account, with your permissions.
- Is there a CLI too?
- Yes. The onlineornot CLI manages checks, heartbeats, status pages and more from your terminal or CI, prints JSON, and can run as a local MCP server.
Put your monitoring in code.
Start with one check in Terraform or one prompt to your coding agent, then grow coverage in the same pull requests as your services.