
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
onboarding_lib
Advanced tools
A tiny headless onboarding library with form validation, schema validation using Zod and persistance with unstorage.
🪜 A tiny headless onboarding library with form validation, schema validation using Zod and persistance with unstorage.
A good onboarding flow is one of the best ways to guide a new user to see the value of any new product.
We built ONBOARDING_LIB to make building such onboarding flows dead simple. ONBOARDING_LIB takes care of persisting your onboarding state, handling form validation & side-effects in an intuitive way so that you can build your onboarding flow with ease.
Check out a live onboarding demo built with ONBOARDING_LIB that walks you through creating an onboarding flow here.
react-hook-form/**
* Define your onboariding data schema
*/
export const onboardingSchema = z.object({
disappointment: z.enum(
["very-disappointed", "somewhat-disappointed", "not-disappointed"],
{ required_error: "Please fill in your disappointment level :)" }
),
improvements: z.string({
required_error: "Please help us improve ONBOARDING_LIB for you :)",
}),
})
export function Demo() {
// Create your Onboarding components
const { Onboarding, Step } = createOnboarding({
schema: onboardingSchema,
})
// Then simply define your onboarding steps
return (
<Onboarding
id="onboarding-demo"
storage={storage}
schema={onboardingSchema}
userId="user-id"
onCompleted={() => {
console.log("Completed")
}}
>
<Step stepId="introduction" render={IntroductionStep} />
<Step stepId="install-library" render={InstallLibraryStep} />
<Step stepId="onboarding-setup" render={OnboardingSetupStep} />
<Step stepId="creating-steps" render={CreatingStepsStep} />
<Step stepId="on-complete" render={OnboardingStepCompletionStep} />
<Step
validateFormFields={["disappointment", "improvements"]}
stepId="feedback"
skippable={false}
render={GiveFeedbackStep}
/>
<Step stepId="onboarding-data" render={OnboardingDataStep} />
<Step stepId="thank-you" render={ThankYouStep} />
</Onboarding>
)
}
corepack enable (use npm i -g corepack for Node.js < 16.10)pnpm installpnpm devMade with ❤️ in Helsinki
Published under MIT License.
FAQs
A tiny headless onboarding library with form validation, schema validation using Zod and persistance with unstorage.
We found that onboarding_lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.