# react-idle-timer

> Activity detection for React.js

Latest version **5.7.3** (published 2026-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-idle-timer
pnpm add react-idle-timer
yarn add react-idle-timer
bun add react-idle-timer
```

## Health

**Score 60/100 (C)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.7.3 |
| Published | 2026-03-20 |
| First published | 2015-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 129.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1206 |
| Author | Randy Lebeau |
| Maintainers | supremetechnopriest |
| Keywords | react, idle, idle timer, timer, activity, active, timeout, session, session expiration, session timeout |

## Links

- npm: https://www.npmjs.com/package/react-idle-timer
- Repository: https://github.com/supremetechnopriest/react-idle-timer
- Homepage: https://idletimer.dev
- Issues: https://github.com/supremetechnopriest/react-idle-timer/issues/new/choose
- npm.io page: https://npm.io/package/react-idle-timer

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.7.3 (latest) — 2026-03-20
- 5.5.0-rc.9 (next) — 2023-01-12
- 5.7.2 — 2023-06-08
- 5.7.1 — 2023-06-08
- 5.7.0 — 2023-06-08
- 5.6.2 — 2023-04-21
- 5.6.1 — 2023-04-17
- 5.6.0 — 2023-04-14
- 5.5.3 — 2023-02-26
- 5.5.2 — 2023-01-25
- 5.5.1 — 2023-01-24
- 5.5.0 — 2023-01-24
- 5.5.0-rc.8 — 2023-01-10
- 5.5.0-rc.7 — 2023-01-10
- 5.5.0-rc.6 — 2023-01-10
- … 128 more at https://npm.io/package/react-idle-timer/versions

## README

<p align="center">
  <a href="https://idletimer.dev">
    <img height="100" src="./logo.svg" />
  </a>
</p>
<h1 align="center">React Idle Timer</h1>

<p align="center">
  <a href="https://www.npmjs.com/package/react-idle-timer">
    <img src="https://img.shields.io/npm/v/react-idle-timer.svg?label=version&color=ff8127" alt="Version">
  </a>
  <a href="https://github.com/supremetechnopriest/react-idle-timer/blob/master/LICENSE">
    <img src="https://img.shields.io/npm/l/react-idle-timer?color=ff7531" alt="License">
  </a>
  <a href="https://www.npmjs.com/package/react-idle-timer">
    <img src="https://img.shields.io/npm/dt/react-idle-timer.svg?color=ff693b" alt="Downloads">
  </a>
  <a href="https://github.com/sponsors/supremetechnopriest?logo=github">
    <img src="https://img.shields.io/github/sponsors/supremetechnopriest?color=ff5c45" alt="GitHub Sponsors">
  </a>
  <a href="https://github.com/SupremeTechnopriest/react-idle-timer/actions/workflows/tests.yml">
    <img src="https://img.shields.io/github/actions/workflow/status/SupremeTechnopriest/react-idle-timer/tests.yml?branch=master&label=tests&color=ff4f50" alt="Tests">
  </a>
  <a href="https://codeclimate.com/github/SupremeTechnopriest/react-idle-timer/test_coverage">
    <img src="https://img.shields.io/codeclimate/coverage/SupremeTechnopriest/react-idle-timer?color=ff415b"alt="Test Coverage">
  </a>
  <a href="https://codeclimate.com/github/SupremeTechnopriest/react-idle-timer/maintainability">
    <img src="https://img.shields.io/codeclimate/maintainability/SupremeTechnopriest/react-idle-timer?color=ff3266" alt="Maintainability">
  </a>
  <a href="https://discord.gg/YPuxNdWA4D">
    <img src="https://img.shields.io/discord/942899080621862913?color=ff2371&label=discord" alt="Discord">
  </a>
</p>

</br>

Welcome to the all new IdleTimer! The documentation has moved to [https://idletimer.dev](https://idletimer.dev). There you can find everything you need to get started using and contributing to IdleTimer.

</br>
</br>

<p align="center">
  <a href="https://idletimer.dev">
    <img src="https://img.shields.io/badge/%20-docs-ff8127.svg?&longCache=true&style=for-the-badge" alt="Docs" />
  </a>
  <a href="https://discord.gg/YPuxNdWA4D">
    <img src="https://img.shields.io/badge/%20-discord-ff554b.svg?&longCache=true&style=for-the-badge" alt="Discord" />
  </a>
  <a href="https://github.com/supremetechnopriest/react-idle-timer/issues/new/choose">
    <img src="https://img.shields.io/badge/%20-issues-FF2371.svg?&longCache=true&style=for-the-badge" alt="Issues" />
  </a>
</p>

<p align="center">
  <a href="https://github.com/standard/standard">
    <img src="https://cdn.rawgit.com/standard/standard/master/badge.svg" alt="JavaScript Style Guide" />
  </a>
</p>

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