{"id":21418729,"url":"https://github.com/jasurhaydarovcode/react-mower","last_synced_at":"2025-07-14T05:31:35.310Z","repository":{"id":259179079,"uuid":"876621445","full_name":"jasurhaydarovcode/react-mower","owner":"jasurhaydarovcode","description":"npm i react-mower","archived":false,"fork":false,"pushed_at":"2024-10-30T05:47:13.000Z","size":162,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T08:38:05.184Z","etag":null,"topics":["cursor","devtools","protection","react","security"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-mower","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/jasurhaydarovcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-10-22T09:28:54.000Z","updated_at":"2024-10-30T05:47:16.000Z","dependencies_parsed_at":"2024-10-23T09:17:13.331Z","dependency_job_id":"f79126c8-7d6d-4719-ba10-b6f2a6a2ad4c","html_url":"https://github.com/jasurhaydarovcode/react-mower","commit_stats":null,"previous_names":["jasurhaydarovcode/react-mower"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasurhaydarovcode%2Freact-mower","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasurhaydarovcode%2Freact-mower/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasurhaydarovcode%2Freact-mower/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasurhaydarovcode%2Freact-mower/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasurhaydarovcode","download_url":"https://codeload.github.com/jasurhaydarovcode/react-mower/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225952310,"owners_count":17550522,"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":["cursor","devtools","protection","react","security"],"created_at":"2024-11-22T19:23:53.107Z","updated_at":"2024-11-22T19:23:53.583Z","avatar_url":"https://github.com/jasurhaydarovcode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://cdn3d.iconscout.com/3d/free/thumb/free-react-3d-icon-download-in-png-blend-fbx-gltf-file-formats--facebook-logo-native-javascript-library-user-interfaces-coding-lang-pack-logos-icons-7578010.png?f=webp\" width=\"70\"\u003e\n\u003cimg src=\"https://cdn3d.iconscout.com/3d/free/thumb/free-typescript-3d-icon-download-in-png-blend-fbx-gltf-file-formats--microsoft-logo-angular-language-javascript-static-type-coding-lang-pack-logos-icons-7577992.png\" width=\"70\" align=right\u003e\n\n## React Mower\nA powerful React package for protecting your web applications from unwanted developer tools access and cursor-based interactions.\n\n---\n\n### Features\n\n1. 🛡️ Block Developer Tools access\n2. 🖱️ Cursor protection\n3. 📸 Block screenshot\n3. ⚡ Lightweight and easy to use\n4. 🔳 Github Star Button Count\n5. 🔒 Multiple protection layers\n\n---\n\n### Installation\n```\nnpm install react-mower\n```\n\n##### This package requires react-toastify as a peer dependency, and you only need to install react-mower\n\n---\n\n## Usage\n#### Basic Setup\n\n#### Loading in the `main.tsx` component\n##### `DevTools Blocker Only` using `main.tsx`\n```tsx\nimport 'react-toastify/dist/ReactToastify.css';\nimport { DevToolsBlocker } from 'react-mower';\n\n    \u003cDevToolsBlocker\u003e\n      \u003cApp /\u003e\n    \u003c/DevToolsBlocker\u003e\n);\n```\n#### Using Individual Components\n`Cursor Protection Only`\n```tsx\nimport { CursorProtect } from 'react-mower';\n\nfunction App() {\n  return (\n    \u003cCursorProtect message='❌ Screen Blocked'\u003e\n      \u003cYourApp /\u003e\n    \u003c/CursorProtect\u003e\n  );\n}\n```\n#### `message` With the message attribute, you can give your own arbitrary name when the screen block is on\n\n---\n\n### Using for Code Example\n\n| Tablets                  | Import                | Props                      |\n|--------------------------|-----------------------|----------------------------|\n| Cursor Protect           | `\u003cCursorProtect /\u003e`   | {message}                  | \n| Github Star Button Count | `\u003cGitHubStarCount /\u003e` | {githubStar}, username/repo |\n| Dev Tools Blocker        | `\u003cDevToolsBlocker  /\u003e`| soon                       |\n\n\n---\n\n### Components\n### DevToolsBlocker\nPrevents access to browser developer tools through:\n\nF12 key blocking\nCtrl+Shift+I blocking\nRight-click context menu blocking\nDevTools window size detection\n\n\u003c!-- ### CursorProtect\nProvides cursor-based protection:\n\nBlocks Window+g key combination\nShows protection screen when mouse leaves window\nAutomatically hides protection screen when mouse returns --\u003e\n\n### Security Features\n\n#### DevTools Protection:\nBlocks common DevTools shortcuts\nPrevents right-click context menu\nDetects DevTools through window size changes\nShows warning toast messages\n\n\n#### Cursor Protection:\nMonitors mouse position\nBlocks specific keyboard shortcuts\nShows full-screen protection overlay\nPrevents unauthorized interactions\n\n\n\n### Browser Compatibility\n\nChrome (latest)\nFirefox (latest)\nSafari (latest)\nEdge (latest)\nOpera (latest)\n\n---\n\n### Contributing\n##### Contributions are welcome! Please feel free to submit a Pull Request.\n\n##### Fork the repository\n##### Create your feature branch (git checkout -b feature/AmazingFeature)\n##### Commit your changes (git commit -m 'Add some AmazingFeature')\n##### Push to the branch (git push origin feature/AmazingFeature)\n##### Open a Pull Request\n\n---\n\n\u003c!-- ### License\nMIT © [Jasur Haydarov]\nAuthor\nJasur Haydarov\n\nGitHub: @jasurhaydarovcode\nWebsite: www.jasurhaydarovcode.uz --\u003e\n\n---\n\n### Support\nIf you have any questions or need help integrating the package, please open an issue in the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasurhaydarovcode%2Freact-mower","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasurhaydarovcode%2Freact-mower","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasurhaydarovcode%2Freact-mower/lists"}