# @prismicio/client

> The official JavaScript + TypeScript client library for Prismic

Latest version **7.23.1** (published 2026-11-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @prismicio/client
pnpm add @prismicio/client
yarn add @prismicio/client
bun add @prismicio/client
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.23.1 |
| Published | 2026-11-11 |
| First published | 2020-09-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 1 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 177 |
| Author | Prismic |
| Maintainers | samuelhorn, prismic, sre, arnaudlewis, michel.chau, gholgot, odim, prismic-ci, lihbr, bapmrl, angeloashmore, levimykel, boubiyeah, filipeue, ruben-prismic, pribeiro89, paulyvpg, jomifepe, artemine, tomaboro, relisui, ari-prismic |
| Keywords | client, cms, helpers, prismic, prismic.io, toolbox, types, typescript, utils |

## Links

- npm: https://www.npmjs.com/package/@prismicio/client
- Repository: https://github.com/prismicio/prismic-client
- Homepage: https://github.com/prismicio/prismic-client#readme
- Issues: https://github.com/prismicio/prismic-client/issues
- npm.io page: https://npm.io/package/@prismicio/client

## Dependencies (1)

- [imgix-url-builder](https://npm.io/package/imgix-url-builder.md) ^0.0.6

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 7.23.1 (latest) — 2026-11-11
- 7.23.1-canary.516a98b (canary) — 2026-11-27
- 7.23.1-pr.501.a2a7a40 (pr-501) — 2026-11-27
- 7.23.1-pr.500.44df067 (pr-500) — 2026-11-25
- 7.23.1-pr.499.ca98dd0 (pr-499) — 2026-11-24
- 7.23.1-pr.498.2993f5e (pr-498) — 2026-11-23
- 7.23.1-pr.497.06b5ff7 (pr-497) — 2026-11-20
- 7.23.1-pr.496.400f2b8 (pr-496) — 2026-11-18
- 7.23.1-pr.495.49b9494 (pr-495) — 2026-11-18
- 7.23.1-pr.494.bbf6958 (pr-494) — 2026-11-18
- 7.23.1-pr.493.6b3afad (pr-493) — 2026-11-17
- 7.23.1-pr.492.db43678 (pr-492) — 2026-11-16
- 7.23.1-pr.491.de51fc9 (pr-491) — 2026-11-13
- 7.23.0-pr.487.538988e (pr-487) — 2026-11-11
- 7.23.0-pr.489.0e99b11 (pr-489) — 2026-11-10
- … 337 more at https://npm.io/package/@prismicio/client/versions

## README

# @prismicio/client

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![Conventional Commits][conventional-commits-src]][conventional-commits-href]
[![License][license-src]][license-href]

The official JavaScript + TypeScript client library for [Prismic][prismic].

- Query content from a Prismic repository.
- Refines queries using [Filters][prismic-filters].
- Automatically query draft content during [preview sessions][prismic-previews].
- Built for browser and server usage.

```typescript
import * as prismic from "@prismicio/client"

// Create a client
const client = prismic.createClient("my-repository")

// Then query for your content
const blogPosts = await client.getAllByType("blog_post")
```

## Install

```bash
npm install @prismicio/client
```

Using an AI agent? Teach it how to use `@prismicio/client` by installing the Prismic skill:

```bash
npx skills add --global --yes prismicio/skills
```

## Documentation

To discover what's new on this package check out [the changelog][changelog]. For full documentation, visit the [official Prismic documentation][prismic-docs].

## Contributing

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Prismic developer community!

**Asking a question**: [Open a new topic][forum-question] on our community forum explaining what you want to achieve / your question. Our support team will get back to you shortly.

**Reporting a bug**: [Open an issue][repo-bug-report] explaining your application's setup and the bug you're encountering.

**Suggesting an improvement**: [Open an issue][repo-feature-request] explaining your improvement or feature so we can discuss and learn more.

**Submitting code changes**: For small fixes, feel free to [open a pull request][repo-pull-requests] with a description of your changes. For large changes, please first [open an issue][repo-feature-request] so we can discuss if and how the changes should be implemented.

For more clarity on this project, check out the detailed [CONTRIBUTING.md][contributing] document.

## License

```
Copyright 2013-2024 Prismic <contact@prismic.io> (https://prismic.io)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```

<!-- Links -->

[prismic]: https://prismic.io
[prismic-filters]: https://prismic.io/docs/rest-api-technical-reference#q
[prismic-previews]: https://prismic.io/docs/guides/previews
[prismic-docs]: https://prismic.io/docs/technical-reference/prismicio-client
[changelog]: ./CHANGELOG.md
[contributing]: ./CONTRIBUTING.md
[forum-question]: https://community.prismic.io/c/kits-and-dev-languages/javascript/14
[repo-bug-report]: https://github.com/prismicio/prismic-client/issues/new?assignees=&labels=bug&template=bug_report.md&title=
[repo-feature-request]: https://github.com/prismicio/prismic-client/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=
[repo-pull-requests]: https://github.com/prismicio/prismic-client/pulls

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@prismicio/client/latest.svg
[npm-version-href]: https://npmjs.com/package/@prismicio/client
[npm-downloads-src]: https://img.shields.io/npm/dm/@prismicio/client.svg
[npm-downloads-href]: https://npmjs.com/package/@prismicio/client
[github-actions-ci-src]: https://github.com/prismicio/prismic-client/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/prismicio/prismic-client/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/github/prismicio/prismic-client.svg
[codecov-href]: https://codecov.io/gh/prismicio/prismic-client
[conventional-commits-src]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
[conventional-commits-href]: https://conventionalcommits.org
[license-src]: https://img.shields.io/npm/l/@prismicio/client.svg
[license-href]: https://npmjs.com/package/@prismicio/client

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