Custom Auto-Onboarding Demo
README
Custom Auto-Onboarding Demo
AI-powered, zero-config onboarding flow built with Next.js, Browserbase and Tailwind CSS v4.
Drop a company URL โ we scrape the site, extract the logo/banner/title, and spin up a branded dashboard in seconds.
Notes
This demo is using Zustand to manage state. In a production environment, you would likely be saving this information to a database somewhere.
๐ Quick Start
- Clone & install
pnpm install # or npm i / yarn
- Environment
Create a .env file in the project root:
# Browserbase / Stagehand
BROWSERBASE_API_KEY="your-api-key"
BROWSERBASE_PROJECT_ID="your-project-id"
- Run dev server
pnpm dev # http://localhost:3000
Scripts: pnpm build, pnpm start, pnpm lint.
๐ API
POST /api/extract-company-info
{
"url": "https://example.com"
}
Returns (validated with zod):
{
"title": "Example Inc.",
"faviconUrl": "https://example.com/favicon.ico",
"bannerUrl": "https://example.com/og.png"
}
๐ Tech Stack
โข Next.js 15 ยท React 19 ยท TypeScript 5
โข Stagehand 2.4 (Browserbase)
โข Zustand for client state
โข zod for runtime validation
โข Tailwind CSS 4 + Radix primitives + Lucide icons
โ๏ธ Security & Best Practices
- Secrets are never sent to the client โ Browserbase credentials live in server env.
- All external input is validated with
zod. - No SQL/db layer here, but in real apps use parameterised queries / ORM.
- Safe headers / CSP should be enabled at the platform (Vercel) level.
๐ License
MIT
Credit
Demo inspired by Resend onboarding.
