# laravel-precognition

> Laravel Precognition.

Latest version **2.1.1** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-precognition
pnpm add laravel-precognition
yarn add laravel-precognition
bun add laravel-precognition
```

## 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.1.1 |
| Published | 2026-10-15 |
| First published | 2022-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 49.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 175 |
| Author | Laravel |
| Maintainers | taylorotwell |
| Keywords | laravel, precognition |

## Links

- npm: https://www.npmjs.com/package/laravel-precognition
- Repository: https://github.com/laravel/precognition
- Issues: https://github.com/laravel/precognition/issues
- npm.io page: https://npm.io/package/laravel-precognition

## Dependencies (1)

- [es-toolkit](https://npm.io/package/es-toolkit.md) ^1.32.0

## Recent versions

- 2.1.1 (latest) — 2026-10-15
- 2.0.0-beta.5 (beta) — 2026-03-19
- 2.1.0 — 2026-09-29
- 2.0.0 — 2026-03-25
- 2.0.0-beta.3 — 2026-03-05
- 2.0.0-beta.2 — 2026-02-25
- 2.0.0-beta.0 — 2026-02-10
- 1.0.2 — 2026-02-04
- 1.0.1 — 2026-01-30
- 1.0.0 — 2025-12-10
- 0.8.0 — 2025-11-26
- 0.7.3 — 2025-10-21
- 0.7.2 — 2025-03-04
- 0.7.1 — 2025-02-18
- 0.7.0 — 2025-02-18
- … 26 more at https://npm.io/package/laravel-precognition/versions

## README

# Laravel Precognition

<a href="https://github.com/laravel/precognition/actions"><img src="https://github.com/laravel/precognition/workflows/tests/badge.svg" alt="Test Status"></a>
<a href="https://github.com/laravel/precognition/actions"><img src="https://github.com/laravel/precognition/workflows/build/badge.svg" alt="Build Status"></a>
<a href="https://www.npmjs.com/package/laravel-precognition"><img src="https://img.shields.io/npm/dt/laravel-precognition" alt="Total Downloads"></a>
<a href="https://www.npmjs.com/package/laravel-precognition"><img src="https://img.shields.io/npm/v/laravel-precognition" alt="Latest Stable Version"></a>
<a href="https://www.npmjs.com/package/laravel-precognition"><img src="https://img.shields.io/npm/l/laravel-precognition" alt="License"></a>

## Introduction

Laravel Precognition allows you to anticipate the outcome of a future HTTP request. One of the primary use cases of Precognition is the ability to provide "live" validation in your frontend application.

## Official Documentation

Documentation for Laravel Precognition can be found on the [Laravel website](https://laravel.com/docs/precognition).

## Contributing

Thank you for considering contributing to Laravel Precognition! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

## Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

## Security Vulnerabilities

Please review [our security policy](https://github.com/laravel/precognition/security/policy) on how to report security vulnerabilities.

## License

Laravel Precognition is open-sourced software licensed under the [MIT license](LICENSE.md).

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