{"id":29704225,"url":"https://github.com/igoyalsamarth/reaction-timer-microservice","last_synced_at":"2026-05-18T15:34:32.467Z","repository":{"id":211545465,"uuid":"729447610","full_name":"igoyalsamarth/reaction-timer-microservice","owner":"igoyalsamarth","description":"Reaction Time Test microservice with easy backend integration and easy out-of-the-box functionality. Support for localStorage and Analytics for tracking your progress. Type safe code with easy adaptability with Javascript.","archived":false,"fork":false,"pushed_at":"2023-12-13T14:07:43.000Z","size":13184,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T07:54:28.527Z","etag":null,"topics":["library","microservice","npm","recharts","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@goyalsamarth/reaction-time-microservice","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/igoyalsamarth.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,"zenodo":null}},"created_at":"2023-12-09T09:01:09.000Z","updated_at":"2024-07-09T13:44:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cdc54e3-97b1-4e1a-be7f-bcbbae8bc325","html_url":"https://github.com/igoyalsamarth/reaction-timer-microservice","commit_stats":null,"previous_names":["igoyalsamarth/reaction-timer-package"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/igoyalsamarth/reaction-timer-microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igoyalsamarth%2Freaction-timer-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igoyalsamarth%2Freaction-timer-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igoyalsamarth%2Freaction-timer-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igoyalsamarth%2Freaction-timer-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igoyalsamarth","download_url":"https://codeload.github.com/igoyalsamarth/reaction-timer-microservice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igoyalsamarth%2Freaction-timer-microservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33182958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["library","microservice","npm","recharts","typescript"],"created_at":"2025-07-23T14:08:36.931Z","updated_at":"2026-05-18T15:34:32.462Z","avatar_url":"https://github.com/igoyalsamarth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reaction-timer-microservice\n\n#### This is a reaction timer package, ready to install and use directly in your project, made in a headless UI way (I love them), you can customize it using TailwindCSS and satisfy the design enthusiast.\n\n## Sample Code\n\n```\nimport { ReactionTime, Analytics } from \"./ReactionTimer\";\nimport { useState } from \"react\";\n\nfunction App() {\n  const [reactionTimeState, setReactionTimeState] = useState\u003cnumber\u003e(0);\n\n  return (\n  \u003c\u003e\n    \u003cReactionTime className='flex flex-col items-center w-full h-96' onReactionTimeChange={setReactionTimeState} instructionsClassName=\"text-2xl\"\u003e\n      \u003cp className=\"text-2xl font-black\"\u003e{reactionTimeState}\u003c/p\u003e\n    \u003c/ReactionTime\u003e\n    \u003cAnalytics onReactionTimeChange={setReactionTimeState} height={300} className=\"w-[100vw]\" /\u003e\n  \u003c/\u003e\n  )\n}\n\nexport default App\n```\n\n## Reaction Time Test Tile:\n\n`ReactionTime` is the component that can be imported and used for the functionality.\n\nThe `reactionTimeOutput` is a *required number-type* state that needs to be declared manually which also serves as the output of the individual tests. At the same time, the `setReactionTimeOutput` is the state function and must be defined inside the component.\n\n### List of Parameters:\n\n1. `waitTime` *(number)* *optional*: The time you would like the timer to stay *red* or wait for the *click*.\n2. `className` *(string)* *optional*: The styling of the reaction time area, is strictly based on *tailwind* and can be treated as a `div`.\n3. `needInstruction` *(boolean)* *optional* defaults to `true`: Control whether you need the instructions or not.\n4. `instructionClassName` *(string)* *optional*: The styling of the instructions, is strictly based on *tailwind*.\n5. `onReactionTimeChange` *(state-function)* *optional*: The state function of the declared state to feed in the changed values to the state.\n\n## Analytics Data Tile:\n\nThe `Analytics` is the component that can be imported and used for the *Analysis* of the Tests Taken.\n\nThe `Analytics Graph` tracks the values of `Average Reaction Time`, `Best Reaction Time Scores`, and `All Reaction Time Scores`\n\n`Note:` `localStorage` is used to store the Reaction Time Test data and hence should be used carefully and only on the client side.\n\n### List of Parameters:\n\n1. `className` *(string)* *optional*: The styling of the reaction time area, is strictly based on *tailwind* and can be treated as a `div`.\n2. `height` *(number)* *optional* defaults to `full height` of the `parent div`: The height of the graph object present inside the parent *div*.\n3. `width` *(number)* *optional* defaults to `full width` of the `parent div`: The width of the graph object present inside the parent *div*.\n4. `onReactionTimeChange` *(state-function)* *optional*: The state function of the declared state to feed in the changed values to the state.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figoyalsamarth%2Freaction-timer-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figoyalsamarth%2Freaction-timer-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figoyalsamarth%2Freaction-timer-microservice/lists"}