# har-examples

> A collection of HAR files for developing against the HAR spec

Latest version **5.0.2** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install har-examples
pnpm add har-examples
yarn add har-examples
bun add har-examples
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.2 |
| Published | 2026-11-19 |
| First published | 2020-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 302.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 401 |
| Author | ReadMe |
| Maintainers | gkoberger, domharrington, mjcuva, jonursenbach, rafegoldberg, darrenyong |

## Links

- npm: https://www.npmjs.com/package/har-examples
- Repository: https://github.com/readmeio/oas
- Homepage: https://github.com/readmeio/oas#readme
- Issues: https://github.com/readmeio/oas/issues
- npm.io page: https://npm.io/package/har-examples

## Recent versions

- 5.0.2 (latest) — 2026-11-19
- 5.0.1 — 2026-04-02
- 5.0.0 — 2026-03-02
- 4.0.10 — 2025-12-16
- 4.0.9 — 2025-11-11
- 4.0.8 — 2025-10-06
- 4.0.7 — 2025-08-04
- 4.0.6 — 2025-07-29
- 4.0.5 — 2025-06-04
- 4.0.4 — 2025-04-07
- 4.0.3 — 2025-04-04
- 4.0.2 — 2025-03-06
- 4.0.1 — 2025-03-06
- 4.0.0 — 2025-03-05
- 3.1.1 — 2022-04-26
- … 13 more at https://npm.io/package/har-examples/versions

## README

# har-examples

A collection of HAR files for developing against the [HAR specification](http://www.softwareishard.com/blog/har-12-spec/).

[![npm](https://img.shields.io/npm/v/har-examples)](https://npm.im/har-examples) [![Build](https://github.com/readmeio/oas/workflows/CI/badge.svg)](https://github.com/readmeio/oas/tree/main/packages/har-examples)

<a href="https://readme.com">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/readmeio/.github/main/oss-header-dark.png">
  <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png">
  <img alt="ReadMe Open Source" src="https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png">
</picture>
</a>

## Installation

```
npm install --save-dev har-examples
```

## Usage

```ts
import hars from 'har-examples';

console.log(hars.short);
```

```js
{
  "log": {
    "version": '1.2',
    "creator": {
      "name": "ReadMe",
      "version": "1.0",
    },
    "entries": [
      {
        "startedDateTime": "2021-07-09T23:28:52.627Z",
        "time": 85,
        "request": {
          "method": "GET",
          "url": "https://httpbin.org/get",
          "httpVersion": "HTTP/1.1",
          "cookies": [],
          "headers": [],
          "queryString": [],
          "bodySize": -1,
          "headersSize": -1
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Content-Length",
              "value": '404'
            }
          ],
          "content": {
            "size": 404,
            "mimeType": "application/json",
            "text": "{\"args\":{},\"headers\":{\"Accept\":\"*\/*\",\"Accept-Encoding\":\"gzip, deflate, br\",\"Cache-Control\":\"no-cache\",\"Host\":\"httpbin.org\"},\"origin\":\"127.0.0.1\",\"url\":\"https://httpbin.org/get\"}"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": -1,
        },
        "cache": {},
        "timings": {
          "wait": 0,
          "receive": 0,
        },
      },
    ],
  },
};
```

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