{"id":16765207,"url":"https://github.com/devlato/react-goatse","last_synced_at":"2026-05-20T05:36:46.519Z","repository":{"id":68309307,"uuid":"85014500","full_name":"devlato/react-goatse","owner":"devlato","description":"Extremely useful React component that effortlessly adds the famous easter egg to your React app and is highly recommended for all projects on the modern web","archived":false,"fork":false,"pushed_at":"2017-03-15T01:36:25.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-13T01:25:19.531Z","etag":null,"topics":["easter","easter-egg","goatse","hotkey","hotkeys","javascript","konami","konamicode","react","rodney","shortcut","shortcuts","timeout"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devlato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-15T01:24:33.000Z","updated_at":"2022-07-20T10:18:23.000Z","dependencies_parsed_at":"2023-03-15T13:30:49.953Z","dependency_job_id":null,"html_url":"https://github.com/devlato/react-goatse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devlato/react-goatse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Freact-goatse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Freact-goatse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Freact-goatse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Freact-goatse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlato","download_url":"https://codeload.github.com/devlato/react-goatse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Freact-goatse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268820501,"owners_count":24312402,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["easter","easter-egg","goatse","hotkey","hotkeys","javascript","konami","konamicode","react","rodney","shortcut","shortcuts","timeout"],"created_at":"2024-10-13T05:28:44.319Z","updated_at":"2026-05-20T05:36:46.474Z","avatar_url":"https://github.com/devlato.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-goatse\n\nEasily add [Goatse](http://goatse.ru/) easter egg to your React app\n\n\n[![Build Status](https://travis-ci.org/devlato/react-goatse.svg?branch=master)](https://travis-ci.org/devlato/react-goatse)\n[![Coverage Status](https://coveralls.io/repos/github/devlato/react-goatse/badge.svg?branch=master)](https://coveralls.io/github/devlato/react-goatse?branch=master)\n[![Code Climate](https://codeclimate.com/github/devlato/react-goatse/badges/gpa.svg)](https://codeclimate.com/github/devlato/react-goatse)\n[![Issue Count](https://codeclimate.com/github/devlato/react-goatse/badges/issue_count.svg)](https://codeclimate.com/github/devlato/react-goatse)\n[![npm version](https://badge.fury.io/js/react-goatse.svg)](https://badge.fury.io/js/react-goatse)\n\n\n## Installation\n\nWith npm:\n\n```sh\n$ npm install --save-dev react-goatse\n```\n\nOr with Yarn:\n\n```sh\n$ yarn add react-goatse\n```\n\n\n## Usage\n\nThe usage is very simple, just pass a couple of optional props to Goatse component:\n\n```jsx\nconst Goatse = require('react-goatse');\n\n// ...\n\nrender() {\n  return (\n    \u003cGoatse\n        keys={/* Array of keys to type to trigger the easter egg */}\n        simultaneous={/* Add this prop if keys should be pressed all together */}\n        timeout={/* Duration to show goatse, displayed forever if prop not passed */} /\u003e\n  );\n}\n```\n\nYou can add `react-goatse` anywhere in your component hierarchy, because it adds a global\nkeyboard events listener and doesn't stops any event bubbling.\n\nFor example:\n\n```jsx\nconst Goatse = require('react-goatse');\n\n\nexport default class YourComponent extends React.Component {\n  render() {\n    // When user types 'goatse' somewhere using your React app,\n    // show Goatse easter egg.\n    const shortcutKeys = ['g', 'o', 'a', 't', 's', 'e'];\n\n    return (\n      \u003cGoatse\n          keys={shortcutKeys}\n          timeout={10000} /\u003e\n    );\n  }\n}\n```\n\n\n## Props\n\n* `keys` – Just array of string representing each button to be pressed;\n* `simultaneous` – Set this prop if user should press buttons all together;\n* `timeout` – Amount of time in milliseconds while goatse should be displayed.\n\n\n## Supported keys\n\nAll alphabetic letters and numbers could be passed as is, i.e. letter \"a\" is just \"a\".\n\nIf you use `simultaneous` mode and you have the `Shift` button in your hotkey combination,\nplease set the unmodified buttons.\n\nFor example, to have a `Shift+!` hotkey, you should pass `keys={[\"shift\", \"1\"]}`,\nbecause \"Shift\" and \"1\" pressed together produce \"!\".\n\n\n## Dependencies\n\nProject uses [react-easter](https://www.npmjs.com/package/react-easter) to easily add an easter egg.\n\n\n## Test coverage\n\nLibrary has ~100% test coverage:\n\n```sh\n$ npm run test:coverage\n\n\u003e react-goatse@1.0.0 test:coverage ~/projects/react-goatse\n\u003e NODE_ENV=test jest --coverage --no-cache --config .jestrc\n\n PASS  test/Component.js\n  \u003cGoatse /\u003e\n    ✓ Should render (9ms)\n    ✓ Should render goatse with timeout (214ms)\n    ✓ Should render goatse without timeout (206ms)\n    ✓ Should render goatse with timeout simultaneously (206ms)\n    ✓ Should render goatse without timeout simultaneously (203ms)\n\n--------------|----------|----------|----------|----------|----------------|\nFile          |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |\n--------------|----------|----------|----------|----------|----------------|\nAll files     |      100 |       50 |      100 |      100 |                |\n Component.js |      100 |       50 |      100 |      100 |                |\n--------------|----------|----------|----------|----------|----------------|\nTest Suites: 1 passed, 1 total\nTests:       5 passed, 5 total\nSnapshots:   0 total\nTime:        2.321s\nRan all test suites.\n```\n\n\n## Code style\n\nLibrary is 100% compatible with [airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base) for ES5.\n\n\n## Available commands\n\nLibrary has the following commands available:\n\n* Run the tests:\n\n  ```\n  $ npm test\n  ```\n\n* Run the tests and display test coverage:\n\n  ```\n  $ npm run test:coverage\n  ```\n\n* Run the linter:\n\n  ```\n  $ npm run lint\n  ```\n\n## Build\n\nNo building required, library is implemented with ES5 React syntax for better compatibility and shipped as is.\n\n\n## License\n\nLibrary is shipped \"as is\" under MIT License.\n\n\n## Contributing\n\nFeel free to contribute but don't forget to test everything properly.\n\n\n[![NPM](https://nodei.co/npm/react-goatse.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/react-goatse/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlato%2Freact-goatse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlato%2Freact-goatse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlato%2Freact-goatse/lists"}