{"id":16587795,"url":"https://github.com/daltonmenezes/use-exit-intent","last_synced_at":"2025-04-13T11:09:48.205Z","repository":{"id":62814490,"uuid":"547058266","full_name":"daltonmenezes/use-exit-intent","owner":"daltonmenezes","description":"🐠 A React Hook to handle exit intent strategies","archived":false,"fork":false,"pushed_at":"2025-02-23T01:52:04.000Z","size":1366,"stargazers_count":88,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T11:09:43.166Z","etag":null,"topics":["exit-intent","hook","library","nextjs","react","typescript"],"latest_commit_sha":null,"homepage":"https://use-exit-intent.daltonmenezes.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daltonmenezes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"daltonmenezes","patreon":"daltonmenezes","issuehunt":"daltonmenezes/use-exit-intent?tab=idle"}},"created_at":"2022-10-07T04:24:45.000Z","updated_at":"2025-04-09T19:42:08.000Z","dependencies_parsed_at":"2024-03-24T00:28:30.777Z","dependency_job_id":"23a2e70f-297c-4219-94ec-fe6ed46abb2d","html_url":"https://github.com/daltonmenezes/use-exit-intent","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"e16ed6c3ab668da92cb9817d37083db713fedc9f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltonmenezes%2Fuse-exit-intent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltonmenezes%2Fuse-exit-intent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltonmenezes%2Fuse-exit-intent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daltonmenezes%2Fuse-exit-intent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daltonmenezes","download_url":"https://codeload.github.com/daltonmenezes/use-exit-intent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703199,"owners_count":21148118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exit-intent","hook","library","nextjs","react","typescript"],"created_at":"2024-10-11T22:55:03.336Z","updated_at":"2025-04-13T11:09:48.188Z","avatar_url":"https://github.com/daltonmenezes.png","language":"TypeScript","funding_links":["https://github.com/sponsors/daltonmenezes","https://patreon.com/daltonmenezes","https://issuehunt.io/r/daltonmenezes/use-exit-intent?tab=idle","https://www.patreon.com/daltonmenezes"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#use-exit-intent\"\u003e\n    \u003cimg alt=\"preview\" src=\"https://github.com/daltonmenezes/use-exit-intent/raw/main/apps/web/public/banner.svg\" width=\"100%\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\u003cstrong\u003euseExitIntent\u003c/strong\u003e: 🐠 A React Hook to handle exit intent strategies\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003c!-- GitHub --\u003e\n  \u003ca href=\"https://github.com/sponsors/daltonmenezes\"\u003e\n    \u003cimg alt=\"github url\" src=\"https://img.shields.io/badge/support%20on-github-1C1E26?style=for-the-badge\u0026labelColor=1C1E26\u0026color=646cff\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Patreon --\u003e\n  \u003ca href=\"https://www.patreon.com/daltonmenezes\"\u003e\n    \u003cimg alt=\"patreon url\" src=\"https://img.shields.io/badge/support%20on-patreon-1C1E26?style=for-the-badge\u0026labelColor=1C1E26\u0026color=646cff\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Version --\u003e\n  \u003ca href=\"https://github.com/daltonmenezes/use-exit-intent/releases\"\u003e\n     \u003cimg alt=\"releases url\" src=\"https://img.shields.io/npm/v/use-exit-intent.svg?style=for-the-badge\u0026labelColor=1C1E26\u0026color=646cff\"/\u003e\n  \u003c/a\u003e  \n  \u003c!-- License --\u003e\n  \u003ca href=\"https://github.com/daltonmenezes/use-exit-intent/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"license url\" src=\"https://img.shields.io/badge/license%20-MIT-1C1E26?style=for-the-badge\u0026labelColor=1C1E26\u0026color=646cff\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e The Exit Intent strategy is a great way to increase your conversion rate. That strategy is commonly used to show a modal/popup when the user is about to leave your website.\n\n# 🐠 Features\n- 🚀 Multiple handlers can be registred\n- 🔥 Highly configurable\n- 🧠 Different strategies for Desktop and Mobile\n- ⛔️ Unsubscription support with cookies\n- 🎉 Built with TypeScript\n\n# 🐠 Installation\nIn your terminal, run:\n\n- npm\n    ```bash\n    npm i use-exit-intent\n    ```\n- pnpm\n    ```bash\n    pnpm i use-exit-intent\n    ```\n- yarn\n    ```bash\n    yarn add use-exit-intent\n    ```\n\n# 🐠 Usage\n\nIn your React component:\n\n```tsx\nimport { useExitIntent } from 'use-exit-intent'\n\nexport function App() {\n  const { registerHandler } = useExitIntent()\n\n  registerHandler({\n    id: 'openModal',\n    handler: () =\u003e console.log('Hello from handler!')\n  })\n\n  // ...\n}\n```\n\n# 🐠 Knowledge\n- [Docs](https://use-exit-intent.daltonmenezes.com/docs/getting-started/overview)\n- [Playground](https://use-exit-intent.daltonmenezes.com/#playground)\n\n\n# 🐠 Contributing\n\u003e **Note**: contributions are always welcome, but always **ask first**, — please — before work on a PR.\n\nThat said, there's a bunch of ways you can contribute to this project, like by:\n\n- :beetle: Reporting a bug\n- :page_facing_up: Improving this documentation\n- :rotating_light: Sharing this project and recommending it to your friends\n- :dollar: Supporting this project on GitHub Sponsors or Patreon\n- :star2: Giving a star on this repository\n\n# License\n\n[MIT © Dalton Menezes](https://github.com/daltonmenezes/use-exit-intent/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaltonmenezes%2Fuse-exit-intent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaltonmenezes%2Fuse-exit-intent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaltonmenezes%2Fuse-exit-intent/lists"}