# conjure-client

> An HTTP bridge library for use in front end applications and generated conjure code

Latest version **2.20.0** (published 2026-07-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install conjure-client
pnpm add conjure-client
yarn add conjure-client
bun add conjure-client
```

## 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 | 2.20.0 |
| Published | 2026-07-01 |
| First published | 2018-05-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 92.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Palantir Technologies, Inc. |
| Maintainers | palantir |

## Links

- npm: https://www.npmjs.com/package/conjure-client
- Repository: https://github.com/palantir/conjure-typescript-runtime
- Homepage: https://github.com/palantir/conjure-typescript-runtime#readme
- Issues: https://github.com/palantir/conjure-typescript-runtime/issues
- npm.io page: https://npm.io/package/conjure-client

## Dependencies (1)

- [web-streams-polyfill](https://npm.io/package/web-streams-polyfill.md) ^3.2.1

## Recent versions

- 2.20.0 (latest) — 2026-07-01
- 2.19.0 — 2026-03-24
- 2.18.0 — 2026-03-18
- 2.15.0 — 2025-06-04
- 2.14.0 — 2025-03-31
- 2.13.0 — 2025-02-18
- 2.12.0 — 2025-01-31
- 2.11.0 — 2024-06-19
- 2.10.0 — 2024-01-30
- 2.9.0 — 2022-09-06
- 2.9.0-rc1 — 2022-09-06
- 2.8.0 — 2022-04-04
- 2.7.0 — 2022-03-28
- 2.6.0 — 2022-02-22
- 2.5.0 — 2021-11-17
- … 20 more at https://npm.io/package/conjure-client/versions

## README

<p align="right">
<a href="https://autorelease.general.dmz.palantir.tech/palantir/conjure-typescript-runtime"><img src="https://img.shields.io/badge/Perform%20an-Autorelease-success.svg" alt="Autorelease"></a>
</p>

# conjure-typescript-runtime
A light-weight Promise based HTTP client library for the browser.

## Overview

conjure-typescript-runtime leverages [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to provide a
simple interface for making HTTP requests. conjure-typescript-runtime was designed to handle the RPC layer for
clients generated by [Conjure-TypeScript](https://github.com/palantir/conjure-typescript).

__Browser compatibility__: This library uses fetch so you should ensure that your runtime environment supports ES6 features.

## Example

```typescript
import { DefaultHttpApiBridge, MediaType } from "conjure-client";
import { SomeService } from "some-conjure-api";

const bridge = new DefaultHttpApiBridge({
    baseUrl: "https://some.base.url.com",
    userAgent: {
        productName: "yourProductName",
        productVersion: "1.0.0"
    }
})

const service = new SomeService(bridge);
service.getSomeResult()
    .then(function (response) {
        // handle success
        console.log(response);
    })
    .catch(function (error) {
        // handle error
        console.log(error);
    })
    .then(function () {
        // always executed
    });
```


## Contributing

See the [CONTRIBUTING.md](./CONTRIBUTING.md) document.

## License
This project is made available under the [Apache 2.0 License](/LICENSE).

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