{"id":26668730,"url":"https://github.com/gabrielmodog/usetimemachine","last_synced_at":"2025-10-08T23:20:57.814Z","repository":{"id":65448220,"uuid":"591543028","full_name":"GabrielModog/useTimeMachine","owner":"GabrielModog","description":"⏲️ Go forward and backwards with your state.","archived":false,"fork":false,"pushed_at":"2023-03-08T17:51:41.000Z","size":511,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T06:21:01.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/GabrielModog.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}},"created_at":"2023-01-21T03:06:01.000Z","updated_at":"2023-03-17T13:41:02.000Z","dependencies_parsed_at":"2023-02-14T06:01:32.677Z","dependency_job_id":null,"html_url":"https://github.com/GabrielModog/useTimeMachine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielModog%2FuseTimeMachine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielModog%2FuseTimeMachine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielModog%2FuseTimeMachine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabrielModog%2FuseTimeMachine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabrielModog","download_url":"https://codeload.github.com/GabrielModog/useTimeMachine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245545500,"owners_count":20633001,"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":[],"created_at":"2025-03-25T21:26:37.802Z","updated_at":"2025-10-08T23:20:52.778Z","avatar_url":"https://github.com/GabrielModog.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ⏲️ useTimeMachine\n\nA simple React.js hook to go forward and backwards with your state.\n\n\u003chr\u003e\n\n## Install now\n\n```\n  yarn add use-time-machine\n```\n\nor\n\n```\n  npm i use-time-machine\n```\n\n#### Samples\n\n```jsx\n import { useTimeMachine } from \"use-time-machine\"\n\n  function App(){\n    const {history, sendTo, hasPast, hasFuture} = useTimeMachine([...]);\n\n    return \u003cdiv\u003e...\u003c/div\u003e\n  }\n```\n\n```jsx\nimport { useHistoryMachine } from 'use-time-machine';\n\nfunction App() {\n\tconst { state, setCurrentState, goFoward, goBackward, resetState } =\n\t\tuseHistoryMachine('test');\n\n\treturn \u003cdiv\u003e...\u003c/div\u003e;\n}\n```\n\n\u003csub\u003e by [@GabrielModog](https://twitter.com/gabrielmodog) - say hi! \u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielmodog%2Fusetimemachine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielmodog%2Fusetimemachine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielmodog%2Fusetimemachine/lists"}