{"id":26748614,"url":"https://github.com/a-type/onboarding","last_synced_at":"2025-08-12T15:13:37.160Z","repository":{"id":283153477,"uuid":"950847018","full_name":"a-type/onboarding","owner":"a-type","description":"Simple React state management for onboarding flows","archived":false,"fork":false,"pushed_at":"2025-03-26T18:26:45.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T10:19:20.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/a-type.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":"2025-03-18T19:16:58.000Z","updated_at":"2025-03-26T18:26:48.000Z","dependencies_parsed_at":"2025-03-18T20:50:03.389Z","dependency_job_id":null,"html_url":"https://github.com/a-type/onboarding","commit_stats":null,"previous_names":["a-type/onboarding"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a-type/onboarding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Fonboarding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Fonboarding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Fonboarding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Fonboarding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-type","download_url":"https://codeload.github.com/a-type/onboarding/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Fonboarding/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270082918,"owners_count":24523831,"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-12T02:00:09.011Z","response_time":80,"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":[],"created_at":"2025-03-28T10:19:24.135Z","updated_at":"2025-08-12T15:13:37.132Z","avatar_url":"https://github.com/a-type.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@a-type/onboarding`\n\nSimple React state management for onboarding flows\n\n## Usage\n\n```ts\nconst firstTimeWelcome = createOnboarding(\n\t// unique name for the flow\n\t'firstTimeWelcome',\n\t// string keys for each step\n\t['hello', 'navigation', 'settings', 'firstPost'] as const,\n\t// start immediately?\n\ttrue,\n);\n\n// onboarding object has hooks and direct methods\nconst begin = firstTimeWelcome.useBegin();\nconst skip = firstTimeWelcome.useSkip();\nconst { show, next, previous, isLast, isOnly } =\n\tfirstTimeWelcome.useStep('settings');\nconst cancel = firstTimeWelcome.useCancel();\n\nfirstTimeWelcome.begin();\nfirstTimeWelcome.skip();\nfirstTimeWelcome.cancel();\nfirstTimeWelcome.next();\nfirstTimeWelcome.previous();\nfirstTimeWelcome.completeStep('hello'); // only advances if the step is active\nfirstTimeWelcome.activeStep; // one of your step strings, or \"complete,\" or null (not started).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-type%2Fonboarding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-type%2Fonboarding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-type%2Fonboarding/lists"}