# Time to Stable

> Live empirical analysis of how long web platform features take to ship across browsers, built on MDN Browser Compat Data (v8.1.11) and W3C WebDX web-features (v3.48.0).

## Content Negotiation & Formats
Every HTML page supports clean Markdown and JSON representations:
- Send `Accept: text/markdown` header OR append `?type=md` for token-efficient Markdown.
- Send `Accept: application/json` header OR append `?type=json` for structured JSON.
- Append `?type=csv` on comparison views for RFC-4180 CSV exports.
- Append `?type=rss` on `/when-stable` and `/baseline` for RSS 2.0 feeds.

## Primary Endpoints
- [Home / Default Comparison](https://timetostable.com/): Chrome, Firefox & Safari across DOM API, CSS, HTML, JS
- [Full Data Briefing](https://timetostable.com/llms-full.txt): Pre-computed platform metrics, Kaplan-Meier survival rates, and all 7 stories
- [OpenAPI 3.1 Specification](https://timetostable.com/openapi.json): Machine-readable API schema
- [Data Stories Hub](https://timetostable.com/stories): Seven empirical studies of web platform convergence
- [Baseline Explorer](https://timetostable.com/baseline): W3C WebDX Baseline Widely/Newly/Limited breakdown (1236 features)
- [About & Author](https://timetostable.com/about): Project background, statistical methodology, architecture, and creator Paul Kinlan

## Clean Comparison URLs
- `https://timetostable.com/compare/chrome-vs-safari`
- `https://timetostable.com/compare/chrome-vs-firefox`
- `https://timetostable.com/compare/firefox-vs-safari`
- `https://timetostable.com/compare/chrome-vs-firefox-vs-safari`
- `https://timetostable.com/compare/chrome-edge-firefox-safari`
- `https://timetostable.com/compare/baseline-core-7`
- Append `/{category}` (`api`, `css`, `html`, `http`, `javascript`, `webassembly`), `/not-stable`, or `/when-stable`.
- Single feature lookup: `https://timetostable.com/feature/{web-feature-id-or-bcd-key}` (e.g. `/feature/subgrid`, `/feature/api.Navigator.clipboard`).

## JSON API Endpoints
- `GET https://timetostable.com/api/meta` — Current BCD/web-features versions, R2/bundled source, and release history
- `GET https://timetostable.com/api/compare?browsers=chrome,firefox,safari&categories=css,api&mode=web-features` — Full statistical summary + survival curves
- `GET https://timetostable.com/api/stats?browser-chrome=on&browser-safari=on&feature-css=on` — Full statistical breakdown
- `GET https://timetostable.com/api/features?browsers=chrome,safari&q=grid&sort=days&dir=desc` — Searchable, sortable, paginated feature rows
- `GET https://timetostable.com/api/feature/{id}` — Single Web Feature or BCD key release timeline
- `GET https://timetostable.com/api/stories` & `GET https://timetostable.com/api/stories/{slug}` — Pre-computed editorial data stories

## Statistical Methodology
1. **Right-Censoring Aware**: Naive yearly averages understate recent-year wait times because slow features have not yet finished converging. Time to Stable reports cohort completion rates and computes **Kaplan–Meier survival probabilities** (1y, 2y, 5y) incorporating still-waiting features.
2. **Median & Quantiles**: Time-to-stable distributions are heavily right-skewed; we report median, IQR, p90, and fast-follow share (≤30d) alongside mean.
3. **Dual Granularity**: Compare either granular `bcd` spec keys (17,891 keys) or user-facing `web-features` (1236 features).
