# @svta/cml-request

> Common Media Request and Response types

Latest version **1.0.17** (published 2026-09-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @svta/cml-request
pnpm add @svta/cml-request
yarn add @svta/cml-request
bun add @svta/cml-request
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.17 |
| Published | 2026-09-08 |
| First published | 2025-10-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 84 |
| Maintainers | littlespex, jason_n_thibeault |
| Keywords | Common Media Library, CML, Common Media Request, Common Media Response |

## Links

- npm: https://www.npmjs.com/package/@svta/cml-request
- Repository: https://github.com/streaming-video-technology-alliance/common-media-library
- Homepage: https://github.com/streaming-video-technology-alliance/common-media-library/tree/main/libs/request
- Issues: https://github.com/streaming-video-technology-alliance/common-media-library/issues
- npm.io page: https://npm.io/package/@svta/cml-request

## Recent versions

- 1.0.17 (latest) — 2026-09-08
- 1.0.16 — 2026-09-04
- 1.0.15 — 2026-07-28
- 1.0.14 — 2026-07-21
- 1.0.13 — 2026-05-24
- 1.0.12 — 2026-05-13
- 1.0.11 — 2026-04-30
- 1.0.10 — 2026-04-15
- 1.0.9 — 2026-02-23
- 1.0.8 — 2026-02-12
- 1.0.7 — 2026-02-09
- 1.0.6 — 2026-02-06
- 1.0.5 — 2026-02-05
- 1.0.4 — 2026-02-03
- 1.0.3 — 2026-01-26
- … 7 more at https://npm.io/package/@svta/cml-request/versions

## README

# @svta/cml-request

Common Media Request and Response types.

## Installation

```bash
npm i @svta/cml-request
```

## Usage

```typescript
import type { CommonMediaRequest, CommonMediaResponse, Requester } from "@svta/cml-request";

// A requester adapts an HTTP client to the common request and response types.
const fetchRequester: Requester = async (request: CommonMediaRequest): Promise<CommonMediaResponse> => {
	const response = await fetch(request.url, { method: request.method, headers: request.headers });
	return {
		request,
		url: response.url,
		status: response.status,
		statusText: response.statusText,
	};
};

// Pass fetchRequester to a component that accepts a Requester, and call it with a request like this one.
const request: CommonMediaRequest = {
	url: "https://example.com/video/segment_001.m4s",
	method: "GET",
};
```

---
_Source: https://npm.io/package/@svta/cml-request · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
