cloudflare/telescope
TypeScript
Captured source
source ↗cloudflare/telescope
Description: Cross-browser web performance testing agent
Language: TypeScript
License: NOASSERTION
Stars: 285
Forks: 32
Open issues: 55
Created: 2025-10-21T16:40:19Z
Pushed: 2026-06-10T19:47:01Z
Default branch: main
Fork: no
Archived: no
README:
Telescope
A cross-browser web performance testing toolkit built on Playwright. This repository is a monorepo containing two packages:
| Package | Description | | ---------------------------------------------------- | ---------------------------------------------------------------------------------------- | | [packages/telescope](./packages/telescope) | Core CLI and library (@cloudflare/telescope) | | [packages/telescope-web](./packages/telescope-web) | Web app for uploading and viewing results (telescopetest.io) |
---
packages/telescope
A TypeScript CLI and Node.js library that launches real browsers, collects performance data, and saves results locally.
Supported browsers: Chrome, Chrome Beta, Chrome Canary, Edge, Firefox, Safari (WebKit)
What it collects per test:
- HAR file (
pageload.har) - Web Vitals and performance metrics (
metrics.json) - Console output (
console.json) - Resource timing data (
resources.json) - Screenshot (
screenshot.png) - Filmstrip and video of the page load
Quick start
Install from npm:
npm install -g @cloudflare/telescope telescope -u https://example.com -b chrome
The postinstall script automatically downloads Playwright's browser binaries (~700MB).
Or from a clone of this repo:
npm install npm run build -w packages/telescope npm link # registers `telescope` globally telescope -u https://example.com -b chrome
See [packages/telescope/README.md](./packages/telescope/README.md) for full documentation.
---
packages/telescope-web
The Astro + Cloudflare Workers web application hosted at telescopetest.io. Users upload Telescope ZIP results and view an interactive breakdown of metrics, waterfall, filmstrip, console logs, and more.
Stack: Astro v6, Cloudflare Workers, D1 (SQLite via Prisma), R2, Workers AI
Quick start
cd packages/telescope-web npm install npm run dev:setup # one-time setup: DB, migrations, Prisma client, type generation npm run dev
See [packages/telescope-web/README.md](./packages/telescope-web/README.md) for full documentation.
---
Repository structure
packages/ telescope/ # Core CLI and library src/ # TypeScript source __tests__/ # Integration tests (Vitest) tests/ # Static test fixtures processors/ # Standalone HTML report generator support/ # Browser support files telescope-web/ # telescopetest.io web app src/ # Astro pages, components, and server logic migrations/ # D1 SQL migrations prisma/ # Prisma schema .github/ workflows/ test.yml # CI: builds and tests packages/telescope on every PR deploy.yml # CD: deploys packages/telescope-web on merge to main
CI
- `test.yml` — runs on every push and PR (excluding
packages/telescope-web/**changes). Buildspackages/telescopeand runs the full browser test suite inside the official Playwright Docker container. - `deploy.yml` — runs on push to
mainwhenpackages/telescope-web/**changes. Applies D1 migrations, builds, and deploys to Cloudflare Workers.
License
Apache 2.0 — see [LICENSE](./LICENSE).
Notability
notability 5.0/10New repo by Cloudflare, 284 stars, solid but not notable launch